I am trying to control a Shelly Bulb from an automation and have a help question about that.
The action part of the automation consists of the following steps:
• Lamp on
• Wait 2
• Lamp off
• Wait 2
• Set lamp to green
• Lamp on
• Wait 2
• Lamp off
It goes wrong at “set lamp to green”.
The action seems to stop there, probably because my config is wrong.
If I use the config at “Developer Tool (MQTT tab)” it works fine.
In the HA log I find the following entry
Logfile
2020-04-21 15:38:09 ERROR (MainThread) [homeassistant.components.automation] Voordeur dicht: Error executing script. Invalid data for call_service at pos 5: extra keys not allowed @ data[‘blue’]
It’s probably a trifle, but I can’t find it…
So please help me sorting this out.
My config (automations.yaml) is as follows:
id: voordeur_dicht
alias: Voordeur dicht
description: Als voordeur dicht gaat gaat bulb in achterkamer uit
trigger:
entity_id: sensor.sensative_strips_access_control
from: ‘22’
platform: state
to: ‘23’
condition: []
action:
thanks for your patience with me and your quick response.
Regarding the posting of code I did not understand you last time: thought that a snippet was not okay, but that I should include the code as text. I have put my modified code between the backticks, hope that is is ok now.
I think the style of configuration is the essential point here. In the previous thread about this, a colleague pointed out the difference between the style for “device automation” and the “traditional style”. Is that indeed where things went wrong here?