Hi All,
I’m trying to setup a dimmer light with the light platform but have little experience with HA. My dimmer (KaKu) responds to and url instruction, so I’m using the command line curl within the light setup.
light:
- platform: command_line
lights:
hw_dim_proef:
command_on: "curl http://IP/PW/sw/dim/34/100"
command_off: "curl http://IP/PW/sw/dim/34/0"
command_state: "curl http://IP/PW/get-status"
value_template: '{{ value_json.response.switches[34].status == "on" }}'
friendly_name: DimProef
But it seems impossible to use command_line within light. Also, ‘brightness’ has to be added somewhere…
Any ideas to approach this.
Thx,
Ppee