Re: Python Plugin: MqttMapper
Posted: Friday 23 February 2024 10:44
I restarted a few times and its now showing the right values.
I added a second value, and again no value ....
{
"T_Living": {
"topic": "ebusd/ctlv2",
"key": "ebusd/ctlv2/z1RoomTemp",
"type": "80", "subtype": "5", "switchtype": "0" ,
"mapping": {"item": "", "multiplier": 0.1}
},
"T_Outside": {
"topic": "ëbusd/ctlv2",
"key": "ëbusd/ctlv2/DisplayedOutsideTemp",
"type": "80", "subtype": "5", "switchtype": "0" ,
"mapping": {"item": "", "multiplier": 0.1}
}
}
Added a bit of logging after I update the file:
2024-02-23 12:16:30.417 MQTT Mapper: 'HomeFolder':'/home/hjz/domoticz/plugins/MqttMapper/'
2024-02-23 12:16:30.417 MQTT Mapper: 'StartupFolder':'/home/hjz/domoticz/'
2024-02-23 12:16:30.417 MQTT Mapper: 'UserDataFolder':'/home/hjz/domoticz/'
2024-02-23 12:16:30.417 MQTT Mapper: 'Database':'/home/hjz/domoticz/domoticz.db'
2024-02-23 12:16:30.417 MQTT Mapper: 'Language':'en'
2024-02-23 12:16:30.417 MQTT Mapper: 'Version':'1.0.19'
2024-02-23 12:16:30.417 MQTT Mapper: 'Author':'Flying Domotic'
2024-02-23 12:16:30.417 MQTT Mapper: 'Name':'MQTT Mapper'
2024-02-23 12:16:30.417 MQTT Mapper: 'Address':'192.168.2.71'
2024-02-23 12:16:30.417 MQTT Mapper: 'Port':'1883'
2024-02-23 12:16:30.417 MQTT Mapper: 'Key':'MqttMapper'
2024-02-23 12:16:30.417 MQTT Mapper: 'Mode1':'MqttMapper.json'
2024-02-23 12:16:30.417 MQTT Mapper: 'Mode6':'Normal'
2024-02-23 12:16:30.417 MQTT Mapper: 'DomoticzVersion':'2024.4 (build 15910)'
2024-02-23 12:16:30.417 MQTT Mapper: 'DomoticzHash':'0f2fcff99'
2024-02-23 12:16:30.417 MQTT Mapper: 'DomoticzBuildTime':'2024-02-10 12:56:24'
2024-02-23 12:16:30.417 MQTT Mapper: Device count: 2
2024-02-23 12:16:30.417 MQTT Mapper: Device: 1 - ID: 1234, Name: 'MQTT Mapper - T_Living', nValue: 0, sValue: '19.6625'
2024-02-23 12:16:30.417 MQTT Mapper: Device: 2 - ID: 1235, Name: 'MQTT Mapper - T_Outside', nValue: 0, sValue: ''
2024-02-23 12:16:30.417 MQTT Mapper: Debug logging mask set to: PYTHON PLUGIN
2024-02-23 12:16:30.417 MQTT Mapper: Updating device T_Living
2024-02-23 12:16:30.418 MQTT Mapper: Updating device T_Outside
2024-02-23 12:16:30.420 MQTT Mapper: MqttClient::__init__
2024-02-23 12:16:30.420 MQTT Mapper: MqttClient::Open
2024-02-23 12:16:30.420 MQTT Mapper: Heartbeat interval set to: 60.
2024-02-23 12:16:30.470 MQTT Mapper: MqttClient::onConnect
2024-02-23 12:16:30.470 MQTT Mapper: Successful connect to: 192.168.2.71:1883
2024-02-23 12:16:30.470 MQTT Mapper: MqttClient::Connect
2024-02-23 12:16:30.470 MQTT Mapper: MQTT CONNECT ID: 'Domoticz_MqttMapper_31_1708686990'
2024-02-23 12:16:30.520 MQTT Mapper: onMQTTConnected
2024-02-23 12:16:30.521 MQTT Mapper: getTopics: '{'ebusd/ctlv2', 'ëbusd/ctlv2'}'
2024-02-23 12:16:30.521 MQTT Mapper: MqttClient::Subscribe
2024-02-23 12:16:30.571 MQTT Mapper: onMQTTSubscribed
2024-02-23 12:16:30.237 Status: MQTT Mapper: Stop directive received.
2024-02-23 12:16:30.243 Status: MQTT Mapper: Exiting work loop.
2024-02-23 12:16:30.337 Status: MQTT Mapper: Stopping threads.
2024-02-23 12:16:30.337 Status: MQTT Mapper: Stopped.
2024-02-23 12:16:30.338 Status: MQTT Mapper: Started.
2024-02-23 12:16:30.338 Status: MQTT Mapper: Entering work loop.
2024-02-23 12:16:30.416 Status: MQTT Mapper: Initialized version 1.0.19, author 'Flying Domotic'
I added a second value, and again no value ....
{
"T_Living": {
"topic": "ebusd/ctlv2",
"key": "ebusd/ctlv2/z1RoomTemp",
"type": "80", "subtype": "5", "switchtype": "0" ,
"mapping": {"item": "", "multiplier": 0.1}
},
"T_Outside": {
"topic": "ëbusd/ctlv2",
"key": "ëbusd/ctlv2/DisplayedOutsideTemp",
"type": "80", "subtype": "5", "switchtype": "0" ,
"mapping": {"item": "", "multiplier": 0.1}
}
}
Added a bit of logging after I update the file:
2024-02-23 12:16:30.417 MQTT Mapper: 'HomeFolder':'/home/hjz/domoticz/plugins/MqttMapper/'
2024-02-23 12:16:30.417 MQTT Mapper: 'StartupFolder':'/home/hjz/domoticz/'
2024-02-23 12:16:30.417 MQTT Mapper: 'UserDataFolder':'/home/hjz/domoticz/'
2024-02-23 12:16:30.417 MQTT Mapper: 'Database':'/home/hjz/domoticz/domoticz.db'
2024-02-23 12:16:30.417 MQTT Mapper: 'Language':'en'
2024-02-23 12:16:30.417 MQTT Mapper: 'Version':'1.0.19'
2024-02-23 12:16:30.417 MQTT Mapper: 'Author':'Flying Domotic'
2024-02-23 12:16:30.417 MQTT Mapper: 'Name':'MQTT Mapper'
2024-02-23 12:16:30.417 MQTT Mapper: 'Address':'192.168.2.71'
2024-02-23 12:16:30.417 MQTT Mapper: 'Port':'1883'
2024-02-23 12:16:30.417 MQTT Mapper: 'Key':'MqttMapper'
2024-02-23 12:16:30.417 MQTT Mapper: 'Mode1':'MqttMapper.json'
2024-02-23 12:16:30.417 MQTT Mapper: 'Mode6':'Normal'
2024-02-23 12:16:30.417 MQTT Mapper: 'DomoticzVersion':'2024.4 (build 15910)'
2024-02-23 12:16:30.417 MQTT Mapper: 'DomoticzHash':'0f2fcff99'
2024-02-23 12:16:30.417 MQTT Mapper: 'DomoticzBuildTime':'2024-02-10 12:56:24'
2024-02-23 12:16:30.417 MQTT Mapper: Device count: 2
2024-02-23 12:16:30.417 MQTT Mapper: Device: 1 - ID: 1234, Name: 'MQTT Mapper - T_Living', nValue: 0, sValue: '19.6625'
2024-02-23 12:16:30.417 MQTT Mapper: Device: 2 - ID: 1235, Name: 'MQTT Mapper - T_Outside', nValue: 0, sValue: ''
2024-02-23 12:16:30.417 MQTT Mapper: Debug logging mask set to: PYTHON PLUGIN
2024-02-23 12:16:30.417 MQTT Mapper: Updating device T_Living
2024-02-23 12:16:30.418 MQTT Mapper: Updating device T_Outside
2024-02-23 12:16:30.420 MQTT Mapper: MqttClient::__init__
2024-02-23 12:16:30.420 MQTT Mapper: MqttClient::Open
2024-02-23 12:16:30.420 MQTT Mapper: Heartbeat interval set to: 60.
2024-02-23 12:16:30.470 MQTT Mapper: MqttClient::onConnect
2024-02-23 12:16:30.470 MQTT Mapper: Successful connect to: 192.168.2.71:1883
2024-02-23 12:16:30.470 MQTT Mapper: MqttClient::Connect
2024-02-23 12:16:30.470 MQTT Mapper: MQTT CONNECT ID: 'Domoticz_MqttMapper_31_1708686990'
2024-02-23 12:16:30.520 MQTT Mapper: onMQTTConnected
2024-02-23 12:16:30.521 MQTT Mapper: getTopics: '{'ebusd/ctlv2', 'ëbusd/ctlv2'}'
2024-02-23 12:16:30.521 MQTT Mapper: MqttClient::Subscribe
2024-02-23 12:16:30.571 MQTT Mapper: onMQTTSubscribed
2024-02-23 12:16:30.237 Status: MQTT Mapper: Stop directive received.
2024-02-23 12:16:30.243 Status: MQTT Mapper: Exiting work loop.
2024-02-23 12:16:30.337 Status: MQTT Mapper: Stopping threads.
2024-02-23 12:16:30.337 Status: MQTT Mapper: Stopped.
2024-02-23 12:16:30.338 Status: MQTT Mapper: Started.
2024-02-23 12:16:30.338 Status: MQTT Mapper: Entering work loop.
2024-02-23 12:16:30.416 Status: MQTT Mapper: Initialized version 1.0.19, author 'Flying Domotic'