Set entity attribute

Hello
Is there any option to set up an attribute of HA entity?
I know there is a call service node, but ussually it can change state which is not what I want to achieve. I need to change value of one of attributes only, not touching other attributes nor state.
I’m not aware about method available in JS

thanks in advance.

You can use a http call and simply call the homeassistant api. However, you will always need to send all attributes or they are gone till the next update from the entity itself.

1 Like

I think I figured it out using the proximity integration combined with some globals. So when I tell Alexa to geofence, it pushes a helper button. This triggers my node-red routine which then gets the current proximity to home (something I was already monitoring) and turns on a monitor flag. Now every minute I check, see the monitoring flag and then check the proximity. If it’s changed then I get alerted.

I will need to test it more and figure out how much GPS sensitivity there is with proximity but I THINK this should work. Will confirm after testing. Thank you all for the suggestions.