#How to change Huawei Battery Working mode by Node-Red action

1 messages · Page 1 of 1 (latest)

crude solstice
#

Have the Huawei inverter and battery integration.
I have an entity called 'select.battery_working_mode' in the Dashboard it is a drop-down menu with 4 options.
I'd like to use Node-Red to change the selection. I'm able to change it using HA Automations (see below)
Thanks for your input

crude solstice
#

Google learned me to use select.select_option. A HA automation works to change the mode! But now in Node-Red I tried a lot but so far nothing works.
A debug node gives: 'InputError: Invalid JSON: {"option": time_of_use_luna2000} '
I tried Expression and JSON and many different syntax options.
Anyone who could help please

#

For Automations this works:

  - action: select.select_option
    metadata: {}
    data:
      option: time_of_use_luna2000
    target:
      entity_id: select.battery_working_mode```
Valid options are: adaptive, fixed_charge_discharge, maximise_self_consumption, fully_fed_to_grid, time_of_use_luna2000
#

After a long search, this works.

#

RESOLVED : How to change Huawei Battery Working mode by Node-Red action