Closed smartmatic closed 1 year ago
not a valid value for dictionary value @ data['entity_id']
The error message claims that the value of entity_id
(87d7d41fa52db5911fa4a0ca8c511f08) is not valid.
Re-create the automation's two Device Actions or, better yet, use two service calls instead (fan.turn_on
and fan.turn_off
).
Is it possible to display the device name instead of entity_id in yaml?
Have you tried what I suggested?
Yes, it seems using a service in actions solves the issue. I could manually test the automation without log errors.
Ticket can be closed. Thank you for the support.
Just got the same error in 2023.10.1. The error message is not really intuitive since HA lets us choose the following (device is an Inovelli ZW36 light and fan switch) from the action drop down. Maybe fan action shouldn't be listed?
@joostlek Please reopen this issue as it's a valid defect. While the service approach works, the Device action should also work. I am seeing this with a Treatlife DS03 fan/light combo switch. The Device actions for the lights work as expected whereas the fan generates the error in this ticket.
Please create a separate issue. Otherwise this issue will become a never ending story with everyone with a slightly related problem.
I think I see some PRs saying that this will be changed in 2023.11 as there are now check if automations are incorrect, checkout #102766. Please check if you experience the same next week (or if you feel special, you can try the beta later today) and if you have issues, please create a new issue
Thanks @emontnemery and @joostlek
I don't agree to close this issue yet, we should understand the root cause. I'd expect this to happen only if the device was replaced or removed from Home Assistant.
I suspect there's something else happening here, it's strange everyone is having problems specifically with combined fan +lights.
Please feel free to contact me on discord, I'm @emontnemery there too.
Otherwise, please add some more background here:
I am not positive about the OP but my situation is the same as @jf-navica.
They are using an Inovelli ZW36 light and fan switch I am using a Treatlife DS03 light and fan switch
Mine is a new device (in use for a week) with no previous automations or anything tied to it. Uses the Tuya-Local integration. From the dashboard or device itself I am able to control both the light and fan with no observed issues. I am also able to control the light via Device > Action in the automation. The fan options (on/off) show but they are the ones that generate the errors:
Using the Services for Fan do work (as the OP also confirmed).
Worth noting that the actions to Increase / Decrease the fan speed aren't present though doubt that is directly related.
I can also confirm that looking in the yaml for the automation I see the entity id change depending upon if I choose a Light action or a Fan action. So it does appear that it's correctly realizing there are two entities under that device.
- What's the brand and model of the device not working?
Inovelli ZW36
- What integration is providing the device in Home Assistant?
Z-Wave JS
- Did the automation first work, and then it stopped working? If it worked at first, was something changed when it stopped working?
Automation never worked. I was controlling that fan via AppDaemon but decided to try through a local automation instead.
the actions to Increase / Decrease the fan speed aren't present
There's no such device action for fans, there's only turn on, turn off and toggle, so that's expected 👍
@kramttocs, @jf-navica Thanks for the input! I found the problem now, this will be fixed in Home Assistant Core 2023.11.0 👍
The problem
I've created an automation but the automation is not executed
What version of Home Assistant Core has the issue?
2023.8.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Automation
Link to integration documentation on our website
https://www.home-assistant.io/docs/automation/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response