dawidchyrzynski / arduino-home-assistant

ArduinoHA allows to integrate an Arduino/ESP based device with Home Assistant using MQTT.
https://dawidchyrzynski.github.io/arduino-home-assistant/
GNU Affero General Public License v3.0
498 stars 118 forks source link

HASelect doesn't work #164

Closed netmindz closed 8 months ago

netmindz commented 1 year ago

The example select.ino had issues with select being redefined but if swap to selectTest, I then see the device appear in HA, but changes to HA don't call onSelectCommand nor does calling setState actually appear to trigger a change in HA

netmindz commented 1 year ago

ok, worked for a moment, now broken again

variable name should still be changed in the example

netmindz commented 1 year ago

Think this new version is having mqtt issues. It says connected if I attach a onConnected method, but updates not coming into HA. Swapping back to 1.3.0 resolves the issue.

Is there a way to get debug logs from the library?

dawidchyrzynski commented 8 months ago

@netmindz Closing this as I'm unable to reproduce the issue. You can enable the debug logs by uncommenting the // #define ARDUINOHA_DEBUG line in the ArduinoHADefines.h file.

Xieo commented 3 months ago

Hi Guys, I found out that when the options set as numbers Dropdown.setOptions("0;1;2");

the code works and it calls the onSelectCommand().

but when set at text Dropdown.setOptions("Cool;Hot;Off"); it doesn't trigger the onSelectCommand() and caused the mqtt to reset the connection.

any recommendation?