How can i scan a command line sensor only when the device tracker status is not at home ?
for example :
sensor wasserdurchfluss:
- platform: command_line
name: wasserdurchfluss
command: curl -X POST -i 'http://192.168.2.9/mux_http' --data 'id=622&show=D_A_1_1~'
scan_interval: 30
value_template: "{{ value.split('<code>')[1].split('D_A_1_1>')[1] }}"