Bonjour,
mauvaise syntaxe.
exemple:
- switch:
name: Kitchen Light 1
command_on: switch_command on kitchen
command_off: switch_command off kitchen
- switch:
name: Kitchen Light 2
command_on: switch_command on kitchen
command_off: switch_command off kitchen
- switch:
name: Kitchen Light 3
command_on: switch_command on kitchen
command_off: switch_command off kitchen
corrigé
- switch:
name: "Filtration 108"
command_on: 'curl http://192.xxx.xxx.108/control?cmd=GPIO,12,1 >/dev/null'
command_off: 'curl http://192.xxx.xxx.108/control?cmd=GPIO,12,0 >/dev/null'
unique_id: switch.filtration_piscine_108
- switch:
name: "Ouverture volet 111"
command_on: 'curl http://192.xxx.xxx.111/control?cmd=GPIO,12,1 >/dev/null'
command_off: 'curl http://192.xxx.xxx.111/control?cmd=GPIO,12,0 >/dev/null'
unique_id: switch.ouverture_volet_111
- switch:
name: "Fermeture volet 112"
command_on: 'curl http://192.xxx.xxx.112/control?cmd=GPIO,12,1 >/dev/null'
command_off: 'curl http://192.xxx.xxx.112/control?cmd=GPIO,12,0 >/dev/null'
unique_id: switch.fermeture_volet_112