I am using Alexa to control some stuff and therefore use the attribute last_called_summary of my echos.
However, if I said a command to Alexa like alexa switch my ablet to energy view and it did not work, I will say it again.
However, if the last_called_summary does not change (of course - it’s the same command once more), the automation will not be triggered (again).
So, I would like to reset the attribute last_called_summary to empty or whatever, to avoid this.
I was not able to find an automation action to manipulate the entities attribute (it dows work with the developer tools).
What’s the easiest way to do this?
Thanks.
There isn’t a built-in service, but you can use the Hass-Entities python script to create a service that will allow you to change the value of an entity’s state and/or attributes.
service: python_script.hass_entities
data:
action: set_attributes
entity_id: media_player.living_room_dot
attributes:
- last_called_summary: "alexa this is a test"
However, I currently have the issue that the triggerID condition does not work on the attributes:
Executing the python script from the automation resets the attribute.
Executing the entire automation sends the message via telegram.
But the trigger condition is never met.
Obviously the change of the attribute in the trigger section is not recognized as trigger even though I have declared these properly.