-
Notifications
You must be signed in to change notification settings - Fork 423
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
Refresh interval #14
Comments
Thanks Maxx very good integration before using the ewelink cloud and now it is much better. The update time of the POW2 can be adjusted. |
Alex, not Maxx 😄 |
Thanks Alex !!!! |
Lol at Maxx :) . Any Idea why my devices not sending updates except once per reboot? (I'm using a shared account credentials) |
@elserge82 are there any errors in the logs? |
Several with different syncworker, sq and sequence values. |
@elserge82 what is your version of home assistant? |
105.3 |
@elserge82 have you something like this in logs?
|
|
In my case I cannot get statistics about Power, Voltage, etc. from my Sonoff POW2. I need this data, because it is important to monitor consumption and to do some actions if Power is 0 for more than x minutes. is there a solution to make it send this data? Thank you in advance for the answer. |
@LyZzardMD are they not in the attributes of your device? |
@elserge82 there are a lot of updates in your logs. What exactly doesn’t work? |
The current voltage and power values are weird and refresh rate is very slow. when the switch is on I get 0 A and when it is off I get 3 A :D It's been along time I will check it back after the last updates. |
Just to confirm that currently my switches are all off and still getting a value for the current and power different than zero. I guess I'm getting the first value on power outage only. |
In my case all is 0. If I changes the status On->Off - i get the number changes. At restart of HA I get fresh values, but only once. |
@elserge82 @LyZzardMD do you have the latest version of HA, component and device firmware? Do you have default_config or zeroconf in your configuration.yaml? What model of your rouer? |
Up to date with default_config |
Hi Alexx, I have the same issue my pow's are not sending updates unless I open Ewelink app. Once I open Ewelink information on voltage a consumption gets updated in HA |
Hello Alex! I have the same issue as @aequ-maker . Sonoff Pow R2 and Sonoff Th16 attributes updates only on start of hassio or if i open the ewelink app. Btw thank you very much for the integration you made! |
Everything is up to date! |
@LyZzardMD Hi, are the sonoff sensors constantly update in Hassio? Because mine it gets updated only if I open the ewelink app on my phone. |
Hi all. Update problem is related to multicast in local network/router. |
Tested it with v.1.10.2 but still the same. Anyway, just posted to let you know! |
Same here, I've update and same behaviour it doesn't update unless I open eWelink app. I'll dig into my router config to see if there is any multicas settings :-) |
I understand the problem, but I don’t know how to fix it. Home Assistant sends a request to search for devices on the network, and it seems works. eWelink app sends a request to search for devices on the network again. I will think what can be done with this. |
Thank you for your time. As additional info my router is Asus-wrt |
Thank you Alexx for pointing out the problem. I managed to make it work for 24 hours. by tweaking some parameters in the wifi professional tab. Tonight with further tests will let you know which one. Edit: false alarm. By tweaking my WiFi pow r2 was blinking and unable to connect to server. This is why I was able to get power updates. Sorry my bad |
@texbid thx. I have a lot of main work in recent months. Component development speed unfortunately decreased. |
I noticed that the power attributes get updated when I switch on the sonoff POW using Home Assistant. I then setup an automation using the service switch.turn_on which runs every 5 minutes if the sonoff switch is already switched on as a condition. This is updating my power attributes every time it is being run. |
Tony, any tutorial on how to set this up? |
I quickly made one. |
My Sonoff POW R2 firmware is 3.3.1 and I am using Home Assistant 0.108.5 with Sonoff LAN 1.10.3 |
@tonyp740613 good solution. I'll think about making it out of the box. |
The get Sonoff Data automaton works for me. I am currently using it to get temperature data from two Sonoff TH16s. Thanks again! |
Good news. I found time for your problem (in latest master beta version): |
@AlexxIT I have 3 POW2 and 6 TH16. I have set up the config file with the suggested configuration lines sonoff: I have influx DB and grafana. All component work, HOWEVER, grafana only shows me data points when a state change occurs. My understanding was that with Scan_interval I would get the data points for all devices at the desired time interval. This is not happening. Am I missing something? How do I get the data to display at the selected scan_interval? |
@texbid I had no experience with grafana. Usually the same value does not count as an update. With the temperature update, a bug is possible in the last component update. |
Hi @AlexxIT , today i set up a new HomeAssistant and tried your integration after having major issues with the previous one I used. My TH16s are being found but niether temperature or humidity data is coming through. This is my config: sonoff:
username: my_email
password: !secret sonoff_password
reload: always
force_update: [temperature, power]
scan_interval: '00:02:00' # (optional) default 5 minutes
sensors: [temperature, humidity, power, current, voltage] |
I've just seen 2.1.2 was released. testing it now. |
Works perfectly so far. I've disabled humidity on the one which only has a waterproof temp sensor which doesn't have a humidity sensor. Thank you!! |
Log Details (WARNING) Entity sensor.sonoff_1000bd2eda_humidity is incorrectly being triggered for updates while it is disabled. This is a bug in the sonoff integration. |
@grantwils created new issue #145 |
@grantwils I checked the situation. Need to restart HA after disabling the device. And everything works well. |
I have Sonoff POWR2 and I am having an issue with the config, I believe. The log is showing: I have the ewelink application and can confirm that this is my user name. The password was created at that time and logged. I cannot find a way to login to ewelink.cc though to confirm that I have an account. In my app, when I go to my Profile, all the buttons are greyed out for Timers and Scenes because I have a Free plan. I could run it all locally if I knew how to identify the device name and configure it right.
Suggestions for identifying the device and naming it in config? Or what is wrong with the ewelink login? |
I saw this error only when login was wrong |
Thanks for the quick reply, and for the development work!
Through the ewelink app, I was able to change the password. The app gave me a message "password changed." I then updated the /config/configuration.yaml file. I returned to HomeAssistant, restarted it, and viewed the log file, and received the same error message. Is this functionality only available with some kind of paid account (not free) from ewelink? Home Assistant Info:
Logger: custom_components.sonoff Logger: custom_components.sonoff.sonoff_cloud Login error: {'error': 404, 'msg': 'user is not exit'} |
Think I figured it out. Firmware is 2.6.1 but for some reason, it indicates it is the Latest Version of the firmware and is not upgradable. Ugh. Guess I will back up the flash, and find another firmware for flashing. Thanks for the help! |
Error depends on username, not on password. |
Temperature refresh is not the same at 4 sensors i have. After HA restart all temperatures were updated. After, its random - some sensors update every 5-10 minutes others after 2-3 hours. How i can force update every X minutes? --UPDATE -- After that fix refresh interval is more offen but its not the same for all sensors ( picture here: https://imagizer.imageshack.com/img924/5788/KZ0NTr.png ). |
Not sure if this has been covered already, but I had similar refresh problems (I have a couple of TH16s with temp and humidity sensors, and a couple of Pow devices. I also have a zigbee bridge and rf433 bridge, along with a bunch of Livarno light bulbs, all of which SonoffLAN has got working after a fashion). I had all my wifi devices connected by a 2.4GHz access point, which was plugged in to my vigor router for reasons I won't go in to (but are mostly down to my brain having a few days off 😀). The draytek defaults with multicast functions disabled, and when enabled will still stop all multicast on a LAN port if a leave signal is received on it. The fix for me was to enable IGMP proxy (with snooping, and fast leave still enabled - on the Vigor, this is found in the application menu dropdown). The IGMP proxy acts as a multicast proxy for hosts on the LAN side, including the 2.4GHz wifi and 5GHz wifi. Sensors are updating perfectly (I have it set at 20 seconds, but will relax that when I'm happy it isn't going to spit the dummy any time soon). Absolutely awesome job Alex, and thank you for going to the trouble of creating this - I had been swearing for about 2 months after discovering my devices stopped either when I had Internet problems, or when ewelink had server problems. Definitely worth a coffee and a bacon roll 😀 🍵🍔. |
Maxx, thank you very much for your custom component. It works very well for me. How can I set the refresh time of the attributes as power or current of my POWR2?
The text was updated successfully, but these errors were encountered: