Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Possible Vera replacement - Home Assistant

If you have a question or need help, this is the place to be.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Possible Vera replacement - Home Assistant

Post by kgschlosser »

i can slap together a quick and dirty plugin for ya. since the API is already made up it should be pretty simple. so long as the API is functioning properly.
If you like the work I have been doing then feel free to Image
holdestmade
Experienced User
Posts: 182
Joined: Thu Dec 04, 2014 2:44 pm

Re: Possible Vera replacement - Home Assistant

Post by holdestmade »

Brilliant. Cheers
holdestmade
Experienced User
Posts: 182
Joined: Thu Dec 04, 2014 2:44 pm

Re: Possible Vera replacement - Home Assistant

Post by holdestmade »

Had a bit of a play with the script you attached and works fine for a while then:

16:49:46 Yeelight bulb LivingRoomTable.Light is not connecting on ip 192.168.1.213.
16:49:46 Removing bulb from being polled


I looked into this and it may be that the bulb will only accept 60 requests per minute before locking them out ?

Cheers

Happy New Year
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Possible Vera replacement - Home Assistant

Post by kgschlosser »

well that could be.. I do not know what the limitations of the bulb are..

if that is the case then you will want to set the polling time to something like 1.25 or so.
the reason for the little bit of extra is if you send any commands to the bulb.

Change the line that has self._event.wait(0.15) to self._event.wait(1.25)
see if the problem clears up with that.
If you like the work I have been doing then feel free to Image
Post Reply