mverleun / RTL433-to-mqtt

Publish info from RTL433 receiver to MQTT broker
GNU General Public License v3.0
94 stars 20 forks source link

State topic incorrect when item has names with 'id' #6

Open TASSDevon opened 5 years ago

TASSDevon commented 5 years ago

My weather station pushes an item with the name 'humidity'. The check for 'id' to construct the mqtt topic becomes true in this case, so instead of using the actual ID field, the humidity value is appended. This is obviously not what we want :-)