Closed DragoDucati closed 1 year ago
Content of MqttMapper.json
{ "Mode selector": {"topic": "fan/mode", "type": "244", "subtype": "62", "switchtype": "18", "options": {"SelectorStyle":"1", "LevelOffHidden": "true", "LevelNames":"Off|Auto|Forced"}, "set": {"topic": "fan/mode/set", "payload": {"mode":"#"}}, "mapping": {"item": "mode", "default": "0", "values": {"Off": "0", "Auto": "10", "Forced": "20"}} } }
Issue is fixed in last version.
Json file content is correct.
Perfect, Thank you! :-)
2023-01-14 23:14:52.708 Status: MqttTest: Entering work loop. 2023-01-14 23:14:52.708 Status: MqttTest: Started. 2023-01-14 23:14:52.790 Status: MqttTest: Initialized version 1.0.6, author 'Flying Domotic' 2023-01-14 23:14:52.842 Error: MqttTest: Call to function 'onConnect' failed, exception details: 2023-01-14 23:14:52.842 Error: MqttTest: Traceback (most recent call last): 2023-01-14 23:14:52.842 Error: MqttTest: File "/opt/domoticz/userdata/plugins/MqttMapper/plugin.py", line 474, in onConnect 2023-01-14 23:14:52.842 Error: MqttTest: _plugin.onConnect(Connection, Status, Description) 2023-01-14 23:14:52.842 Error: MqttTest: File "/opt/domoticz/userdata/plugins/MqttMapper/plugin.py", line 261, in onConnect 2023-01-14 23:14:52.842 Error: MqttTest: if not initDone: 2023-01-14 23:14:52.842 Error: MqttTest: NameError: name 'initDone' is not defined 2023-01-14 23:15:52.061 Error: MqttTest: Call to function 'onHeartbeat' failed, exception details: 2023-01-14 23:15:52.061 Error: MqttTest: Traceback (most recent call last): 2023-01-14 23:15:52.061 Error: MqttTest: File "/opt/domoticz/userdata/plugins/MqttMapper/plugin.py", line 502, in onHeartbeat 2023-01-14 23:15:52.061 Error: MqttTest: _plugin.onHeartbeat() 2023-01-14 23:15:52.061 Error: MqttTest: File "/opt/domoticz/userdata/plugins/MqttMapper/plugin.py", line 445, in onHeartbeat 2023-01-14 23:15:52.062 Error: MqttTest: if not initDone: 2023-01-14 23:15:52.062 Error: MqttTest: NameError: name 'initDone' is not defined 2023-01-14 23:16:28.695 Error: MqttTest: Call to function 'onDisconnect' failed, exception details: 2023-01-14 23:16:28.696 Error: MqttTest: Traceback (most recent call last): 2023-01-14 23:16:28.696 Error: MqttTest: File "/opt/domoticz/userdata/plugins/MqttMapper/plugin.py", line 478, in onDisconnect 2023-01-14 23:16:28.696 Error: MqttTest: _plugin.onDisconnect(Connection) 2023-01-14 23:16:28.696 Error: MqttTest: File "/opt/domoticz/userdata/plugins/MqttMapper/plugin.py", line 267, in onDisconnect 2023-01-14 23:16:28.696 Error: MqttTest: if not initDone: 2023-01-14 23:16:28.696 Error: MqttTest: NameError: name 'initDone' is not defined