- alias: shack power if Richard is home
trigger:
platform: time_pattern
minutes: '/5'
condition:
condition: and
conditions:
- condition: template
value_template: "{{ is_state('device_tracker.android-richard-fone_lan','home')}}"
- condition: time
after: '08:30:00'
before: '22:00:00'
- condition: state
entity_id: switch.shack_power
state: 'off'
- condition: state
entity_id: input_boolean.notify_home
state: 'off'
action:
service: switch.turn_on
entity_id: switch.shack_power
This was working but not any more, It does not appear to be triggering every 5 mins anymore
If I manually trigger it from the Ui it works, I cant see anything in the docs to say time interval triggering has changed, has it ???
HA version 0.103.6
Hope this time the formatting above is correct.
added:
Its not the time interval , if I hash out the “condition template” lines it works
device tracking is from the LAN
If the wifi is turn off on the phone the enity is shown as “not home” and the wifi on shown as “home”
android-richard-fone is the name listed on the router.
This was all functional , but no longer, since 0.103.4 maybe, I updated to 0.103.6 after this stopped working.
Is ther another way of using device tracking ??
in configuration.yaml:-
device_tracker:
- platform: nmap_tracker
hosts:
- 192.168.1.94 #LR wall light
- 192.168.1.95 #LR wall light
- 192.168.1.107 #Richard's phone
- 192.168.1.75 #Sue's phone
home_interval: 5
All the other devices are working OK in automation.yaml
its only “Richard’s phone” thats not
nmap -v 192.168.1.0/24 shows :-
Nmap scan report for android-richard-fone.lan (192.168.1.107)
Is my problem that I have used a “_” as a separator between fone and lan and not a “.”
as returned by nmap ???