Having some issues while automating some functions on my dyson:
here’s my simple automation script:
alias: Turn on Living Room Fan when above 25C
trigger:
- above: '25'
entity_id: sensor.living_room_temperature
platform: numeric_state
condition:
- condition: state
entity_id: fan.living_room
state: 'off'
action:
- service: fan.turn_on
- data:
speed: '9'
service: fan.set_speed
- data:
oscillate: true
service: fan.oscillate
The automation works fine, however I am struggling to set the oscillation to true, see the error below:
2019-08-26 11:13:50 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.turn_on_living_room_fan_when_above_25c. Invalid data for call_service at pos 3: extra keys not allowed @ data['oscillate']
- id: '1566822854112'
alias: Turn on Living Room Fan when above 25C
trigger:
- above: '25'
entity_id: sensor.living_room_temperature
platform: numeric_state
condition:
- condition: state
entity_id: fan.living_room
state: 'off'
action:
- service: fan.turn_on
entity_id: fan.living_room
- service: fan.set_speed
data:
entity_id: fan.living_room
speed: '9'
- service: fan.oscillate
data:
entity_id: fan.living_room
oscillate: true
Error: 2019-08-26 13:39:28 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.turn_on_living_room_fan_when_above_25c. Invalid data for call_service at pos 3: extra keys not allowed @ data['oscillate']
To add:
I’ve built the automation via the Automation Editor GUI.
Running on: