zachowj / hass-node-red

Companion Component for node-red-contrib-home-assistant-websocket to help integrate Node-RED with Home Assistant Core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Energy entities stopped working in the Energy panel with version 4.01

driagi opened this issue · comments

Describe the bug

After updating to version 4.0.1, the Energy panel stopped working (undefined entity)
My configuration:
Node-Red Companion: 4.01
Core: 2024.7.2
Supervisor: 2024.06.2
Operating System: 12.4

To Reproduce

  1. Create a energy entity
  2. Add Entity to Energy panel

Expected behavior

No response

Screenshots

image
image
image

Example Flow

No response

Environment Information

Version: 0.65.1

Home Assistant version: 2024.7.2
Companion version: 4.0.1

Node-RED version: 4.0.2
Docker: yes
Add-on: no

Node.js version: v18.20.3 arm64 linux
OS: Linux 6.6.31-haos-raspi arm64

Additional context

No response

Is there something wrong with the issue?

What does the state for those two entities show in the developers tools in HA?

They don't exist, but I think they've changed names.
For example: from sensor.nr_consumo_totale_2 to sensor.consumo_totale
it seems to have changed to the Friendly name

image

image

image

Yes, I tested it and confirm that it takes the form sensor.friendlyname

image

image

commented

The first time you create an entity from NR it will attempt to create an entity ID from the friendly name field. If the friendly name field is blank the entity id will default to sensor.nodered_<node id >. After the entity has been created in HA for the first time, the friendly name field controls only the friendly name in HA. It will not change the entity ID field. That has to be done through HA.