Morning All,
I have just got a Xiaomi Gateway and a few switches. It all works fine but it would be nice if I could somehow rename the switches.
I’ve tried the following in customize.yaml:
binary_sensor.switch_158d0001b86c49:
friendly_name: "Switch TA1"
binary_sensor.switch_158d0001b86ae8:
friendly_name: "Switch TA2"
I tried the above in the hopes I could just call “binary_sensor.switch_TA2” in my automation but it doesn’t work. Of course “binary_sensory.switch_158d0001b86c49” does work though.
Just a side note I also couldn’t figure out how to differentiate between single and double clicks with HASSIO’s in-built automation system. I tried the following to no avail:
Trigger Type:
Event
Event Type:
Click
Event Data:
{
"entity_id": "binary_sensor.switch_158d0001b86c49"
"click_type": "double"
}