benhuson1
(Ben Huson)
1
Hi all,
I have the Yale Smart Alarm but cant really find a way of integrating it at the moment with Home Assistant.
From this thread - https://www.reddit.com/r/homebridge/comments/7paolx/homebridge_plugin_for_the_yale_smart_alarm_system/
The above thread suggests integration with any system should be possible as the Yale API has been put into a single standalone node.js file.
Now that is beyond my capabilities at the moment. Anyone any ideas, pointers to anything that might help?
benhuson1
(Ben Huson)
3
The GitHub page with the api is:
This looks like it would be possible but I’m just not sure where to start.
Hopefully someone might be able to advise/assist…
phairplay
(Phairplay)
4
Hi I don’t think this works anymore as the we site he’s code links to is no longer active.
Yale smart alarm is all done through the app
Hitting google it has been done with smartthing
benhuson1
(Ben Huson)
5
Hi @phairplay I’ve never done anything with SmartThings. Do you have the link for anything you found though?
benhuson1
(Ben Huson)
6
@phairplay I think I found it. It looks “simple” enough!!! haha
phairplay
(Phairplay)
7
So even though the website front end doesn’t load it can still be accessed.
benhuson1
(Ben Huson)
8
Is this within your skills capabilities to build/develop? I’m happy to work with you to try and get this going as it would be awesome for me!
phairplay
(Phairplay)
9
I have no coding skills
I know it’s done via http post and get and requires the cookies.
phairplay
(Phairplay)
11
okay
ive had a crack at this but i keep getting
{“result”:“0”,“message”:“system.permission_denied”,“code”:“999”}
import requests
import webbrowser
url = “https://www.yalehomesystem.co.uk/homeportal/api/login/check_login”
payload = {‘username’: ‘[email protected]’, ‘password’: ‘mypass’}
with requests.session() as s:
# fetch the login page
s.get(url, data=payload)
url1='https://www.yalehomesystem.co.uk/homeportal/api/panel/get_panel_mode'
# post to the login form
r = s.post(url1, data=payload)
print(r.text)
could someone please help, what am i missing?
phairplay
(Phairplay)
12
so with my next to zero coding skills and a lot of googling this code works
from requests import session
payload = {
'action': 'login',
'id': 'xxxxxxx',
'password': 'xxxxxxx'
}
with session() as c:
c.post('https://www.yalehomesystem.co.uk/homeportal/api/login/check_login', data=payload)
response = c.get('https://www.yalehomesystem.co.uk/homeportal/api/panel/get_panel_mode')
print(response.headers)
print(response.text)
here is the reponse
{"result":"1","message":[{"area":"1","mode":"disarm"}],"code":""}
Does anyone know how I can get this to keep checking the status?
benhuson1
(Ben Huson)
13
Sounds promising!! So is this a python script?
phairplay
(Phairplay)
14
Yes it is I’m now trying to find away to run this in home assistant
I was lacking the Yale Alarm integration too so I’ve created a component which should appear in 0.78, all going to plan.
It supports arm away, arm home (night) and disarm.
Docs will appear here with 0.78: https://www.home-assistant.io/components/alarm_control_panel/
I’ve also dropped a Python client on PyPi for any non-HA integration’s: https://pypi.org/project/yalesmartalarmclient/
2 Likes
benhuson1
(Ben Huson)
16
@Tempestuous wow, well done! This is the missing piece of my smart home automation. Do you need any beta testing help? I’m happy to help if you do…
toliver
(Tom Oliver)
18
I’d also be interested in this! Great work
benhuson1
(Ben Huson)
19
@toliver it’s a live component from release 0.78
Works awesomely well though
toliver
(Tom Oliver)
20
Thanks! Just upgraded and it works perfectly
skaker1
(Kenneth Eriksson)
21
The component is great! Thanks guys for the implementation.
Could I get sensors like an integrated Yale doorman and motion sensors as well?