I received my first shelly button1 yesterday and have it working with MQTT but ShellyForHASS functionality would be the preferable end goal
Button1 inclusion
I have MQTT reading single/double/tripple/long press, didn't go any further (battery level would be nice)
Working on that!
Support for this device added on 0.1.9b3.
Please test and confirm is fully working.
Simone
//edit: removed previous comment
My shelly buton appears as a device now but I need to figure out how to create an automation with it to make it work.
It is pretty hard to find out how, though.
I created an automation, checking the commit log, reading from the .py file that the event_type should probably be shellyforhass.click ( https://github.com/StyraHem/ShellyForHASS/commit/fa7ca1699db215892bbaed0f3130af60b5a66acc#diff-055ff7a3e8b339a67e8c34ad36814cbcR104 ), but I don't know what's the entity ID because the button appears under devices but not as a binary sensor. I'm a bit lost.
// Edit3:
now device is gone as well. I give up.
Hi, I install the shellyforHASS through HACS and then some relays (Shelly1 and Shelly2) . NO problem there. I even managed to install shelly button1 when they are ‘awake’ through USB supply. I was able to put automation in place based on trigger “switch turned on” but Home assistant don’t recognize the trigger when the button is not supplied through USB (sleep mode). in logbook, the button is unavailable.
How do you solved this? Or can you help to imagine a workaround to be able to launch a script to turn some shelly relays ON based on a push on the button?
It’s working through the shelly app without problem but is restricted to shelly products!
Thanks in advance for your appreciated support.
Eric
Just bought 2 Shelly Button-1 devices and added them to my WiFi network with my other Shelly devices (Shelly 1, Shelly Dimmer 2, Shelly Plugs). But I cannot see the device anywhere in HASS. No notification about a new device, it's not listed as device under the integration, there's only some messages in the log when I enable debug logging:
2020-08-08 15:47:59 DEBUG (zeroconf-ServiceBrowser__http._tcp.local._263) [pyShelly] Add device by host 172.17.22.70 mDns
2020-08-08 15:48:59 DEBUG (Poll) [pyShelly] http://172.17.22.70/settings
2020-08-08 15:48:59 DEBUG (Poll) [pyShelly] http://172.17.22.70/settings - Ok
2020-08-08 15:48:59 DEBUG (Poll) [pyShelly] http://172.17.22.70/status
2020-08-08 15:48:59 DEBUG (Poll) [pyShelly] http://172.17.22.70/status - Ok
2020-08-08 15:48:59 DEBUG (Poll) [pyShelly] Add device from IP, 483FDA6EA3B0, SHBTN-1, 172.17.22.70
2020-08-08 15:48:59 DEBUG (Poll) [pyShelly] http://172.17.22.70/settings
2020-08-08 15:48:59 DEBUG (Poll) [pyShelly] http://172.17.22.70/settings - Ok
2020-08-08 15:48:59 DEBUG (Poll) [pyShelly] Add device
2020-08-08 15:49:03 DEBUG (Poll) [pyShelly] Polling block, 483FDA6EA3B0 SHBTN-1
2020-08-08 15:49:03 DEBUG (Thread-13) [pyShelly] Get status from 483FDA6EA3B0 Shelly Button 1 - 483FDA6EA3B0
2020-08-08 15:49:03 DEBUG (Thread-13) [pyShelly] http://172.17.22.70/status
2020-08-08 15:49:03 DEBUG (Thread-13) [pyShelly] http://172.17.22.70/status - Ok
2020-08-08 15:49:03 DEBUG (Thread-13) [pyShelly] Update id:483FDA6EA3B0 state:True stateValue:{'last_event': '', 'event_cnt': 0} values:None info_values:None
2020-08-08 15:49:04 DEBUG (Thread-20) [pyShelly] Update id:483FDA6EA3B0 state:False stateValue:None values:None info_values:None
2020-08-08 15:50:03 DEBUG (Poll) [pyShelly] Polling block, 483FDA6EA3B0 SHBTN-1
2020-08-08 15:50:03 DEBUG (Thread-21) [pyShelly] Get status from 483FDA6EA3B0 Shelly Button 1 - 483FDA6EA3B0
2020-08-08 15:50:03 DEBUG (Thread-21) [pyShelly] http://172.17.22.70/status
2020-08-08 15:50:03 DEBUG (Thread-21) [pyShelly] http://172.17.22.70/status - Ok
2020-08-08 15:50:03 DEBUG (Thread-21) [pyShelly] Update id:483FDA6EA3B0 state:False stateValue:{'last_event': '', 'event_cnt': 0} values:None info_values:No
I can confirm that button 1 works fine with both 0.1.9 and 0.2.0beta
Simone
Using 0.1.9 and even upgraded to the latest Button-1 firmware, but still not working on my side. I do see it in the logs, but the device is not discovered and can therefore not be added to Home Assistant.
Nothing changed in the logs:
2020-08-31 18:37:28 DEBUG (Poll) [pyShelly] Sending CoAP discover UDP
2020-08-31 18:37:28 DEBUG (CoAP) [pyShelly] CoAP msg: 172.17.2.2 b'P\x01\x00\n\xb3cit\x01d\xff'
2020-08-31 18:37:28 DEBUG (CoAP) [pyShelly] CoAP msg: 1 172.17.2.2 bytearray(b'P\x01\x00\n\xb3cit\x01d\xff')
2020-08-31 18:37:28 DEBUG (Poll) [pyShelly] Polling block, 483FDA6EA3B0 SHBTN-1
2020-08-31 18:37:28 DEBUG (Thread-24) [pyShelly] Get status from 483FDA6EA3B0 Shelly Button 1 - 483FDA6EA3B0
2020-08-31 18:37:28 DEBUG (Thread-24) [pyShelly] http://172.17.22.70/status
2020-08-31 18:37:29 DEBUG (Thread-24) [pyShelly] Update id:483FDA6EA3B0 state:True stateValue:{'last_event': 'S', 'event_cnt': 1} values:None info_values:None
2020-08-31 18:37:30 DEBUG (Thread-33) [pyShelly] Update id:483FDA6EA3B0 state:False stateValue:None values:None info_values:None
2020-08-31 18:38:29 DEBUG (Poll) [pyShelly] Sending CoAP discover UDP
2020-08-31 18:38:29 DEBUG (Poll) [pyShelly] Polling block, 483FDA6EA3B0 SHBTN-1
2020-08-31 18:38:29 DEBUG (CoAP) [pyShelly] CoAP msg: 172.17.2.2 b'P\x01\x00\n\xb3cit\x01d\xff'
2020-08-31 18:38:29 DEBUG (CoAP) [pyShelly] CoAP msg: 1 172.17.2.2 bytearray(b'P\x01\x00\n\xb3cit\x01d\xff')
2020-08-31 18:38:29 DEBUG (Thread-34) [pyShelly] Get status from 483FDA6EA3B0 Shelly Button 1 - 483FDA6EA3B0
2020-08-31 18:38:29 DEBUG (Thread-34) [pyShelly] http://172.17.22.70/status
2020-08-31 18:38:29 DEBUG (Thread-34) [pyShelly] http://172.17.22.70/status - Ok
2020-08-31 18:38:29 DEBUG (Thread-34) [pyShelly] Update id:483FDA6EA3B0 state:True stateValue:{'last_event': '', 'event_cnt': 0} values:None info_values:None
2020-08-31 18:38:30 DEBUG (Thread-43) [pyShelly] Update id:483FDA6EA3B0 state:False stateValue:None values:None info_values:None
I'll take my losses and dump these useless buttons.
How is you config look like, you must enable the Switch sensor for it to show up
Hi
I am having the same issue.
how do i enable the switch sensor?
Most helpful comment
Working on that!