Hello,
I am pretty new to Home Assistant and started with automations.
I quickly noticed that there are different options in what I can do with the device.
I included my devices with ZHA.
For example on my Aqara E1 Thermostat I am able to set the temperature in the device or the overview in home assistant.
When creating an automation and selecting the thermostat I am not able to do this.
Same for my Tradfri multicolor led. I can change the colors on the device directly but when creating an automation I am not able to change the color.
Is there something I am doing wrong or am I missing something?
It seems like the functionality is there but I am not adressing it correctly via the automations UI.
Is there a different way to send commands on for example color changing to the device?
Thanks in advance.
You’re likely trying to use the generic “Device” action when using specific actions would be more appropriate, such as “Light” for your multicolor light or “Climate” for your thermostats. Here’s a couple examples in YAML form
RGB light:
service: light.turn_on
metadata: {}
data:
rgb_color:
- 143
- 240
- 164
target:
entity_id: light.desk_lamp_light
Thermostat:
service: climate.set_temperature
metadata: {}
data:
temperature: 18
target:
entity_id: climate.radiator_bedroom_thermostat
2 Likes
That was exactly my mistake. I used the Device GUI and not yaml. That is what I searched!
Thank you very much!
No worries; I actually set both the above actions up with the GUI as well, I just toggled to YAML to make it easier to show. To sum up, after clicking “Add Action”, you’ll want to see if a more appropriate device type is listed in the panel before choosing “Device”, as “Device” is more of a catch-all type
EDIT: Typically, you won’t have to touch YAML much unless you want to do more complicated stuff, such as templating.
1 Like
Thank you very much. I just tested it.
It works fine without touching the yaml.
I just made the mistake directly selecting “Device” instead of “Light” or “Climate”.
This is exactly what I was looking for.
1 Like