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

MQTT wrong values for POWER (SONOFF POW) #236

Closed
xoseperez opened this issue Oct 3, 2017 · 13 comments
Closed

MQTT wrong values for POWER (SONOFF POW) #236

xoseperez opened this issue Oct 3, 2017 · 13 comments

Comments

@xoseperez
Copy link
Owner

Originally reported by: lesleyp (Bitbucket: lesleyp, GitHub: lesleyp)


1.9.2 give normal results (in this case 0.000)
but 1.9.5 was needed for the lost connection fix with MQTT but the result for POWER is wrong. See results below in LOG.

#!domoticz log

2017-10-03 22:31:17.640 MQTT: Topic: domoticz/in, Message: {"idx": 947, "nvalue": 0, "svalue": "1073646071;�~"}
2017-10-03 22:32:17.641 MQTT: Topic: domoticz/in, Message: {"idx": 947, "nvalue": 0, "svalue": "1073646071;"}
2017-10-03 22:33:17.640 MQTT: Topic: domoticz/in, Message: {"idx": 947, "nvalue": 0, "svalue": "1073646071;"}
2017-10-03 22:35:18.338 MQTT: Topic: domoticz/in, Message: {"idx": 947, "nvalue": 0, "svalue": "1073646071;"}
2017-10-03 22:36:38.635 MQTT: Topic: domoticz/in, Message: {"idx": 947, "nvalue": 0, "svalue": "0;0.000"}
2017-10-03 22:38:12.410 MQTT: Topic: domoticz/in, Message: {"idx": 947, "nvalue": 0, "svalue": "1073646071;"}
2017-10-03 22:40:00.937 MQTT: Topic: domoticz/in, Message: {"idx": 947, "nvalue": 0, "svalue": "0;0.000"}
2017-10-03 22:42:00.951 MQTT: Topic: domoticz/in, Message: {"idx": 947, "nvalue": 0, "svalue": "0;0.000"} 

The other results and switching are ok.
i already did a reset, reset calibration, hard power cycle, builds from downloads section.
Any idea how i can troubleshoot further or is it a bug? (i have several SONOFF POW parts and on all the same issue)
Thanks!

@xoseperez
Copy link
Owner Author

Original comment by lesleyp (Bitbucket: lesleyp, GitHub: lesleyp):


Just to be sure. Tested with another MQTT broker and result from Sonoff POW with v1.9.5 is:

#!MQTT Log

{"idx": 947, "nvalue": 0, "svalue": "1073646071;<null>"}

@xoseperez
Copy link
Owner Author

Original comment by Eric Krieger (Bitbucket: ekrbb, GitHub: Unknown):


I experience the same behaviour:

#!

 2017-10-05 16:08:01.003 MQTT: Topic: domoticz/in, Message: {"idx": 1670, "nvalue": 0, "svalue": "0;0.000"}
 2017-10-05 16:08:01.147 MQTT: Topic: domoticz/in, Message: {"idx": 1671, "nvalue": 0, "svalue": "0.000"}
 2017-10-05 16:08:01.289 MQTT: Topic: domoticz/in, Message: {"idx": 1669, "nvalue": 0, "svalue": "225"}
 2017-10-05 16:08:01.391 MQTT: Topic: domoticz/in, Message: {"idx": 1668, "nvalue": 0, "svalue": "0.00"}

 2017-10-05 16:09:01.073 MQTT: Topic: domoticz/in, Message: {"idx": 1670, "nvalue": 0, "svalue": "0;0.000"}
 2017-10-05 16:09:01.215 MQTT: Topic: domoticz/in, Message: {"idx": 1671, "nvalue": 0, "svalue": "0.000"}
 2017-10-05 16:09:01.358 MQTT: Topic: domoticz/in, Message: {"idx": 1669, "nvalue": 0, "svalue": "224"}
 2017-10-05 16:09:01.461 MQTT: Topic: domoticz/in, Message: {"idx": 1668, "nvalue": 0, "svalue": "0.00"}


[Upgraded from 1.9.2 to 1.9.5]

#!

 2017-10-05 16:10:38.577 MQTT: Topic: domoticz/in, Message: {"idx": 1670, "nvalue": 0, "svalue": "1073646074;"}
 2017-10-05 16:10:38.719 MQTT: Topic: domoticz/in, Message: {"idx": 1668, "nvalue": 0, "svalue": "0.00"}
 2017-10-05 16:10:38.862 MQTT: Topic: domoticz/in, Message: {"idx": 1671, "nvalue": 0, "svalue": "0.00"}
 2017-10-05 16:10:39.004 MQTT: Topic: domoticz/in, Message: {"idx": 1669, "nvalue": 0, "svalue": "199"}

 2017-10-05 16:12:38.968 MQTT: Topic: domoticz/in, Message: {"idx": 1670, "nvalue": 0, "svalue": "1073646074;"}
 2017-10-05 16:12:39.110 MQTT: Topic: domoticz/in, Message: {"idx": 1668, "nvalue": 0, "svalue": "0.00"}
 2017-10-05 16:12:39.255 MQTT: Topic: domoticz/in, Message: {"idx": 1671, "nvalue": 0, "svalue": "0.00"}
 2017-10-05 16:12:39.397 MQTT: Topic: domoticz/in, Message: {"idx": 1669, "nvalue": 0, "svalue": "162"}

Voltage Level is not stable (IDX 1669); this happens also on the main status page.

@xoseperez
Copy link
Owner Author

Original comment by ElMarconi (Bitbucket: ElMarconi, GitHub: ElMarconi):


I can confirm this behaviour. For me it started after upgrade from 1.9.4 to 1.9.5.
Also the unit suffers from frequent reboots.

@xoseperez
Copy link
Owner Author

Original comment by cento (Bitbucket: Cento5anta, GitHub: Unknown):


speed update message ?

olny 60 sec ?

possilbe increase speed ?

@xoseperez
Copy link
Owner Author

Original comment by cento (Bitbucket: Cento5anta, GitHub: Unknown):


yes i have tested 1.9.5 have same error

@xoseperez
Copy link
Owner Author

Original comment by lesleyp (Bitbucket: lesleyp, GitHub: lesleyp):


@Cento5anta
https://bitbucket.org/xoseperez/espurna/issues/184/pow-and-mqtt-report-interval

@xoseperez
Copy link
Owner Author

Fixed with e8d77ef in dev branch at the moment. Will release it soon.

@xoseperez
Copy link
Owner Author

Original comment by cento (Bitbucket: Cento5anta, GitHub: Unknown):


Hello cose thank,s. I need download source and mod,
I have download sourcetree, not download your source ,
Pls help me best regards,
This is one week not job, dedicate for study,
I wait your info

Thanks
Michele

Online I am user cento.
Best regards

[image: xoseperez]
Xose Pérez updated issue #236:
MQTT wrong values for POWER (SONOFF POW)
https://bitbucket.org/xoseperez/espurna/issues/236/mqtt-wrong-values-for-power-sonoff-pow
Milestone: 1.9.6
Component: MQTT Domoticz
View this issue
https://bitbucket.org/xoseperez/espurna/issues/236/mqtt-wrong-values-for-power-sonoff-pow
or add a comment by replying to this email.
Unwatch this issue
https://bitbucket.org/api/1.0/repositories/xoseperez/espurna/issue/236/unwatch/Cento5anta/e57b3a2bac28377fc03648528d6115be7d5e5e58/
to stop receiving email updates. [image: Bitbucket] https://bitbucket.org

@xoseperez
Copy link
Owner Author

Will release it soon with precompiled binaries.

@xoseperez
Copy link
Owner Author

Original comment by cento (Bitbucket: Cento5anta, GitHub: Unknown):


hello @LesleyP do you help me for compiling new firmware with menu' html, with function adjustable report interval?
https://bitbucket.org/xoseperez/espurna/issues/184/pow-and-mqtt-report-interval

i have open one page by suggest for Xose Perez for modding project
https://bitbucket.org/testmqttreportpow/edit-espurna-mqtt-report

best regards

best regards

@xoseperez
Copy link
Owner Author

Original comment by Doume59249 (Bitbucket: Doume59249, GitHub: Unknown):


I've just updated my repository with this e8d77ef commit, and my problem with Voltage value is now fixed.
I was version 1.9.5, and now 1.9.6

Stability seems to be better : No crash since 2 hours...
To be continued.

Last minute : After 22 hours with version 1.9.6 , no more crash, and values passed to Domoticz are stables.

Thank you for your support.
Dominique

@xoseperez
Copy link
Owner Author

Fixed with 1.9.6

@xoseperez
Copy link
Owner Author

Removing milestone: 1.9.6 (automated comment)

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

No branches or pull requests

1 participant