Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to recognize ESP8266 with ADC input for voltage measurement #33

Open
rolandbreedveld opened this issue Jul 12, 2020 · 0 comments
Open

Comments

@rolandbreedveld
Copy link

I want to do voltage measurement with the ADC input, on the device site it works, but how to get Domoticz recognize it.
When I use the Sonoff SV template, the (not used) switch is recognized in Domoticz, but the ADS analogue value not.

2020-07-12 14:27:20.839 (MQTT-discovery) updateDeviceSettings devicename: '0DCC43_ANALOG_A0' devicetype: 'sensor' config: '{'name': 'iot01 ANALOG A0', 'state_topic': 'sonoff221/tele/SENSOR', 'availability_topic': 'sonoff221/tele/LWT', 'payload_available': 'Online', 'payload_not_available': 'Offline', 'unique_id': '0DCC43_ANALOG_A0', 'device': {'identifiers': ['0DCC43']}, 'unit_of_measurement': ' ', 'icon': 'mdi:eye', 'force_update': True, 'value_template': "{{value_json['ANALOG']['A0']}}"}'
2020-07-12 14:27:20.840 (MQTT-discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: '0DCC43_ANALOG_A0' config: '' topic: ''
2020-07-12 14:27:20.841 (MQTT-discovery) getDevices found 0 devices
2020-07-12 14:27:20.841 (MQTT-discovery) updateDeviceSettings: Did not find device with key='devicename', value = '0DCC43_ANALOG_A0'
2020-07-12 14:27:20.841 (MQTT-discovery) updateDeviceSettings: TypeName: '' Type: 0
2020-07-12 14:27:20.894 (MQTT-discovery) updateDeviceSettings devicename: '0DCC43_RL_1' devicetype: 'switch' config: '{'name': 'iot01 iot01', 'state_topic': 'sonoff221/tele/STATE', 'availability_topic': 'sonoff221/tele/LWT', 'payload_available': 'Online', 'payload_not_available': 'Offline', 'command_topic': 'sonoff221/cmnd/POWER', 'value_template': '{{value_json.POWER}}', 'payload_off': 'OFF', 'payload_on': 'ON', 'unique_id': '0DCC43_RL_1', 'device': {'identifiers': ['0DCC43']}}'
2020-07-12 14:27:20.894 (MQTT-discovery) devicetype == 'switch'
2020-07-12 14:27:20.894 (MQTT-discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: '0DCC43_RL_1' config: '' topic: ''
2020-07-12 14:27:20.895 (MQTT-discovery) getDevices found 1 devices
2020-07-12 14:27:20.895 (MQTT-discovery) isTasmota: True
2020-07-12 14:27:20.895 (MQTT-discovery) statetopic: sonoff221/tele/STATE
2020-07-12 14:27:21.005 (MQTT-discovery) updateDeviceSettings devicename: '0DCC43_status' devicetype: 'sensor' config: '{'name': 'iot01 status', 'state_topic': 'sonoff221/tele/HASS_STATE', 'availability_topic': 'sonoff221/tele/LWT', 'payload_available': 'Online', 'payload_not_available': 'Offline', 'json_attributes_topic': 'sonoff221/tele/HASS_STATE', 'unit_of_measurement': '%', 'value_template': "{{value_json['RSSI']}}", 'icon': 'mdi:information-outline', 'unique_id': '0DCC43_status', 'device': {'identifiers': ['0DCC43'], 'name': 'iot01', 'model': 'Sonoff SV', 'sw_version': '8.3.1(tasmota)', 'manufacturer': 'Tasmota'}}'
2020-07-12 14:27:21.005 (MQTT-discovery) getDevices key: 'devicename' configkey: '' hasconfigkey: '' value: '0DCC43_status' config: '' topic: ''
2020-07-12 14:27:21.005 (MQTT-discovery) getDevices found 0 devices
2020-07-12 14:27:21.006 (MQTT-discovery) updateDeviceSettings: Did not find device with key='devicename', value = '0DCC43_status'
2020-07-12 14:27:21.006 (MQTT-discovery) updateDeviceSettings: TypeName: '' Type: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant