I currently have the following setup as a button for my garage door with a ZWave tilt/shock sensor.
type: custom:button-card
entity: binary_sensor.garage_sensor_access_control_window_door_is_open
show_icon: true
show_name: true
name: Garage Door Left
tap_action:
action: call-service
service: switch.turn_on
service_data:
entity_id: switch.multirelay_2
icon: hass:garage
state:
- value: 'on'
icon: hass:garage-open
color: rgb(245,66,66)
- value: 'off'
color: rgb(28,118,252)
The sensor has two entities I’d like to leverage. The one I’m using below detects the state of the garage door and colors the button blue when the door is closed and red when it is open.
What I’d like to do is have a third color, yellow, that shows up when the shock sensor detects the door is moving. But this is a separate entity from the tilt sensor. Does anyone know if it’s possible to leverage two entities in the same button like that?