Open openshwprojects opened 1 year ago
There appears only one object at the sonoff adapter:
I miss the object POWER to swich On and OFF. Version: 1.15.377
@Hahnweiler very good, the power is not pushed to repository yet, check back in few hours. I will do a release then.
Ready for testing, awaiting your release ...
@christi-ko @Hahnweiler It really need testing. I created two brokers, one on my PC and that one works and second on VM and that VM one has issues. Not sure what's wrong. Usage:
Works great now. I get some warnings but i can confirm that the communication works in both ways.
@Hahnweiler I know nothing about that broker, but I will try to fix warnings.
Btw, is this supposed to work for bulbs as well?
I just installed it today for you guys to fix the support so I don't know yet, I will check later today.
It turned out that only TELE was missing, 99% was done already.
Hi, for me the transmission is working fine and most variables can be seen now. However 2 questions left.
1.) I am using a Power Plug which should send voltage and powerconsumption too, as i configured BL0937 also. But no message sent for those. Do i miss something in the confirguration to send them also, or is this still a bug?
2.) The shown load average is always 99 and the performance has become less responsive i think, but this might be a wrong impression.
LoadAvg is a placeholder. It's not calculated yet.
I will investigate Power measurement tomorrow.
Please report any further issues.
Power TELE added
Just tested the newest version. This includes all energy values required. Thank you very much for this great tool, now i can really use my powerplugs 👍
Hi Use a socket with a T34 chip and I think it's great that I now only need one adapter with IOBroker, but there are some warnings in the log. Steffen
I can confirm the warnings:
Do anyone know whats the source of these warnings? I could fix them if I had any idea what they mean...
Now I will also include DHT results in TELE message. Temperature and humidity.
@SteffenB71 , hey, you have T34 chip device? We don't have such one on our list. Can you consider posting a teardown? https://openbekeniot.github.io/webapp/devicesList.html We can even send you a free gift (a SD card, a DIY hacker card, etc) for submitting one: https://www.elektroda.com/rtvforum/topic3950844.html
It seems as if there come too many of the same messages. Every 2 minutes i get 12 entries and then one warning:
Whe i restart the Sonoff Instance:
And after some minutes only the messages you can see at my last posting
i dont know if this ist normal or if this has someting to do with the debug messages at the iobroker:
@Hahnweiler How did you manage that the messages only come to you every 120 seconds, to me they come every few seconds.
Is there somewhere that can be set like with Tasmota - telemetry period @openshwproject I'll have a look with the teardown. The T34 behaves exactly like the N. But I'll test the new flash method first. The T34 are installed in the BSEED series. Steffen
I can explain - currently it's hardcoded that SENSOR comes every 3 seconds and TELE comes every 120 or so (and also when changing relay states ofc). Those delays will be configurable soon
I have the similar failure message, but my log says something different. I enabled loglevel "all"
Info:MQTT:Publishing val (216 bytes) to tele/DVES_BK7231_N1/SENSOR retain=0 Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0 Info:MQTT:Publishing val 236.338577 to DVES_BK7231_N1/voltage/get retain=0 Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0 Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0 Info:MQTT:Publishing val 0.007794 to DVES_BK7231_N1/current/get retain=0 Info:MQTT:Publishing val (216 bytes) to tele/DVES_BK7231_N1/SENSOR retain=0 Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0 Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0 Debug:MQTT:MQTT deduper sent 0, culled duplicates 0, culled too fast 0
Those obk logs are 100% normal.
I am not that sure, but it looks like the iobroker is sending a message back to the device and cannot get a connection. However, i attached a log of the iobroker set to debug status "silly" for the mqtt plugin. Maybe it helps:
sonoff.0 | 2023-01-26 19:34:42.316 | warn | Client [DVES_BK7231_N1] Message 59 deleted after 11 retries -- | -- | -- | -- sonoff.0 | 2023-01-26 19:34:42.316 | warn | Client [DVES_BK7231_N1] Message 60 deleted after 11 retries sonoff.0 | 2023-01-26 19:34:42.316 | debug | Client [DVES_BK7231_N1] Resend message topic: DVES_BK7231_N1/voltage/get, payload: 227.636642 sonoff.0 | 2023-01-26 19:34:42.316 | debug | Client [DVES_BK7231_N1] Resend message topic: tele/DVES_BK7231_N1/SENSOR, payload: {"Time":"1970-01-01T00:00:00","ENERGY":{"Power": 0.000000,"ApparentPower": 0,"ReactivePower": 0,"Factor":0.000000,"Voltage":227.636642,"Current":0.000000,"ConsumptionTotal":270.451538,"ConsumptionLastHour":0.000000}} sonoff.0 | 2023-01-26 19:34:42.316 | debug | Client [DVES_BK7231_N1] Resend message topic: tele/DVES_BK7231_N1/SENSOR, payload: {"Time":"1970-01-01T00:00:00","ENERGY":{"Power": 0.000000,"ApparentPower": 0,"ReactivePower": 0,"Factor":0.000000,"Voltage":228.622085,"Current":0.000000,"ConsumptionTotal":270.451538,"ConsumptionLastHour":0.000000}} sonoff.0 | 2023-01-26 19:34:42.316 | debug | Client [DVES_BK7231_N1] Resend message topic: DVES_BK7231_N1/current/get, payload: 0.007840 sonoff.0 | 2023-01-26 19:34:42.315 | debug | Client [DVES_BK7231_N1] Resend message topic: tele/DVES_BK7231_N1/SENSOR, payload: {"Time":"1970-01-01T00:00:00","ENERGY":{"Power": 0.000000,"ApparentPower": 0,"ReactivePower": 0,"Factor":0.000000,"Voltage":227.513458,"Current":0.000000,"ConsumptionTotal":270.451538,"ConsumptionLastHour":0.000000}} sonoff.0 | 2023-01-26 19:34:42.315 | debug | Client [DVES_BK7231_N1] Resend message topic: DVES_BK7231_N1/voltage/get, payload: 231.728683 sonoff.0 | 2023-01-26 19:34:42.315 | debug | Client [DVES_BK7231_N1] Resend message topic: tele/DVES_BK7231_N1/SENSOR, payload: {"Time":"1970-01-01T00:00:00","ENERGY":{"Power": 0.000000,"ApparentPower": 0,"ReactivePower": 0,"Factor":0.000000,"Voltage":228.745269,"Current":0.007794,"ConsumptionTotal":270.451538,"ConsumptionLastHour":0.000000}} sonoff.0 | 2023-01-26 19:34:42.315 | debug | Client [DVES_BK7231_N1] Resend message topic: DVES_BK7231_N1/current/get, payload: 0.000000 sonoff.0 | 2023-01-26 19:34:42.315 | debug | Client [DVES_BK7231_N1] Resend message topic: tele/DVES_BK7231_N1/SENSOR, payload: {"Time":"1970-01-01T00:00:00","ENERGY":{"Power": 0.000000,"ApparentPower": 0,"ReactivePower": 0,"Factor":0.000000,"Voltage":228.129364,"Current":0.000000,"ConsumptionTotal":270.451538,"ConsumptionLastHour":0.000000}} sonoff.0 | 2023-01-26 19:34:42.315 | debug | Client [DVES_BK7231_N1] Resend message topic: DVES_BK7231_N1/voltage/get, payload: 228.842071 sonoff.0 | 2023-01-26 19:34:42.314 | debug | Client [DVES_BK7231_N1] Resend message topic: tele/DVES_BK7231_N1/SENSOR, payload: {"Time":"1970-01-01T00:00:00","ENERGY":{"Power": 0.000000,"ApparentPower": 0,"ReactivePower": 0,"Factor":0.000000,"Voltage":229.484344,"Current":0.000000,"ConsumptionTotal":270.451538,"ConsumptionLastHour":0.000000}} sonoff.0 | 2023-01-26 19:34:42.314 | debug | Client [DVES_BK7231_N1] Resend message topic: tele/DVES_BK7231_N1/SENSOR, payload: {"Time":"1970-01-01T00:00:00","ENERGY":{"Power": 0.000000,"ApparentPower": 0,"ReactivePower": 0,"Factor":0.000000,"Voltage":228.252548,"Current":0.000000,"ConsumptionTotal":270.451538,"ConsumptionLastHour":0.000000}} sonoff.0 | 2023-01-26 19:34:42.313 | debug | Client [DVES_BK7231_N1] Resend message topic: DVES_BK7231_N1/voltage/get, payload: 229.331848 sonoff.0 | 2023-01-26 19:34:40.422 | debug | stateChange sonoff.0.DVES_BK7231_N1.ENERGY_ConsumptionLastHour: {"val":0,"ack":true,"ts":1674758080421,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1674664114742} sonoff.0 | 2023-01-26 19:34:40.421 | debug | stateChange sonoff.0.DVES_BK7231_N1.ENERGY_ConsumptionTotal: {"val":270.451538,"ack":true,"ts":1674758080420,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1674757975536} sonoff.0 | 2023-01-26 19:34:40.421 | debug | Set State after task: sonoff.0.DVES_BK7231_N1.ENERGY_ConsumptionLastHour sonoff.0 | 2023-01-26 19:34:40.421 | debug | process task: {"type":"addObject","id":"sonoff.0.DVES_BK7231_N1.ENERGY_ConsumptionLastHour","data":{"_id":"sonoff.0.DVES_BK7231_N1.ENERGY_ConsumptionLastHour","common":{"role":"value","read":true,"write":false,"type":"number","name":"DVES_BK7231_N1 ENERGY ConsumptionLastHour"},"native":{},"type":"state"},"cbArg":0} sonoff.0 | 2023-01-26 19:34:40.420 | debug | stateChange sonoff.0.DVES_BK7231_N1.ENERGY_Current: {"val":0,"ack":true,"ts":1674758080419,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1674758071416} sonoff.0 | 2023-01-26 19:34:40.419 | debug | Set State after task: sonoff.0.DVES_BK7231_N1.ENERGY_ConsumptionTotal sonoff.0 | 2023-01-26 19:34:40.419 | debug | process task: {"type":"addObject","id":"sonoff.0.DVES_BK7231_N1.ENERGY_ConsumptionTotal","data":{"_id":"sonoff.0.DVES_BK7231_N1.ENERGY_ConsumptionTotal","common":{"role":"value","read":true,"write":false,"type":"number","name":"DVES_BK7231_N1 ENERGY ConsumptionTotal"},"native":{},"type":"state"},"cbArg":270.451538} sonoff.0 | 2023-01-26 19:34:40.419 | debug | stateChange sonoff.0.DVES_BK7231_N1.ENERGY_Voltage: {"val":229.36116,"ack":true,"ts":1674758080418,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1674758080418} sonoff.0 | 2023-01-26 19:34:40.418 | debug | Set State after task: sonoff.0.DVES_BK7231_N1.ENERGY_Current sonoff.0 | 2023-01-26 19:34:40.418 | debug | process task: {"type":"addObject","id":"sonoff.0.DVES_BK7231_N1.ENERGY_Current","data":{"_id":"sonoff.0.DVES_BK7231_N1.ENERGY_Current","common":{"type":"number","role":"value.current","read":true,"write":false,"unit":"A","name":"DVES_BK7231_N1 ENERGY Current"},"native":{},"type":"state"},"cbArg":0} sonoff.0 | 2023-01-26 19:34:40.417 | debug | stateChange sonoff.0.DVES_BK7231_N1.ENERGY_Factor: {"val":0,"ack":true,"ts":1674758080417,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1674664114728} sonoff.0 | 2023-01-26 19:34:40.417 | debug | Set State after task: sonoff.0.DVES_BK7231_N1.ENERGY_Voltage sonoff.0 | 2023-01-26 19:34:40.417 | debug | process task: {"type":"addObject","id":"sonoff.0.DVES_BK7231_N1.ENERGY_Voltage","data":{"_id":"sonoff.0.DVES_BK7231_N1.ENERGY_Voltage","common":{"type":"number","role":"value.voltage","read":true,"write":false,"unit":"V","name":"DVES_BK7231_N1 ENERGY Voltage"},"native":{},"type":"state"},"cbArg":229.36116} sonoff.0 | 2023-01-26 19:34:40.416 | debug | stateChange sonoff.0.DVES_BK7231_N1.ENERGY_ReactivePower: {"val":0,"ack":true,"ts":1674758080416,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1674664114724} sonoff.0 | 2023-01-26 19:34:40.416 | debug | Set State after task: sonoff.0.DVES_BK7231_N1.ENERGY_Factor sonoff.0 | 2023-01-26 19:34:40.416 | debug | process task: {"type":"addObject","id":"sonoff.0.DVES_BK7231_N1.ENERGY_Factor","data":{"_id":"sonoff.0.DVES_BK7231_N1.ENERGY_Factor","common":{"type":"number","role":"value","read":true,"write":false,"name":"DVES_BK7231_N1 ENERGY Factor"},"native":{},"type":"state"},"cbArg":0} sonoff.0 | 2023-01-26 19:34:40.415 | debug | stateChange sonoff.0.DVES_BK7231_N1.ENERGY_ApparentPower: {"val":0,"ack":true,"ts":1674758080414,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1674664114720} sonoff.0 | 2023-01-26 19:34:40.415 | debug | Set State after task: sonoff.0.DVES_BK7231_N1.ENERGY_ReactivePower sonoff.0 | 2023-01-26 19:34:40.415 | debug | process task: {"type":"addObject","id":"sonoff.0.DVES_BK7231_N1.ENERGY_ReactivePower","data":{"_id":"sonoff.0.DVES_BK7231_N1.ENERGY_ReactivePower","common":{"type":"number","role":"value.power.consumption","read":true,"write":false,"unit":"var","name":"DVES_BK7231_N1 ENERGY ReactivePower"},"native":{},"type":"state"},"cbArg":0} sonoff.0 | 2023-01-26 19:34:40.414 | debug | stateChange sonoff.0.DVES_BK7231_N1.ENERGY_Power: {"val":0,"ack":true,"ts":1674758080413,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1674757098392} sonoff.0 | 2023-01-26 19:34:40.414 | debug | Set State after task: sonoff.0.DVES_BK7231_N1.ENERGY_ApparentPower sonoff.0 | 2023-01-26 19:34:40.414 | debug | process task: {"type":"addObject","id":"sonoff.0.DVES_BK7231_N1.ENERGY_ApparentPower","data":{"_id":"sonoff.0.DVES_BK7231_N1.ENERGY_ApparentPower","common":{"type":"number","role":"value.power.consumption","read":true,"write":false,"unit":"VA","name":"DVES_BK7231_N1 ENERGY ApparentPower"},"native":{},"type":"state"},"cbArg":0} sonoff.0 | 2023-01-26 19:34:40.412 | debug | stateChange sonoff.0.DVES_BK7231_N1.Time: {"val":"1970-01-01T00:00:00","ack":true,"ts":1674758080411,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1674590802356} sonoff.0 | 2023-01-26 19:34:40.412 | debug | Set State after task: sonoff.0.DVES_BK7231_N1.ENERGY_Power sonoff.0 | 2023-01-26 19:34:40.412 | debug | process task: {"type":"addObject","id":"sonoff.0.DVES_BK7231_N1.ENERGY_Power","data":{"_id":"sonoff.0.DVES_BK7231_N1.ENERGY_Power","common":{"type":"number","role":"value.power.consumption","read":true,"write":false,"unit":"W","name":"DVES_BK7231_N1 ENERGY Power"},"native":{},"type":"state"},"cbArg":0} sonoff.0 | 2023-01-26 19:34:40.410 | debug | updateState sonoff.0.DVES_BK7231_N1.ENERGY_ConsumptionLastHour - 9 sonoff.0 | 2023-01-26 19:34:40.410 | debug | updateState sonoff.0.DVES_BK7231_N1.ENERGY_ConsumptionTotal - 8 sonoff.0 | 2023-01-26 19:34:40.410 | debug | updateState sonoff.0.DVES_BK7231_N1.ENERGY_Current - 7 sonoff.0 | 2023-01-26 19:34:40.410 | debug | updateState sonoff.0.DVES_BK7231_N1.ENERGY_Voltage - 6 sonoff.0 | 2023-01-26 19:34:40.410 | debug | updateState sonoff.0.DVES_BK7231_N1.ENERGY_Factor - 5 sonoff.0 | 2023-01-26 19:34:40.410 | debug | updateState sonoff.0.DVES_BK7231_N1.ENERGY_ReactivePower - 4 sonoff.0 | 2023-01-26 19:34:40.410 | debug | updateState sonoff.0.DVES_BK7231_N1.ENERGY_ApparentPower - 3 sonoff.0 | 2023-01-26 19:34:40.410 | debug | updateState sonoff.0.DVES_BK7231_N1.ENERGY_Power - 2 sonoff.0 | 2023-01-26 19:34:40.410 | debug | Set State after task: sonoff.0.DVES_BK7231_N1.TimeHi Are there any suggested solutions in the meantime, because I can't use the Sonoff integration like I can now. Thanks Steffen
Hi Stefan, you can reduce the log level for sonoff in the iobroker, not to show that messages. Anyhow it should work as intendet, at least it does for me ...
Hello, I also had the warn messages in iobroker log... and the powerstatus is not send just in time when its switched.
What can I do to change this?
The warn messages still appear and changes on the openbeken device won't be shown in iobroker. Log shows the MQTT message was send but sonoff adapter on iobroker shows the message delete after XX retires messages. randomly it seems to update the states from time to time but couldn't find a pattern when it is doing it.
@openshwprojects
Hello, I'd like to continue helping here, as I've found the software to be really good so far. Currently, it seems there are issues with the communication for the Sonoff adapter (ioBroker). How can I assist to ensure the implementation works well?
PS: The same issue as described here.
Cheers P
Hey, i can confirm that problem. The communication with the sonoff adapter works well! But i got also this warn messages.
Is there any solution or does somebody know why this messages appear?
I would love to help with that but I need more information. Can someone tell me specifically what should OBK include more in the MQTT publishes so this warning does not appear?
Related thread: https://www.elektroda.com/rtvforum/viewtopic.php?p=20944572#20944572
I'm sorry, I don't know if that helps, but are there any information on the GitHub page of the adapter that could be helpful?
@openshwprojects Issue was fixed in Sonoff adapter of IoBroker. You can close this issue #634
fixed in next version
Originally posted by @Apollon77 in https://github.com/ioBroker/ioBroker.sonoff/issues/350#issuecomment-2131345063
Next Version is v3.1.0
It seems to be working, but can you guys help with testing?
See video here: https://www.elektroda.com/rtvforum/viewtopic.php?p=20402248#20402248