60 Commits

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