Could someone integrate the Hailo Libero 3.0 Smart Door Opening System in The HA without Amazon Alexa?
I’m just trying to do the same thing…when you log into the web interface for the device, there is a button to open it. It calls a function:
function dopush() {
var element = document.getElementById(‘btn_push’);
element.classList.add(‘disabled’);
var xhr = new XMLHttpRequest();
xhr.open(‘GET’, ‘push’);
xhr.send(’’);
setTimeout(function() {
var element = document.getElementById(‘btn_push’);
element.classList.remove(‘disabled’);
}, 3000);
It seems like this should be able to be called via RESTful and/or cURL. I have tried with cURL with no success - I can get the device to respond to a basic GET, but I haven’t been able to make it trigger. Maybe someone else has better skills on this?
Interested.
Any news? I didn’t find a solution yet! Thanks
Just installed mine today. You need to login before you can open it. A simple shell script looks like this:
#!/bin/bash
curl --location 'http://192.168.0.77:81/login' --header 'Content-Type: application/x-www-form-urlencoded' --header 'Cookie: c=mjd8sn94809xw1nqthhl1ha6uxmqtndiX' --data-urlencode 'pin=hailo' --data-urlencode 'submit='
curl --location 'http://192.168.0.77:81/push' --header 'Cookie: c=mjd8sn94809xw1nqthhl1ha6uxmqtndiX'
This takes me about 3s. They seem to store the cookie for a while. If I call:
curl --location 'http://192.168.0.77:81/push' --header 'Cookie: c=mjd8sn94809xw1nqthhl1ha6uxmqtndiX'
afterwards, it opens immediately. I’ll try to figure out how long they store the login cookie.
Ok, you can add the following to your configuration.yaml (replace ip with yours):
rest_command:
hailo_libero_opendoor:
url: "http://192.168.0.77:81/push"
method: get
headers:
Cookie: "c=mjd8sn94809xw1nqthhl1ha6uxmqtndiX"
hailo_libero_login:
url: "http://192.168.0.77:81/login"
method: post
headers:
Cookie: "c=mjd8sn94809xw1nqthhl1ha6uxmqtndiX"
content_type: "application/x-www-form-urlencoded"
payload: "pin=hailo;submit="
Now you can use the actions in your scripts and automations:
alias: Küchenmüll öffnen
description: ""
trigger: []
condition: []
action:
- service: rest_command.hailo_libero_opendoor
data: {}
mode: single
I now just need to find a use case for this
Thanks Robert. I didn´t find enough time to test. I spend just a few minutes and try to simulate your configuration.yaml and it not worked (of course with my IP). Probably I have problem with the Port 81. I hope to find more time to solve the problem.
I want to use it just because my son is disabled and has difficulties to activate the sensor with the foot. The idea ist to place a button so he can open it with the hands! If I´m able to put it to work will be really nice
That is very good use case.
I figured in the meantime, that the Cookie header is dynamic. Is seems pretty stable until you restart the device. So the Cookie header that is returned from the login call is required for the opendoor command. Unfortunately I couldn’t find a way for the rest_command to return the response header yet.
I made the shell script dynamic. Maybe you can use this instead of the rest-command.
#!/bin/bash
curl -D headers.txt --location 'http://192.168.0.77:81/login' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'pin=hailo' --data-urlencode 'submit=' > /dev/null
cookie=$(cat headers.txt | grep "Set-Cookie:")
cookie="${cookie:4}"
curl --location 'http://192.168.0.77:81/push' --header "$cookie" > /dev/null
Here you go: GitHub - voldemarpanso/ha_hailolibero: Hailo Libero 3.0 Integration
Damn vacuum cleaner bothered me, opening the trashbin, when passing below it , and this was nice small thing for a practice, because I have an improvement in progress for that long-broken systemair integration, which I actually managed to fix quite nicely.
It’s not thoroughly tested, so there might be issues I don’t know about, but it has been running for couple of days without any problems.
It’s amazing to have that finally. Many thanks! Wondering though how to deactivate in case I want the vacuum cleaner to pass below it without triggering the door to open. There doesn’t seems to be a function to stop or deactivate it!?
What if you put a smart plug on the power unit which powers off when the vacuum cleaner does it’s job?
Sure. But than I don’t need this integration for it. I’m wondering if there’s a solution through this integration.
There is, I have two automations present:
- if vacuum is wondering around set detection detection range to upper limit
- restore detection limit when vacuum is not cleaning.
works rather perfectly. only thing, which can be improved, is not related to hailo - how to detect in which room vacuum currently operates.
Ah, and one more thing - just to indicate that something is different, led is also dimmed… although this is not too useful I’ve noticed.