Change state of entities

Hi, I'm using node-red in home assistant.

Il trying to change the state of entities but I'm not getting it..

.. how would you do this?

  "battery_working_mode": "Time Of Use"``

i asked my mate chat gbt but hes got his knickers in a twist

he's telling me this ```{
  "options": {
    "battery_excess_pv_energy_use_in_tou": {
      "value": "Fed to grid"
    },
    "battery_working_mode": {
      "value": "Time Of Use"
    }
  }
}

Drag a call service node from the palette onto your flow and double-click on it to open the configuration window.

Select the Home Assistant server you want to connect to from the "Server" dropdown list.

Choose the appropriate domain and service that correspond to the entity you want to modify. In this case, you would need to choose the select domain and the set_options service.

`

It really isn't clear what "this" means in your context. You will need to give a more complete example of what you are trying to do.

Taking a stab in the dark, if you had a msg with:

{
    "payload": {
        "battery_working_mode": "something"
    }
}

And you wanted to change that to a different mode, you could use a change node:
image

I'm sorry.

I'm using node red in home assistant.

I'm trying to change the state of entities.

Just realised that I don't actually have the entity listed there I have the friendly name.

Sorry, we are still missing the context - on its own, that could mean anything.

Sorry, I didn't know how else to say it.. this is the solution.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.