#could anyone help me with the template

1 messages ยท Page 1 of 1 (latest)

flint island
#

i see a value in reading mqtt:

0.42```
#
  sensor:
    - name: "Energy Usage"
      state_topic: "mpmw/total_battery"
      state_class: "total"
      device_class: "energy"
      unit_of_measurement: "kWh"```
#

but even with that i never get a sensor created or value set

sick vigil
#

Have you restarted HA?

flint island
#

i did a reload of config - does it need a full restart?

fair trout
#

Yes

flint island
#

๐Ÿคฆ๐Ÿปโ€โ™‚๏ธ i've been at this all day, if it's that i'll go mad

#

still not seeing it

#

what's the best way to debug? as i see the mqtt message coming in when i sub the mqtt stream

#
0.41
QoS: 0 - Retain: false```
fair trout
#

Not seeing what? The sensor?

flint island
#

oh i'm also an idiot, i removed the made up id so it named it iself and it's different

#

in the config.yaml, can i create a unique id for it?

#
  sensor:
    - name: "Energy Usage"
      unique_id: "mpmw_total_battery"
      state_topic: "mpmw/total_battery"
      state_class: "total"
      device_class: "energy"
      unit_of_measurement: "kWh"
#

is that a thing?

fair trout
#

No need to guess

flint island
#

my day is guessing even after reading ๐Ÿ˜‰