Hej
Här kommer en liten updatering. Lyckades få det att funka till slut. Vet inte riktigt vad var som var grejen men efter någon omstart och updatering till senaste HA så funkade det att få kontakt med mina smartplugs. Gjorde allt från datorn denna gång vilket kanske är bättre än att köra vi telefonappen. Ett litet bekymmer är bara att det verkar lite instabilt. Ganska ofta får jag svarat att systemet inte svarar (eller som Alexa säger: The device is not responding). Samma sak när man försöker slå på och av smartplugsen från HA appen. Svara typ varannan gång. Vet du vad som är flakhalsen när detta händer? Vad är det som gör att HA inte får kontakt med smartplugsen ibland? Kör min Rasberry Pi med kabel och inte via Wifi.
Just installed Yale Doorman and connected to Verisure shows in Home Assist the status of the lock.
Controlling the lock works perfect.
But I can’t see if it’s possible in Home Assist to see if the lock is in “away setting”?
In the Verisure app there is a difference on locked and “away locket” that would be great for controlling different items.
I also recently bought a Yale doorman. I don’t have the alarm from Verisure, only the lock. I was a bit disappointed that I can’t see which code or tag opened the door. The information is available in the Verisure app and you can see who did things with the alarm, if you have it. So I’m thinking it should be possible to add that you can see who unlocked, right?
I looked at the code for the lock now, and as far as I can see it should have a “changed_by” attribute, but at least mine hasn’t. The alarm control panel does have the attribute but since I don’t have the alarm…
Has anyone managed to speed up the communication between the verisure hub and HA. I get it instant when communicating between HA and Verisure but it takes too long time to recognize the status when unlocking by the key pad.
Hi!
I guess you’re way beyond this now since I saw what you made in "Changed by" on Verisure lock with auto lock. Great stuff!
However, there is a “changed_by” attribute, I use it for a template sensor as
last_changed:
value_template: >
{{ states.lock.entre.attributes.changed_by }}
I used an input_select and automations to keep state of which code/person unlocked last, I then removed the verisure auto lock and made a couple of automations instead, for instance
- alias: Lock day
trigger:
platform: state
entity_id: lock.entre
to: 'unlocked'
for:
minutes: 4
condition:
condition: time
after: '07:30:00'
before: '23:00:00'
action:
- service: lock.lock
data:
entity_id: lock.entre
code:
- service: tts.google_say
data_template:
entity_id: group.media_player_announcements
message: Nu är det låst! {{states.sensor.last_changed.state}}
and a bunch of other stuff like personalised greetings when you arrive and such. Works great as well.
/Johan
Thanks! I want the lock to work totally independent of Home assistant since it’s such an important security feature, otherwise I would have gone your route with removing the auto lock. But with my “mail hack” it’s working fine now! It’s not instant, but neither is the real lock status, so that’s alright.
Agreed.
That’s the problem with HASS, it actually works almost a bit too well, I don’t even remember last time it stopped… But, it will, probably in that short period before it locked and I went on a 4 week vacation…!
Yeah, I will try your setup.
/Johan
Hi,
I am trying to automatically disarm my Verisure alarm in the morning. However I do not get it to work.
My automation is:
- alias: Stäng av nattlarm
trigger:
platform: time
at: 06:30
condition:
condition: state
entity_id: alarm_control_panel.XXXX_alarm
state: armed_home
action:- service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.XXXX_alarm - service: persistent_notification.create
data:
message: “Jag har försökt larma av”
title: “Larmtest”
- service: alarm_control_panel.alarm_disarm
I do get the notification, but the alarm is not turned off.
The error message is:
2018-09-05 06:30:00 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/service.py”, line 224, in _handle_service_platform_call
await getattr(entity, func)(**data)
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/alarm_control_panel/verisure.py”, line 87, in alarm_disarm
set_arm_state(‘DISARMED’, code)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/alarm_control_panel/verisure.py”, line 31, in set_arm_state
transaction_id = hub.session.set_arm_state(code, state)[
File “/usr/local/lib/python3.6/site-packages/verisure/session.py”, line 172, in set_arm_state
_validate_response(response)
File “/usr/local/lib/python3.6/site-packages/verisure/session.py”, line 15, in _validate_response
raise ResponseError(response.status_code, response.text)
verisure.session.ResponseError: Invalid response, status code: 400 - Data: {“errorGroup”:“BAD_REQUEST”,“errorCode”:“VAL_00008”,“errorMessage”:“Invalid or non-existing value for code”}
Can anybody see what I have done wrong?
Det går utmärkt att svara på svenska.
I’m answering in english, since it may be beneficial to non-swedish speakers to learn the answer.
The reason why it’s not working is, as stated in the error message, that you are not supplying the code to the alarm system in your automation.
Thank. It is now solved. I thought that it was not necessary having given the code in the setup. But I now realize that it is needed. Interesting enough it is not needed in Homekit.
Hi all,
How do you solve the automations as the verisure needs the lock code (6-digits) to lock/unlock the door? As I understand I need to save the lock code somwhere…
I used the following format to lock my unlocked doors as I leave the house (automations.yaml):
- id: 'a71'
alias: 71 - Leaving Home Evening
trigger:
platform: state
entity_id:
- group.all_devices
from: 'home'
to: 'not_home'
condition:
condition: and
conditions:
- condition: sun
after: sunset
- condition: sun
before: sunrise
action:
- service: scene.turn_on
entity_id: scene.night
- service: lock.lock
data:
code: !secret house_door_lock_code
entity_id: group.all_locks
And the in the file secrets.yaml I put my code especially for the user “house”:
house_door_lock_code: 123456
Works like a charm.
Edit: Sorry about the editing of the post, haven’t figured out the formatting yet
Not sure if this is the right place or if I should start a new thread, so tell me to move on if that’s better :-o
I am trying to figure out if there is any way to distinguish between if the lock has been open through a code from the outside, or via the lever on the inside. The reason is that I want to use it as an input to my Bayesian sensor to determine if someone is home or not. I have seen the “changed by” info displayed on my look, so by using open with code or no code I can identify when someone is comming or going.
Any help greatly appreciated.
//Runar
As I can see, No. In the verisure app you see (in swedish) “Låst med stjärnknapp” or “Låst med vred”.
These two attribitus would be nice to use. Problem is, these are not picked up by HA.
This might have something to do with updating the component och some update to the API.
If this attribute is in HA, you’ll have a solution.
/Patrik
If I unlock and leave my door open - this is what I get from HA. As you can see - the state change is picked up. If I enter dev-state, the atribute changed by is visible all of a sudden. Maybe we have something to play with! What do you think?
{
“changed_by”: “Städfirman”,
“code_format”: “#############”,
“friendly_name”: "Entré "
}
Funny though… i can’t see the “changed by” in my HA.
If it’s there you can use it.
Me neither - unless I leave the door open for a while. I get it when I partially close the door. (I run auto-lock and do not want to mess with that) For the short instanses when just opening and closing, I can not see anything. I tried an animation yesterday, but it did not work, so I might have to go with the solution by @teachingbirds here: https://community.home-assistant.io/t/changed-by-on-verisure-lock-with-auto-lock/59272
Hi. I recon this is an old thread, but I’m considering buying a Yale Doorman V2 Verisure lock module and a mBox mini. My intend is to be able to trigger stuff in HA based on locking and unlocking status from the door. And remotely lock/unlock.
Is it possible to integrate Doorman V2 into HA, lock/unlock and se status?
Thanks.
Kind regards,
Esben