#mqtt devices go under `mqtt` key not

1 messages · Page 1 of 1 (latest)

bronze stratus
#

yes it is under mqtt: I just did not type that, sorry

teal jewel
#

did you do a configuration check?

bronze stratus
#

yes that configuration was good and allowed me to restart

#

I am sending this mqtt message from an ESP8266 as a character string I think and not an integer

teal jewel
#

what does the json payload look like?

bronze stratus
#

I am not sure what that means

teal jewel
#

how does the message sent on topic virtual/light look like?

bronze stratus
#

when I listen to the topic I get this message:

#

Message 16 received on virtual/light at 7:35 PM:
39
QoS: 0 - Retain: true

teal jewel
#

so you're looking for value_template: "{{ value }}" or don't need that line at all

bronze stratus
#

I thought that line would give me the value of 39 from the mqtt message

teal jewel
#

that line gives you the value of the level key from a json payload which you don't have at all

bronze stratus
#

so what should i have instead?

teal jewel
#

i just told you that