I’m trying to hide an input_number, rodi_timer when the switch is off and show it when switch’s state is on. I must admit I’m new to this.
Can someone point out to me what I’m doing wrong please?
- id: '147'
alias: hide slider
initial_state: false
trigger:
platform: template
value_template: "{{ not is_state('switch.50207_3_socket_1', 'off') }}"
action:
service: group.set_visibility
entity_id: group.rodi_timer
data:
visible: False
- id: '148'
alias: unhide slider
initial_state: false
trigger:
- platform: homeassistant
event: start
- platform: state
entity_id: switch.50207_3_socket_1
to: 'off'
action:
service: group.set_visibility
entity_id: group.rodi_timer
data:
visible: True