Hi All,
I have an issue at the moment I can’t solve…
I have a TPLink H110 smart plug that needs to remain on DHCP…
Since I wanted to configure it once I thought it might be a good idea to set up an nmap tracker
device_tracker:
- platform: nmap_tracker
hosts: 192.168.1.0/24
home_interval: 10
exclude:
- 192.168.1.1
- 192.168.1.100
That works, returning the ip address for the device I want to track.
This is where my lack of experience kicks in…
I first tried creating a template to extract the IP address
hs110:
friendly_name_template: "HS110: IP Address"
value_template: "{{ state_attr('device_tracker.50c7bf4e1495','ip') }}"
And that works but when I attempted to set it in my device tracker it failed to do anything…
switch:
- platform: tplink
host: sensor.hs110
I also tried making the call directly…
switch:
- platform: tplink
host: "{{ state_attr('device_tracker.50c7bf4e1495','ip') }}"
But neither of them worked…
So I’m kind of out of options, what am I doing wrong?
Regards,
Paul