Hi.
Is possible to change Friendly name based on value from sensor?
Let me explain:
I have a fronius solar inverter. One of entities is sensor.power_grid_fronius_power_flow_0_http_192_168_22_116
and when the value is NEGATIVE, means that I’m providing power to grid. When value is POSITIVE, means I’m getting power from grid. And that’s what I would like to know while displayng my text/graph in dashboard. “Power FROM grid” and “Power TO grid”, display both in positive values. Is it possible? If so, how?
Create a Template Sensor that is based on the value of the power grid sensor. A Template Sensor supports friendly_name_template.
1 Like