Home asistant select tariff

idzie zmiana

Adopt SelectEntity in Utility Meter by dgomes · Pull Request #55690 · home-assistant/core (github.com)

The utility_meter tariff selector entities are now standard select entities with entity_id select.X instead of custom entities with entity_id utility_meter.X
In addition:

The service call utility_meter.select_tariff with argument tariff is deprecated in favor of service call select.select_option with argument option
The service call utility_meter.next_tariff is deprecated with no replacement
Backwards compatibility until HA Core release 2022.7:

The deprecated utility_meter.X entities are still available
The service call utility_meter.select_tariff still works on utility_meter.X enties, but a warning is logged when it's called
The service call utility_meter.next_tariff still works on utility_meter.X enties, but a warning is logged when it's called
In HA Core release 2022.7:

The deprecated utility_meter.X entities will no longer be available
The service call utility_meter.select_tariff will be removed
The service call utility_meter.next_tariff will be removed
What users need to do, before HA Core release 2022.7:

Update automations and UI and replace the no longer supported entity_id utility_meter.X with entity_id select.X
Update automations which change tariff by calling select.select_option and change the tariff argument to option

czy ktoś już ogarnia jak to zastosować w node -red ??
narazie mam jeszcze po staremu select_tariff, ale tego nowego zapisu nie ogarniam

automatyzacja w HA jest dla mnie zrozumiała:

automation:
  trigger:
    - platform: time
      at: "09:00:00"
      variables:
        tariff: "peak"
    - platform: time
      at: "21:00:00"
      variables:
        tariff: "offpeak"
  action:
    - service: select.select_option
      target:
        entity_id: select.daily_energy
      data:
        option: "{{ tariff }}"
    - service: select.select_option
      target:
        entity_id: select.monthly_energy
      data:
        option: "{{ tariff }}"

ale nie wiem jak to na node-red przeniść


EDIT:

już ogarnięte w Node Red

Wystarczy zmienić utility_meter.select_tariff na select.select_option, a agument na option