Closed gajotnt closed 6 years ago
I know this is not your problem because this is from a PR that adds support for a energy sensor (https://github.com/arendst/Sonoff-Tasmota/pull/614), everything is working except it doesnt send updates to domoticz, the idx is properly set in the domoticz page, maybe someone can take a look in the code and give me some light :( the PR coder isnt responding to me. Would be awesome if PZEM004T had official support
09:57:50 MQTT: stat/sonoff/STATUS = {"Status":{"Module":32, "FriendlyName":"Sonoff", "Topic":"sonoff", "ButtonTopic":"0", "Power":0, "PowerOnState":3, "LedState":1, "SaveData":1, "SaveState":1, "ButtonRetain":0, "PowerRetain":0}}
09:57:50 MQTT: stat/sonoff/STATUS1 = {"StatusPRM":{"Baudrate":115200, "GroupTopic":"sonoffs", "OtaUrl":"http://domus1:80/api/arduino/sonoff.ino.bin", "Uptime":0, "Sleep":0, "BootCount":13, "SaveCount":43, "SaveAddress":"F6000"}}
09:57:50 MQTT: stat/sonoff/STATUS2 = {"StatusFWR":{"Program":"5.6.1", "BuildDateTime":"2017-12-12T00:10:23", "Boot":4, "Core":"2_4_0_RC2", "SDK":"2.1.0(7106d38)"}}
09:57:50 MQTT: stat/sonoff/STATUS3 = {"StatusLOG":{"Seriallog":0, "Weblog":2, "Syslog":0, "LogHost":"domus1", "SSId1":"TNT", "SSId2":"indebuurt2", "TelePeriod":30, "Option":"55800009"}}
09:57:50 MQTT: stat/sonoff/STATUS4 = {"StatusMEM":{"ProgramSize":489, "Free":512, "Heap":19, "ProgramFlashSize":1024, "FlashSize":1024, "FlashMode":3}}
09:57:50 MQTT: stat/sonoff/STATUS5 = {"StatusNET":{"Hostname":"PowCasa", "IPaddress":"192.168.1.114", "Gateway":"192.168.1.254", "Subnetmask":"255.255.255.0", "DNSServer":"192.168.1.254", "Mac":"5C:CF:7F:E7:4D:66", "Webserver":2, "WifiConfig":3}}
09:57:50 MQTT: stat/sonoff/STATUS6 = {"StatusMQT":{"Host":"192.168.1.76", "Port":1883, "ClientMask":"DVES1_%06X", "Client":"DVES1_E74D66", "User":"DVES_USER", "MAX_PACKET_SIZE":512, "KEEPALIVE":15}}
09:57:50 MQTT: stat/sonoff/STATUS7 = {"StatusTIM":{"UTC":"Tue Dec 12 08:57:50 2017", "Local":"Tue Dec 12 09:57:50 2017", "StartDST":"Sun Mar 26 02:00:00 2017", "EndDST":"Sun Oct 29 03:00:00 2017", "Timezone":1}}
09:57:50 MQTT: stat/sonoff/STATUS8 = {"StatusPWR":{"Yesterday":0.000, "Today":5.304, "Power":233.0, "Voltage":239.5, "Current":1.140}}
09:57:50 MQTT: stat/sonoff/STATUS9 = {"StatusPTH":{"PowerLow":0, "PowerHigh":0, "VoltageLow":0, "VoltageHigh":0, "CurrentLow":0, "CurrentHigh":0}}
09:57:50 MQTT: stat/sonoff/STATUS10 = {"StatusSNS":{"Time":"2017-12-12T09:57:50"}}
09:57:50 MQTT: stat/sonoff/STATUS11 = {"StatusSTS":{"Time":"2017-12-12T09:57:50", "Uptime":0, "Vcc":3.448, "Wifi":{"AP":1, "SSID":"TNT", "RSSI":40, "APMac":"9C:97:26:9F:A5:0F"}}}
I saw this post and support for energy sensor (#614) in Sonoff basic. I do have pair of Sonoff basic and was wondering how PZEM 004T would get connected. Can Sonoff basic be used as a switch and read the sensor data from TTL interface? Is it safe to connect tx/rx if Sonoff is connected to the mains? Last one is how to provide 5v to energy sensor and 3.3v to sonoff. I was trying to picture how the devices would connect to each other as the sensor seems to be accurate at measuring the energy use. Thank you.
Yes you can use the relay of the basic and use the pzem. Yes it is safe :) The 5v when I get to a PC I will post a picture of were you can connect.
Thanks for your response and time :) That would be great if you can share the pictures on how things are connected.
@gajotnt Can you please share the connection options for SonOFF Basic ?
@gajotnt any news about the picture ?
Looks way safer to use in high wattage equipements than the sonoff POW.
https://github.com/olehs/PZEM004T
https://www.aliexpress.com/item/PEACEFAIR-AC-100A-Electric-power-monitoring-and-communication-module-power-meter-power-energy-Volt-Ammeter-with/32405328185.html?aff_platform=product&cpt=1509366879543&sk=F2zZRNv&aff_trace_key=ae2cbe39517f4abe965107629801917c-1509366879543-05026-F2zZRNv&terminal_id=a987af0fbdf4413dbb87d979911ed0d8
https://easydomoticz.com/forum/viewtopic.php?f=24&t=4687