FlyingDomotic / domoticz-mqttmapper-plugin

Domoticz plugin to map MQTT topics to devices/Associe MQTT topics et Domoticz dispositifs
GNU General Public License v3.0
18 stars 6 forks source link

error after device replace #16

Open TomMalfrere opened 1 month ago

TomMalfrere commented 1 month ago

Hi,

I'm running MQTT mapper for 2 devices: a watermeter and a gasmeter. before I fetched the data from the meters with a REST API call. Since 2 weeks I'm using your MQTT mapper to fetch the same data from MQTT.

Today I replaced the old water meter (REST) with the new water meter (MQTT mapper) and then I got an attribute error on line 409 of plugin.py. The device.Name did not exist.

a restart of Domoticz resolved the issue