Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106620

Ip of internal devices change - how to avoid it

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 106620

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>