joba-1 / Tasmoticz

Domoticz MQTT autodiscovery plugin for Tasmota devices
MIT License
25 stars 18 forks source link

Devices not added #19

Open roblomq opened 3 years ago

roblomq commented 3 years ago

I try to use this plugin. It adds one switch but there must be more. In the log of domoticz I get the folowing.

`2021-03-28 01:48:21.101 Python Plugin System: (MQTT Discovery) Heartbeating... 2021-03-28 01:48:21.101 Python Plugin System: (MQTT Discovery) MqttClient::Ping 2021-03-28 01:48:21.384 Python Plugin System: (MQTT Discovery) updateDeviceSettings devicename: 'CA2538_MHZ19B_Model' devicetype: 'sensor' config: '{'name': 'Tasmota MHZ19B Model', 'state_topic': 'tele/tasmota_CA2538/SENSOR', 'availability_topic': 'tele/tasmota_CA2538/LWT', 'payload_available': 'Online', 'payload_not_available': 'Offline', 'unique_id': 'CA2538_MHZ19B_Model', 'device': {'identifiers': ['CA2538']}, 'unit_of_measurement': ' ', 'icon': 'mdi:eye', 'force_update': True, 'value_template': "{{value_json['MHZ19B']['Model']}}"}' 2021-03-28 01:48:21.385 Python Plugin System: (MQTT Discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: 'CA2538_MHZ19B_Model' config: '' topic: '' 2021-03-28 01:48:21.385 Python Plugin System: (MQTT Discovery) getDevices found 0 devices 2021-03-28 01:48:21.385 Python Plugin System: (MQTT Discovery) updateDeviceSettings: Did not find device with key='devicename', value = 'CA2538_MHZ19B_Model' 2021-03-28 01:48:21.385 Python Plugin System: (MQTT Discovery) updateDeviceSettings: TypeName: '' Type: 0 2021-03-28 01:48:21.386 Python Plugin System: (MQTT Discovery) updateDeviceSettings devicename: 'CA2538_MHZ19B_CarbonDioxide' devicetype: 'sensor' config: '{'name': 'Tasmota MHZ19B CarbonDioxide', 'state_topic': 'tele/tasmota_CA2538/SENSOR', 'availability_topic': 'tele/tasmota_CA2538/LWT', 'payload_available': 'Online', 'payload_not_available': 'Offline', 'unique_id': 'CA2538_MHZ19B_CarbonDioxide', 'device': {'identifiers': ['CA2538']}, 'unit_of_measurement': 'ppm', 'icon': 'mdi:molecule-co2', 'force_update': True, 'value_template': "{{value_json['MHZ19B']['CarbonDioxide']}}"}' 2021-03-28 01:48:21.386 Python Plugin System: (MQTT Discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: 'CA2538_MHZ19B_CarbonDioxide' config: '' topic: '' 2021-03-28 01:48:21.386 Python Plugin System: (MQTT Discovery) getDevices found 0 devices 2021-03-28 01:48:21.386 Python Plugin System: (MQTT Discovery) updateDeviceSettings: Did not find device with key='devicename', value = 'CA2538_MHZ19B_CarbonDioxide' 2021-03-28 01:48:21.386 Python Plugin System: (MQTT Discovery) updateDeviceSettings: TypeName: '' Type: 0 2021-03-28 01:48:21.387 Python Plugin System: (MQTT Discovery) updateDeviceSettings devicename: 'CA2538_MHZ19B_Temperature' devicetype: 'sensor' config: '{'name': 'Tasmota MHZ19B Temperature', 'state_topic': 'tele/tasmota_CA2538/SENSOR', 'availability_topic': 'tele/tasmota_CA2538/LWT', 'payload_available': 'Online', 'payload_not_available': 'Offline', 'unique_id': 'CA2538_MHZ19B_Temperature', 'device': {'identifiers': ['CA2538']}, 'unit_of_measurement': '°C', 'device_class': 'temperature', 'force_update': True, 'value_template': "{{value_json['MHZ19B']['Temperature']}}"}' 2021-03-28 01:48:21.387 Python Plugin System: (MQTT Discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: 'CA2538_MHZ19B_Temperature' config: '' topic: '' 2021-03-28 01:48:21.387 Python Plugin System: (MQTT Discovery) getDevices found 0 devices 2021-03-28 01:48:21.387 Python Plugin System: (MQTT Discovery) updateDeviceSettings: Did not find device with key='devicename', value = 'CA2538_MHZ19B_Temperature' 2021-03-28 01:48:21.387 Python Plugin System: (MQTT Discovery) updateDeviceSettings: TypeName: '' Type: 0 2021-03-28 01:48:21.660 Python Plugin System: (MQTT Discovery) updateDeviceSettings devicename: 'CA2538_status' devicetype: 'sensor' config: '{'name': 'Tasmota status', 'state_topic': 'tele/tasmota_CA2538/HASS_STATE', 'availability_topic': 'tele/tasmota_CA2538/LWT', 'payload_available': 'Online', 'payload_not_available': 'Offline', 'json_attributes_topic': 'tele/tasmota_CA2538/HASS_STATE', 'unit_of_measurement': '%', 'value_template': "{{value_json['RSSI']}}", 'icon': 'mdi:information-outline', 'unique_id': 'CA2538_status', 'device': {'identifiers': ['CA2538'], 'name': 'Tasmota', 'model': 'ESP32-DevKit', 'sw_version': '9.3.1(sensors)', 'manufacturer': 'Tasmota'}}' 2021-03-28 01:48:21.660 Python Plugin System: (MQTT Discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: 'CA2538_status' config: '' topic: '' 2021-03-28 01:48:21.661 Python Plugin System: (MQTT Discovery) getDevices found 0 devices 2021-03-28 01:48:21.661 Python Plugin System: (MQTT Discovery) updateDeviceSettings: Did not find device with key='devicename', value = 'CA2538_status' 2021-03-28 01:48:21.661 Python Plugin System: (MQTT Discovery) updateDeviceSettings: TypeName: '' Type: 0

`

It seems that the "updateDeviceSettings: Did not find device with key='devicename', value = 'CA2538_MHZ19B_Model'" is not recognized or something. How can I solve this?