-
Notifications
You must be signed in to change notification settings - Fork 838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add multiple independent GPIO sending support via MQTT. #661
Conversation
Experimental code for #645 feature request. Note: Only tested with just a single transmit channel/gpio.
Will do, I just had a flick through the code - like the use of different topics which makes more sense than my idea of adding another parameter to the sending string. I need to add extra transistors to the board so it may take a while to test. |
No rush. I'm fairly happy with the code as it is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codewise looks good
Does it still output what's been sent on ir_server/sent or is it now ir_server/sent_0 etc? |
Still
I'm not sure what you are after here. What do you want to have happen? |
Have error messages on their own topic. |
yeah, we can easily have a different status topic (LWT) and an errors topic etc. Can you file an issue/feature request for that please? |
done! I've also written a dirty bodge in OpenHAB that will work in default mode to allow me to troubleshoot in the short term. Basically when the string comes in I split it at the first comma and check for the presence of 53 (Daikin2 Protocol). If its not there I log what is, hopefully this will allow me to find if there is a cause of any dropouts |
- Move log messages to their own MQTT topic. (ir_server/log) - Set up a Last Will & Testament topic (ir_server/status) - Change MQTT QoS to 1, which should hopefully handle messages lost during disconnects. Tested log and LWT functionality on my personal device. Everything seems to work as normal. Fixes #662 Ref #661
I'm going to update my Huzzah today to test your latest changes, which branch would you like me to test? |
@sheppy99 For you, the best branch to test is the one associated with PR #663 i.e. https://github.com/markszabo/IRremoteESP8266/tree/Issue662 The new |
A quick test is looking good, the conventional single channel part works fine, and I'll add another channel at some stage to test with. Before I compiled the firmware I updated a few libraries, and have had only one disconnection so far in 23 1/2 hours and that was because I rebooted OpenHAB. |
- Move log messages to their own MQTT topic. (ir_server/log) - Set up a Last Will & Testament topic (ir_server/status) - Change MQTT QoS to 1, which should hopefully handle messages lost during disconnects. Tested log and LWT functionality on my personal device. Everything seems to work as normal. Fixes #662 Ref #661
_v2.6.0 (20190430)_ **[Bug Fixes]** - Fixed problem where LG protocol used wrong duty cycle for repeat. (#687) - Fix checksum calculation for Daikin protocols. (#678) - Fix the byte array version of sendGree() (#684, #685) - Fix artificial vs. real state creation on HaierAC. (#668, #671) - Fix issues caused by having `MQTT_ENABLE` set to false. (#677) - Fix compile problem when DEBUG is defined. (#673, #674) - Fix Minor bug with MQTT_ENABLE False condition (#654) **[Features]** - Experimental support for DAIKIN216 (ARC433B69) (#690) - Experimental support for Mitsubishi Heavy Industries A/Cs. (#660, #665, #667) - Support more features of TCL A/C (#656) - Add LEGO(TM) Power Functions IR protocol. (#655) - Add Panasonic AC RKR model & Example (#649) - DAIKIN/IRDaikinESP overhaul and add Comfort mode support. (#678) **WARNING**: Previous `sendDaikin()` calls may not work. Please recapture codes or use `kDaikinStateLengthShort` for `nbytes` in those calls. - IRMQTTServer: Move MQTT server and other parameters to WifiManager. (#680) **WARNING**: Previous users may need to fully wipe/reset the SPIFFS/WifiManager settings by visiting `http://<your_esp8266's_ip_address>/reset` prior to or after update. - Add Wifi filtering options to IRMQTTServer. (#679) - Add advanced aircon/climate functionality to IRMQTTServer (#677) - Initial prototype of a common interface for all A/Cs. (#664) - Improve MQTT topic usage for feedback messages. (#663) - Add multiple independent GPIO sending support via MQTT. (#661) **[Misc]** - Adjust kGreeHdrSpace to 4500 (#684, #686) - Add Home Assistant mqtt climate instructions. (#682) - Implement htmlEscape() to prevent XSS etc. (#681) - Add F() Macros (#670) - Update Daikin2's Cool mode min temp to 18C (#658) - Change per byte bit-order in Electra protocol. (#648) - Improve Daikin2 power on/off. (#647)
_v2.6.0 (20190430)_ **[Bug Fixes]** - Fixed problem where LG protocol used wrong duty cycle for repeat. (#687) - Fix checksum calculation for Daikin protocols. (#678) - Fix the byte array version of sendGree() (#684, #685) - Fix artificial vs. real state creation on HaierAC. (#668, #671) - Fix issues caused by having `MQTT_ENABLE` set to false. (#677) - Fix compile problem when DEBUG is defined. (#673, #674) - Fix Minor bug with MQTT_ENABLE False condition (#654) **[Features]** - Experimental support for DAIKIN216 (ARC433B69) (#690) - Experimental support for Mitsubishi Heavy Industries A/Cs. (#660, #665, #667) - Support more features of TCL A/C (#656) - Add LEGO(TM) Power Functions IR protocol. (#655) - Add Panasonic AC RKR model & Example (#649) - DAIKIN/IRDaikinESP overhaul and add Comfort mode support. (#678) **WARNING**: Previous `sendDaikin()` calls may not work. Please recapture codes or use `kDaikinStateLengthShort` for `nbytes` in those calls. - IRMQTTServer: Move MQTT server and other parameters to WifiManager. (#680) **WARNING**: Previous users may need to fully wipe/reset the SPIFFS/WifiManager settings by visiting `http://<your_esp8266's_ip_address>/reset` prior to or after update. - Add Wifi filtering options to IRMQTTServer. (#679) - Add advanced aircon/climate functionality to IRMQTTServer (#677) - Initial prototype of a common interface for all A/Cs. (#664) - Improve MQTT topic usage for feedback messages. (#663) - Add multiple independent GPIO sending support via MQTT. (#661) **[Misc]** - Adjust kGreeHdrSpace to 4500 (#684, #686) - Add Home Assistant mqtt climate instructions. (#682) - Implement htmlEscape() to prevent XSS etc. (#681) - Add F() Macros (#670) - Update Daikin2's Cool mode min temp to 18C (#658) - Change per byte bit-order in Electra protocol. (#648) - Improve Daikin2 power on/off. (#647)
Experimental code for #645 feature request.
Note: Only tested with just a single transmit channel/gpio.
@sheppy99 Can you please test this with your desired multiple IR LED desired config?