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
480 stars 116 forks source link

about select.ino #135

Closed winterrise closed 7 months ago

winterrise commented 1 year ago

Line 11 HASelect select("mySelect"); Line 45,46,47,48 select.setOptions("Low;Medium;High"); // use semicolons as separator of options select.onCommand(onSelectCommand);

select.setIcon("mdi:home"); // optional select.setName("My dropdown"); // optional

Can not use select , it will replace with myselect.

netmindz commented 1 year ago

Think this is the same issue i found where "select" is already defined, so example needs updating to different variable name

dawidchyrzynski commented 7 months ago

The example will be updated in the upcoming version of the library. Please refer to the linked Pull Request for more information.