Page 3 of 3

Re: WiFi Doorbell

Posted: Tuesday 04 July 2017 21:53
by Skippiemanz
The js version seems to work... But no clue here how to interper that..

Verstuurd vanaf mijn SM-G935F met Tapatalk

Re: WiFi Doorbell

Posted: Saturday 29 July 2017 12:39
by martijnm
There is an update for the Ring HomeBridge plugin, the plugin retries connecting to the API when a connection attempt fails. Since the latest update I've been abled to use the homebridge plugin again.

Re: WiFi Doorbell

Posted: Wednesday 02 August 2017 0:39
by Skippiemanz
martijnm wrote:There is an update for the Ring HomeBridge plugin, the plugin retries connecting to the API when a connection attempt fails. Since the latest update I've been abled to use the homebridge plugin again.
Can you explain how you've used it with domoticz .?

Re: WiFi Doorbell

Posted: Wednesday 02 August 2017 8:21
by Doudy
I am also interested

Re: WiFi Doorbell

Posted: Wednesday 02 August 2017 8:43
by martijnm
I was replying to Clemen about the HomeBridge plugin. This plugin is not compatible with Domoticz, but it adds Ring support to Apple's HomeKit.

Re: WiFi Doorbell

Posted: Tuesday 12 June 2018 9:12
by Reley
Huge kick here...


I was thinking about purchasing the Ring 2.
Is this compatible with domoticz already?
I would like to use my current 433mhz chimes which I have placed in my house so i do not have to buy the chimes from Ring...

I do have a klikaanklikuit ACDB-7000B connected to my current doorbell. If I can connect this to the Ring 2 it would be fine as well...

Any experience with this?

thx...

Re: WiFi Doorbell

Posted: Tuesday 07 August 2018 22:28
by JuanUil
also interested as if the ring 2 is compatible with domoticz.

Re: WiFi Doorbell

Posted: Friday 24 August 2018 14:06
by JuanUil
Any news or advantage on this?

Re: WiFi Doorbell

Posted: Friday 31 August 2018 7:21
by MichaelMeyer
same problem here!

Re: WiFi Doorbell

Posted: Sunday 02 September 2018 17:16
by JuanUil
don't know why this item is marked als solved, because it isn't :oops:

Re: WiFi Doorbell

Posted: Saturday 24 November 2018 20:59
by nigels0
I’ve connected my Ring 2 doorbell with Domoticz by using a python library from here:

https://github.com/tchellomello/python-ring-doorbell

I have a dummy doorbell switch set up called doorbell (in this case idx 1096) and I use a python app running continually (as a service) to poll for a push on the doorbell

Code: Select all

from ring_doorbell import Ring 
from time import sleep 
import urllib2

ringUsername='MyUsername’
ringPassword='MyPassword'

myring = Ring(ringUsername,ringPassword)
# Now loop infinitely
while(1):
 data = myring.doorbells[0].check_alerts()
 if data==True:
   urllib2.urlopen('http://192.168.0.52:8080/json.htm?type=command&param=switchlight&idx=1096&switchcmd=On’)
   sleep(1)
   urllib2.urlopen('http://192.168.0.52:8080/json.htm?type=command&param=switchlight&idx=1096&switchcmd=Off’)
 # Loop around
 sleep(1)
The library has other functions, but I only needed to register the doorbell push with Domoticz

For info how to start this python script as a service have a butchers at:
https://thepihut.com/blogs/raspberry-pi ... 937476d22b

Re: WiFi Doorbell

Posted: Sunday 08 September 2019 15:47
by FearNaBoinne
I have modified the script somewhat to distinguish between bell-press and motion alerts.

I created 2 virtual switch devices, changed one to type doorbell (565 in the below) and one to type motion sensor (566 in the below), and the script now looks like this:

Code: Select all

#!/usr/bin/python
from ring_doorbell import Ring 
from time import sleep 
import urllib2
import json
import ast

ringUsername='<RingUsernameHere>'
ringPassword='<RingPasswordHere>' 

myring = Ring(ringUsername,ringPassword)
# Now loop infinitely
while(1):
    data = myring.doorbells[0].check_alerts()
    if data==True:
        alert = json.loads(json.dumps(ast.literal_eval("%s" % myring.doorbells[0].alert)))

        if alert['motion'] ==True:
            urllib2.urlopen('http://127.0.0.1:8080/json.htm?type=command&param=switchlight&idx=566&switchcmd=On')
            sleep(1)
            urllib2.urlopen('http://127.0.0.1:8080/json.htm?type=command&param=switchlight&idx=566&switchcmd=Off')
        else:
            urllib2.urlopen('http://127.0.0.1:8080/json.htm?type=command&param=switchlight&idx=565&switchcmd=On')
            sleep(1)
            urllib2.urlopen('http://127.0.0.1:8080/json.htm?type=command&param=switchlight&idx=565&switchcmd=Off')

    # Loop around
    sleep(1)
Note that this script runs on my Domoticz server. If it is running on a different machine, replace 127.0.0.1 with the actual IP of the Domoticz host!

PS: The whole json.dumps(ast.literal_eval(myring.doorbells[0].alert)) part is necessary as json.loads only accepts JSON with double quotes, and the Ring returns JSON with single quotes.
PPS: EDIT I noticed I had pasted the wrong version of my script. Guess the older one was still stuck in my clipboard. The difference is small (
"%s" % myring.doorbells[0].alert to cast it to a string for ast to consume, otherwise it may error!) but important...

Re: WiFi Doorbell

Posted: Monday 09 September 2019 8:11
by Doudy
Interesting. To test
;)

Re: WiFi Doorbell

Posted: Monday 09 September 2019 19:57
by FearNaBoinne
Doudy wrote: Monday 09 September 2019 8:11 Interesting. To test
;)
I posted a small update to the script, just so you're aware!...