I have a few devices that are controlled by an RF signal. They don’t have an On/Off state that Home Assistant knows anything about, they just have generic Power
buttons & Start
buttons.
Sometimes I even have to push the button twice to get it to turn on or off.
I’m sure other have had similar needs as they can be used for things like pushing the button to turn a gear that dumps a serving of dogfood into the feed dish, you don’t unfeed the dog the next time you push it. Of to send the daily statistics report to your boss, you don’t unsend the report the next time, etc.
The problem is that Home Assistant recognizes them as toggle switches, & keeps the State as whatever the last was.
I’ve been looking for a way to have them as devices without a State
But the best I can find is a Button but even those change colors to indicate the On
& Off
states.
I looked into a custom button integration that should allow me to have them without color changing so they would at least be on the dashboard without random states, but that’s not a great
solution, just the best I can find.
I feel there has to be a way to have an entity that has a single “Push-To-Send-This-Command” without a “I’m-In-This-State” reply to it, but I haven’t been able to find one, & have wasted 30 minutes or an hour looking for one dozens of times to no avail.
I have a device that has a switched plug along with a nightlight on it. For that device I have 3 toggles, 1 is to turn on the switch
, 1 is to turn on the light
, & the 3rd is to turn the whole thing
On
or Off
. I’m annoyed by this device a little because the “Whole Device” button always resets itself after being pressed to the OFF
position. Regardless if all parts are On
, Off
, or Mixed
with 1 On & the other Off it always jumps back to off. When I tested it it was quite annoying because if I want to turn everything off I have to press it to turn them on, then within the second before it resets press again to turn them both off. I don’t ever use that switch so it isn’t a big hassle for me, but if at least that functionality was available for these switches that’d be an improvement. On a button the color would change to indicate it had been pressed & go back.
Is there a way to do this?
Is there at least a way that’s better than just an uncolored button?
Is there a way to make a switch change State back to off automatically after being pressed without sending the Off
command?