I haven’t used one of these devices, but I would think, if things are working correctly, that you shouldn’t have to change the state manually.
BTW, when you say “change the state manually”, exactly what do you mean? If you’re doing it by the States page, then you’re not actually changing the device; you’re just changing the state as recorded in the State Machine.
Given what you say, this must be a Z-Wave device. Is that right? Have you looked in the logs (both home-assistant.log and OZW_Log.txt) to see if there are any clues?
I misspoke but yes, I was using the stat page to reset the state to OFF in HA. Nothing pops up on the log, and it is a zigbee device so nothing in the OZW log.
A bit more detail of what I am seeing. When the button is pressed, the state goes from OFF to On. It will stay there until changed via the States page.
Well, I don’t use Zigbee (only Z-Wave), so I can’t personally help much there. But you said OZW log. That’s the Z-Wave log (i.e., openzwave), right? Is that the same log for zigbee, or is there maybe another log to look at for that?
You can change default to warn to reduce chattiness some, and you can turn on debug logging for any other relevant modules you come across as well.
If I understand correctly, you should at a minimum be getting some debug logs from bellows.ezsp if there’s any ZigBee message being received in response to button release - that would be the first place to bisect if a message is being received at all.
@xspudx Is that for a full press-depress cycle? Or just button release?
Ideally, we want to know what bellows.uart traffic there is specifically relating to button release, as we already know it reacts to button depression. If there is no traffic in response to button release, I’m not sure if it could be supported properly.
Of note, I don’t know whether the device is modeled as a switch or a binary_sensor, so at a minimum you should also enable logging for the proper component type.
That was on a press/release “click”. The device shows up as a binary sensor button. “binary_sensor.samjin_button_”
I dont think it responds when it is released that is why I have to manually set the state to off on the state page.
I was hoping there was a way to code something into an automation or script that would set the state back to off without needing input from the device.
If you’re only interested in using it as a single-click button and ignoring fancier features, you can set an automation that immediately sets the button state back when the state changes. This way, you’ll get a “turn on” event every time a click occurs.
You won’t be able to do things like long click, but it’s better than nothing.
I think this another example of a needed “indicator” class. Basically it’s too support devices that just generate or require single events and don’t hold state.
In the mean time yes you could just write an automatic to trigger on the on transactions and then set the state back to off again.