fix(plant): amps semantic must read raw by entity_id, not unique_id slug [#344]
Raw entity_id comes from the name slug (pfv_garage_pdu_output_current_raw), not the unique_id (pfv_garage_pdu_amps_raw) — only this sensor's name and unique_id diverge, so only its semantic was reading a nonexistent entity. https://projects.knownelement.com/issues/344#note-3916
This commit is contained in:
@@ -476,7 +476,7 @@ template:
|
||||
device_class: current
|
||||
unit_of_measurement: "A"
|
||||
state: >-
|
||||
{% set v = states('sensor.pfv_garage_pdu_amps_raw') %}
|
||||
{% set v = states('sensor.pfv_garage_pdu_output_current_raw') %}
|
||||
{{ v | float | round(1) if is_number(v) else none }}
|
||||
- name: "PFV garage PDU power"
|
||||
unique_id: pfv_garage_pdu_watts
|
||||
|
||||
Reference in New Issue
Block a user