Commit Graph

55 Commits

Author SHA1 Message Date
ba6cca8992 Update RF24 to 1.4.11 2025-01-20 22:53:54 +11:00
f90fa34a07 Move RF_ID to platformio.ini 2024-05-04 23:44:38 +10:00
a4c49bd3a5 Update ArduinoJson to v7.0.4 2024-05-04 23:13:16 +10:00
82fdc29f2a Modify helpers for publishing to accept a std::string 2024-05-04 23:11:29 +10:00
e8003772ef Configure shades via MQTT messages 2024-05-04 23:08:21 +10:00
0458c70b47 Make topic prefix configurable 2024-05-04 23:07:47 +10:00
7c24d6b411 Use a randomly generated suffix in MQTT client ID 2024-05-04 22:56:30 +10:00
244af38c2b Continue setup if setting up RFPowerView fails 2024-05-04 22:56:30 +10:00
a71eeb1dec Setup environments to allow running tests 2024-05-04 22:56:30 +10:00
e60fa052df Log a warning when setting max packet size fails 2024-05-04 22:56:27 +10:00
59b6ed281c Extract Home Assistant discovery logic 2024-05-04 22:56:11 +10:00
a9dccae331 Extract Shade struct and create ShadeRepository 2024-05-04 20:40:07 +10:00
eee6cbef46 Update RFPowerView to v0.0.3 2024-04-04 21:22:07 +11:00
0a9e3c640c Use specific version of RFPowerView 2024-04-04 21:13:33 +11:00
39b61997d2 Add log message when a packet is received 2024-04-04 21:13:33 +11:00
7adbff6890 Add button to trigger a refresh in Home Assistant 2024-04-04 21:13:33 +11:00
97d450ab3e Add battery sensor in Home Assistant 2024-04-04 21:13:33 +11:00
55d114afd6 Add support for a refresh command 2024-04-04 21:13:32 +11:00
bbc54947b1 Changed command topic from /set to /command 2024-04-04 21:13:32 +11:00
01f2e267a9 Split discovery topic logic into smaller functions 2024-04-04 21:13:32 +11:00
42713c1bb1 Publish battery level to MQTT 2024-04-04 21:13:32 +11:00
0eba1a6f1b Create device in Home Assistant 2024-04-04 21:13:32 +11:00
be9de4a2f6 Add log when attempting to send a packet 2024-04-04 21:13:32 +11:00
a5c5a7ac19 Allow Home Assistant to discover the blinds 2024-04-04 21:13:32 +11:00
fcd4f81798 Add ArduinoJson library 2024-04-04 21:13:32 +11:00
3c190897ee Improve logic for fetching position while blind is moving or stopped 2024-04-04 21:13:32 +11:00
dbed260fd1 Publish a state topic for each shade 2024-04-04 21:13:31 +11:00
e02add87ff Fetch position every 2 seconds after sending a command 2024-04-04 21:13:31 +11:00
ccdbea4283 Allow controlling any blind in the house 2024-04-04 21:13:31 +11:00
8b835b6af0 Fetch position after stopping blind 2024-04-04 21:13:31 +11:00
62474c3911 Use timer to fetch position periodically after setting position 2024-04-04 21:13:31 +11:00
a1cd3656d4 Add arduino-timer library 2024-04-04 21:13:31 +11:00
9fb9c19a27 Added helper for sending a Packet 2024-04-04 21:13:31 +11:00
1838de5b35 Remove old comment 2024-04-04 21:13:31 +11:00
abd850399a Fetch the current position of the blind every 10 seconds 2024-04-04 21:13:31 +11:00
4d0af9e98d Add helper methods for sending various packets 2024-04-04 21:13:30 +11:00
c2c55d6764 Tracking rolling codes received from real hub 2024-04-04 21:13:30 +11:00
2bc7835dce Migrate Hotdog to RFPowerView 2024-04-04 21:13:30 +11:00
bdebcf83ff Shorten delay after sending command 2024-04-04 21:13:30 +11:00
194d1e96f3 Fetch position after sending a stop packet 2024-04-04 21:13:30 +11:00
18639220b8 Support building fetch position packets 2024-04-04 21:13:30 +11:00
f41e0edf56 Improve naming in PacketParser 2024-04-04 21:13:30 +11:00
cffae2bfe5 Publish blind position to MQTT when packet is received 2024-04-04 21:13:30 +11:00
80ea823fae Fix packetReceiver callback in Hotdog 2024-04-04 21:13:29 +11:00
0ec231cb0d Allow sending up, down, and stop packets from the hub address 2024-04-04 21:13:29 +11:00
7dfe523c52 Enable setting position from MQTT 2024-04-04 21:13:29 +11:00
f80cc9a6b9 Convert Hotdog sketch to PlatformIO 2024-04-04 21:13:29 +11:00
981c28f72e Add rolling codes for remote and hub 2024-04-04 21:13:29 +11:00
3051246cb2 Don't duplicate MQTT messages 2024-04-04 21:13:29 +11:00
d6a72c5811 Avoid initialising buffer twice 2024-04-04 21:13:29 +11:00