Hi
From time to time i need to restart my router and therefore the internal ips for the devices as hue lights change.
What is the best way to configure this? I have in my yaml the full url as for example:
switch:
- platform: rest
resource: http://192.168.1.12/api/{REDACTED}/sensors/102/
name: "Motion sensor javi"
method: put
body_on: '{"config": {"on":true}}'
body_off: '{"config": {"on":false}}'
What is the best way to configure this? Maybe defining the ip in secrets.yaml? I dont know if i could build the url referring to a secret though
Thanks
1 post - 1 participant