I have multiple entities that I would like to make into 1. How would I go about that for instance in the image here I have 2 push buttons. One to unlock the door and one to lock the door. How could I use the lock status to only show the button required. If the door is locked only show the unlock button etc. The second is how would I use 4 different icons to show the door state onto the button icon above. The door state has 4 state OK, Alarm, Tamper, Short. The Lock State would also be another icon. I found 4 suitable mdi icons for the different states.
mdi:door-open
mdi:door-closed
mdi:door-closed-lock
mdi:door-closed-cancel
The entities are:
type: entities
entities:
- entity: sensor.ezhacklock_countdown
- entity: sensor.ezhacklock_totp
- entity: button.ezhacklock_move_left_until_limit
- entity: button.ezhacklock_move_right_until_limit
- entity: binary_sensor.ezhacklock_limit_switch_1
name: Lock Status
icon: mdi:door-closed-lock - entity: sensor.ttgo_poe_001_zone_01_state
name: Door State
icon: mdi:door-closed
show_header_toggle: true
Is this possible?