emontnemery / domoticz_mqtt_discovery

MQTT discovery plugin for Domoticz
MIT License
40 stars 28 forks source link

Support Solarview over MQTT #32

Open luckysession opened 4 years ago

luckysession commented 4 years ago

Hi guys,

how to support solarview via mqtt? "WR1" is photovoltaic generation, "D0" is electricity consumption... may somebody able to support this?

$ mosquitto_sub -h 127.0.0.1 -p 1883 -v -t "domoticz/#" domoticz/in/WR1/PAC 1445 domoticz/in/WR1/UDC 371.7 domoticz/in/WR1/UDC 371.7 domoticz/in/WR1/UDCB 252.7 domoticz/in/WR1/IDC 4.0 domoticz/in/WR1/IDC 4.0 domoticz/in/WR1/IDCB 0.4 domoticz/in/WR1/UL1 237.6 domoticz/in/WR1/IL1 6.1 domoticz/in/WR1/KDY 12.5 domoticz/in/WR1/KMT 95 domoticz/in/WR1/KYR 1276 domoticz/in/WR1/KT0 23003 domoticz/in/WR1/TKK 0 domoticz/in/D0/BKDY 7.8 domoticz/in/D0/BKMT 203 domoticz/in/D0/BKYR 1830 domoticz/in/D0/BKT0 34431 domoticz/in/D0/DPAC -834 domoticz/in/WR1/PAC 1445 domoticz/in/WR1/UDC 371.7 domoticz/in/WR1/UDC 371.7 domoticz/in/WR1/UDCB 252.7 domoticz/in/WR1/IDC 4.0 domoticz/in/WR1/IDC 4.0 domoticz/in/WR1/IDCB 0.4 domoticz/in/WR1/UL1 237.6 domoticz/in/WR1/IL1 6.1 domoticz/in/WR1/KDY 12.5 domoticz/in/WR1/KMT 95 domoticz/in/WR1/KYR 1276 domoticz/in/WR1/KT0 23003 domoticz/in/WR1/TKK 0

luckysession commented 4 years ago

@domoticz verbose log:

2020-06-19 18:44:12.655 (MQTT_solarview) onMQTTPublish: solarview/D0/BKDY:b'8.7' (usage/day KWh) 2020-06-19 18:44:12.655 (MQTT_solarview) onMQTTPublish: solarview/D0/BKMT:b'204' (usage/month KWh) 2020-06-19 18:44:12.858 (MQTT_solarview) onMQTTPublish: solarview/D0/BKYR:b'1830' (usage /year KWh) 2020-06-19 18:44:12.858 (MQTT_solarview) onMQTTPublish: solarview/D0/BKT0:b'34432' (usage / overall KWh 2020-06-19 18:44:12.858 (MQTT_solarview) onMQTTPublish: solarview/D0/DPAC:b'-452' (current consumption W) 2020-06-19 18:44:24.784 (MQTT_solarview) onMQTTPublish: solarview/WR1/PAC:b'359' (String b Power) 2020-06-19 18:44:24.836 (MQTT_solarview) onMQTTPublish: solarview/WR1/UDC:b'418.5' 2020-06-19 18:44:24.836 (MQTT_solarview) onMQTTPublish: solarview/WR1/UDC:b'418.5' (String a Voltage) 2020-06-19 18:44:24.836 (MQTT_solarview) onMQTTPublish: solarview/WR1/UDCB:b'244.6' (String b Voltage) 2020-06-19 18:44:25.192 (MQTT_solarview) onMQTTPublish: solarview/WR1/IL1:b'1.5' (photovoltaic generation current AC) 2020-06-19 18:44:25.192 (MQTT_solarview) onMQTTPublish: solarview/WR1/KDY:b'14.2' (photovoltaic generation / day KWh) 2020-06-19 18:44:25.192 (MQTT_solarview) onMQTTPublish: solarview/WR1/KMT:b'95' (photovoltaic generation / month KWh) 2020-06-19 18:44:25.193 (MQTT_solarview) onMQTTPublish: solarview/WR1/KYR:b'1276' (photovoltaic generation / year KWh) 2020-06-19 18:44:25.395 (MQTT_solarview) onMQTTPublish: solarview/WR1/KT0:b'23004' (photovoltaic generation / overall KWh) 2020-06-19 18:44:25.395 (MQTT_solarview) onMQTTPublish: solarview/WR1/TKK:b'0'

Me again, maybe mistake and better support with "Kamstrup Meter (Sonoff-Tasmota MQTT) plugin " Here my verbose log: 2020-06-19 22:37:38.156 (MQTT_solarview) Heartbeating... 2020-06-19 22:37:38.157 (MQTT_solarview) MqttClient::Ping 2020-06-19 22:37:38.157 (MQTT_solarview) getDevices key: '' configkey: '' hasconfigkey: '' value: '' config: '' topic: 'solarview/D0/cmnd' 2020-06-19 22:37:38.157 (MQTT_solarview) getDevices found 0 devices 2020-06-19 22:37:38.157 (MQTT_solarview) Meter with topic 'solarview/D0' is unknown, trying to identify meter 2020-06-19 22:37:38.158 (MQTT_solarview) MqttClient::Publish solarview/D0/cmnd/serialsend4 (803f01058a0d) 2020-06-19 22:37:38.158 (MQTT_solarview) getDevices key: '' configkey: '' hasconfigkey: '' value: '' config: '' topic: ' solarview/WR1/cmnd' 2020-06-19 22:37:38.158 (MQTT_solarview) getDevices found 0 devices 2020-06-19 22:37:38.158 (MQTT_solarview) Meter with topic ' solarview/WR1' is unknown, trying to identify meter 2020-06-19 22:37:38.159 (MQTT_solarview) MqttClient::Publish solarview/WR1/cmnd/serialsend4 (803f01058a0d) 2020-06-19 22:37:38.159 (MQTT_solarview) Sending 2 bytes of data 2020-06-19 22:37:38.159 (MQTT_solarview) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. � 2020-06-19 22:37:38.160 (MQTT_solarview) Sending 39 bytes of data 2020-06-19 22:37:38.160 (MQTT_solarview) 30 25 00 1d 73 6f 6c 61 72 76 69 65 77 2f 44 30 2f 63 6d 6e 0%..solarview/D0/cmn 2020-06-19 22:37:38.160 (MQTT_solarview) 64 2f 73 65 72 69 61 6c 73 65 6e 64 34 80 3f 01 05 8a 0d .. d/serialsend4�..ʮ 2020-06-19 22:37:38.161 (MQTT_solarview) Sending 41 bytes of data 2020-06-19 22:37:38.161 (MQTT_solarview) 30 27 00 1f 20 73 6f 6c 61 72 76 69 65 77 2f 57 52 31 2f 63 0'...solarview/WR1/c 2020-06-19 22:37:38.161 (MQTT_solarview) 6d 6e 64 2f 73 65 72 69 61 6c 73 65 6e 64 34 80 3f 01 05 8a mnd/serialsend4�..� 2020-06-19 22:37:38.161 (MQTT_solarview) 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. . 2020-06-19 22:37:38.211 (MQTT_solarview) Received 2 bytes of data 2020-06-19 22:37:38.211 (MQTT_solarview) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю

altserg commented 2 years ago

IMHO this requires a separate plugin, not related to Tasmota