Hi,
Has any one used python-kasa in YAML?
From the command line python-kasa works without issue.
As an example from the command line
$ kasa --host 192.0.2.123 on
works
If I try to create an automation shown below…
alias: testing
description: “”
triggers:
- device_id: 5ac355939f7ecfccf384b940b74fcc4c
domain: zha
type: remote_button_short_press
subtype: remote_button_short_press
trigger: device
id: Short Press - device_id: 5ac355939f7ecfccf384b940b74fcc4c
domain: zha
type: remote_button_double_press
subtype: remote_button_double_press
trigger: device
id: Double Press
conditions:
actions: - choose:
- conditions:
- condition: trigger
id:- Short Press
sequence:
- Short Press
- event: “”
event_data:
command_line:
command: kasa “–host 192.168.1.147 on”
- condition: trigger
- conditions:
- condition: trigger
id:- Double Press
sequence:
- Double Press
- event: “”
event_data:
command_line:
command: kasa “–host 192.168.1.147 off”
mode: single
- condition: trigger
- conditions:
Automation does not work.
If anyone has some insight please share…