{"id":23300589,"url":"https://github.com/markuzzi/ring-fhem","last_synced_at":"2025-04-06T21:34:10.585Z","repository":{"id":196069727,"uuid":"116153834","full_name":"markuzzi/ring-fhem","owner":"markuzzi","description":"Python-based ring connector for FHEM.","archived":false,"fork":false,"pushed_at":"2019-01-11T21:18:42.000Z","size":9,"stargazers_count":0,"open_issues_count":6,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-13T03:29:37.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markuzzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-03T15:43:06.000Z","updated_at":"2018-01-03T19:41:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"61f5b95a-66ff-4e81-84b4-d7d8e8789e15","html_url":"https://github.com/markuzzi/ring-fhem","commit_stats":null,"previous_names":["markuzzi/ring-fhem"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markuzzi%2Fring-fhem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markuzzi%2Fring-fhem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markuzzi%2Fring-fhem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markuzzi%2Fring-fhem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markuzzi","download_url":"https://codeload.github.com/markuzzi/ring-fhem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247556144,"owners_count":20957911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-20T09:17:05.311Z","updated_at":"2025-04-06T21:34:10.579Z","avatar_url":"https://github.com/markuzzi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ring-fhem\nPython-based ring connector for FHEM.\n\nZur installation müssen zwei python libs installiert werden:\n\n    pip install git+https://github.com/tchellomello/python-ring-doorbell\n    pip install fhem\n\nDann die zwei Dateien ring.py und run_ring runterladen und z.B. in /opt/fhem/bin ablegen.\nIn der ring.py muss noch der User und das Passwort des Ring Accounts eingetragen werden. Hier tuts auch ein Gast Account.\n\nDie run_ring sorgt für die Ausführung der ring.py als user \"fhem\" und wird bei mir via crontab regelmäßig angetriggert (sollte mal ein Fehler unterlaufen):\n\n    @reboot /opt/fhem/bin/run_ring\n    @hourly /opt/fhem/bin/run_ring\n\nIn fhem habe ich einen Dummy angelegt mit dem Namen \"Ring_[RingDeviceName]\" (Achtung, wenn der Name nicht passt, muss die ring.py angepasst werden). [RingDeviceName] wird durch den Namen des Ring Devices ersetzt, wobei Leerzeichen entfernt werden. Bsp: Ring Device heißt \"Front Door\", in FHEM wird \"Ring_FrontDoor\" geschrieben. Der entsprechende Dummy wird wie folgt angelegt:\n    \n    define Ring_FrontDoor dummy\n    attr Ring_FrontDoor setList none motion ring\n    attr Ring_FrontDoor devStateIcon none:it_camera@green motion:secur_alarm@red ring:secur_alarm@orange\n\nEin DOIF sorgt dafür, dass der Status nach 5sec zurück gesetzt wird und eine Aktion ausgeführt wird. Beispiel wie folgt, FK_Haustuer ist ein Fenster/Türkontakt xmp3 eine Klingel:\n\n    defmod Ring_FrontDoor_DOIF DOIF ([Ring_FrontDoor] eq \"ring\" and [FK_Haustuer] eq \"closed\" and [FK_Haustuer:state:sec] \u003e 5)\n    \t(set xmp3 playTone 0) (set Ring_FrontDoor none)\n    DOELSEIF ([Ring_FrontDoor] eq \"motion\" and [FK_Haustuer] eq \"closed\" and [FK_Haustuer:state:sec] \u003e 2)\n    \t(set xmp3 playTone 48) (set Ring_FrontDoor none)\n    DOELSE\n    \t(set Ring_FrontDoor none)  \n    attr Ring_FrontDoor_DOIF cmdState ring,none|motion,none|none\n    attr Ring_FrontDoor_DOIF do always\n    attr Ring_FrontDoor_DOIF event-on-change-reading .*\n    attr Ring_FrontDoor_DOIF stateFormat wait_timer\n    attr Ring_FrontDoor_DOIF wait 0,5:0,5:0\n\nViel Erfolg!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkuzzi%2Fring-fhem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkuzzi%2Fring-fhem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkuzzi%2Fring-fhem/lists"}