I would like to get simple button in HA GUI representing one of my arduino based serial gateway sensors.
If I use
present(CHILD_ID, S_BINARY);
and send
MyMessage msg(CHILD_ID, V_STATUS);
on detected state changes in HA GUI I get switch, which accepts inputs from user via GUI (which I do not want).
If I
present(CHILD_ID2, S_DOOR);
and send
MyMessage msg2(CHILD_ID2, V_TRIPPED);
In GUI I get door open/closed icon which works as I want (read only state presentation) but it’s icon is misleading for simple wall button/switch.
Any other options?