arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.2k stars 4.81k forks source link

Gosund SP111 Voltage is 0 despite calibrating with VoltageSet etc. #6904

Closed robin13 closed 5 years ago

robin13 commented 5 years ago

BUG DESCRIPTION

Using a Gosund SP111 socket I have tried with Sonoff-Tasmota 6.7.1 and Tasmota 7.0.0.3 but I always get "Voltage":0

I am using a 60W light bulb as a load.

REQUESTED INFORMATION

As GPIO is not supported, I tried GPIOS:

09:33:07 MQT: stat/sp111-01/RESULT = {"GPIOs1":{"0":"None","18":"Button2","91":"Button2n","123":"Button2i","127":"Button2in","19":"Button3","92":"Button3n","124":"Button3i","128":"Button3in","20":"Button4","93":"Button4n","125":"Button4i","129":"Button4in","9":"Switch1","82":"Switch1n","10":"Switch2","83":"Switch2n","11":"Switch3","84":"Switch3n","12":"Switch4","85":"Switch4n","13":"Switch5","86":"Switch5n","14":"Switch6","87":"Switch6n","15":"Switch7","88":"Switch7n"}}
09:33:07 MQT: stat/sp111-01/RESULT = {"GPIOs2":{"16":"Switch8","89":"Switch8n","22":"Relay2","30":"Relay2i","23":"Relay3","31":"Relay3i","24":"Relay4","32":"Relay4i","25":"Relay5","33":"Relay5i","26":"Relay6","34":"Relay6i","27":"Relay7","35":"Relay7i","28":"Relay8","36":"Relay8i","54":"Led3","58":"Led3i","55":"Led4","59":"Led4i","157":"LedLink","158":"LedLinki","37":"PWM1","46":"PWM1i","38":"PWM2","47":"PWM2i","39":"PWM3","48":"PWM3i","40":"PWM4","49":"PWM4i"}}
09:33:07 MQT: stat/sp111-01/RESULT = {"GPIOs3":{"41":"PWM5","50":"PWM5i","42":"Counter1","94":"Counter1n","43":"Counter2","95":"Counter2n","44":"Counter3","96":"Counter3n","45":"Counter4","97":"Counter4n","160":"Buzzer","161":"Buzzeri","148":"Serial Tx","149":"Serial Rx","5":"I2C SCL","6":"I2C SDA","1":"DHT11","2":"AM2301","3":"SI7021","4":"DS18x20","7":"WS2812","147":"ALux IrRcv","159":"ALux IrSel","143":"MY92x1 DI","144":"MY92x1 DCKI","140":"SM16716 CLK"}}
09:33:07 MQT: stat/sp111-01/RESULT = {"GPIOs4":{"141":"SM16716 DAT","142":"SM16716 PWR","180":"SM2135 Clk","181":"SM2135 Dat","107":"Tuya Tx","108":"Tuya Rx","183":"EXS Enable","8":"IRsend","51":"IRrecv","73":"SR04 Tri","74":"SR04 Ech","102":"HX711 SCK","103":"HX711 DAT","130":"HLWBL SEL","133":"HLW8012 CF","156":"ADE7953 IRQ","145":"CSE7766 Tx","146":"CSE7766 Rx","135":"MCP39F5 Tx","136":"MCP39F5 Rx","137":"MCP39F5 Rst","62":"PZEM0XX Tx","63":"PZEM004 Rx"}}
09:33:07 MQT: stat/sp111-01/RESULT = {"GPIOs5":{"98":"PZEM016 Rx","99":"PZEM017 Rx","71":"SerBr Tx","72":"SerBr Rx","60":"MHZ Tx","61":"MHZ Rx","64":"SAir Tx","65":"SAir Rx","101":"SDS0X1 Tx","70":"SDS0X1 Rx","69":"PMS5003"}}

TO REPRODUCE

VoltageSet 230
PowerSet 60.0
CurrentSet 260.86

EXPECTED BEHAVIOUR

I would expect voltage and power to be shown. Interestingly the Total is shown and seems to be increasing with time.

Jason2866 commented 5 years ago

PZEM devices can NOT be calibrated https://github.com/arendst/Tasmota/wiki/PZEM-0XX#note-on-calibration

Please close. Thx

andrethomas2 commented 5 years ago

Closing this issue as it has been answered.

Support Information

See Wiki for more information. See Chat for more user experience. See Community for forum. See Code of Conduct

robin13 commented 5 years ago

In the end I found out that I have a SP111 v2 (I thought it was the v1) power monitoring plug: https://blakadder.github.io/templates/gosund_SP111_v2.html

Using this template it worked fine and voltage was displayed, but was wildly inaccurate. @Jason2866 - power monitoring calibration was necessary for it to give accurate readings.