Heiman sirene does not go on
Closed this issue · 38 comments
Please have a look at this issue:
dresden-elektronik/deconz-rest-plugin#565
The heiman alarm is a light in home assistant so it does not work.
When you turn it on it flips back to off and no light or sirene is on.
Hopefully you can fix this. If you need any help let me know.
First I'd like to get the device description in raw json. Please enable debug per component documentation and post relevant part here.
Secondly; have you tried using the deconz service in hass to control it?
Here is the json, dont have time to test atm with the deconz service. Will let you know asap!
"5": { "etag": "0667cb8fff2adc1bf22be0e6eece2a18", "hascolor": false, "manufacturername": "Heiman", "modelid": "WarningDevice", "name": "alarm_tuin", "state": { "alert": "none", "reachable": true }, "swversion": null, "type": "Warning device", "uniqueid": "00:0d:6f:00:0f:ab:d8:f7-01" }, "6": { "etag": "0e014761acd18a079944cbe22e025221", "hascolor": false, "manufacturername": "Heiman", "modelid": "WarningDevice", "name": "alarm_woning", "state": { "alert": "none", "reachable": true }, "swversion": null, "type": "Warning device", "uniqueid": "00:0d:6f:00:0f:ab:f6:11-01" },
@alexvandervegt no sorry, not yet. Im having my summer vacation so there are a lot of other activities. I can probably look more into details within a couple of weeks.
In the mean time; have you tried using the deconz service in hass to control it? It should be possible
@alexvandervegt I can get support for the alarm shortly, I'd just like you to verify that setting alert to true will enable the siren
You have to try some things, but using the deconz service in hass you should send something like this:
{ "field": "/lights/5/state", "data": {"alert": "true"} }
or
{ "field": "/lights/5/state", "data": {"alert": true} }
You might need to fiddle with what to set alert to, but that is what I need to know to support the device
If you can get this verified shortly I could have it ready for next hass release hopefully
This will turn it on:
{ "field": "/lights/6/state", "data": {"alert": "lselect"} }
This will turn it off:
{ "field": "/lights/6/state", "data": {"alert": "none"} }
You can find the values here:
https://dresden-elektronik.github.io/deconz-rest-doc/lights/
allright!
Can you get me the web socket response as well for when alert is lselect and alert none?
Im preparing the switch in the mean time
Here you go:
{ "field": "/lights/6/state", "data": {"alert": "lselect"} }
[
{
"success": {
"/lights/6/state/alert": "lselect"
}
}
]
{ "field": "/lights/6/state", "data": {"alert": "none"} }
[
{
"success": {
"/lights/6/state/alert": "none"
}
}
]
So at least for lights there don't seem to be a state update when using lselect.
Does the sirene end by itself or do you need to turn it off?
@alexvandervegt the best thing would be if you could try the PR out so we can see any deviations to handle
I dont know how to do this. Can you include it in the next release of home assistant then i can try it out directly
Done.
PR is merged. Ready for next release
cool lets wait and see :)
@alexvandervegt new hass is out, have you had a chance to try it out?
@Kane610 I just got a chance to update and test it out. When i turn the switch on, the alarm does go on. But it never goes off. Not when i put the switch to off but also not in time... Need to login in phoscolon to switch it off.
Ok, I wasn't sure how to do it so I send {'alert': 'none'} to turn it off. Can you use the service to try to identify the proper command?
Hi @Kane610 I did this before, using the deconz rest api this command will turn it off:
{ "field": "/lights/6/state", "data": {"alert": "none"} }
can you enable debug for component and see if something differs when sending it using service/switch
I dont have that much knowledge? can you emulate the issue?
I would if I could.
It is easy, follow deconz component documentation on how to enable debug. Then trigger the different scenarios and look in the logs to see what gets printed. Then paste it here
@alexvandervegt any progress?
I really dont understand what you need?
When the alarm is on. I can send this using the deconz rest api:
{ "field": "/lights/6/state", "data": {"alert": "none"} }
Then it goes off. So if you plugin sends the same it should work?
That's what I've done but your saying you can't turn it off using the switch?
That's why enabling debug and doing both actions would clarify any difference
That may very well be the problem! Next step would be to verify what to look for to evaluate status for sirens. It should only be to enable debug per component documentation, restart hass, trigger the siren and look at the log to see what kind of notification you get.
Dear all.
I have a similar problem. How I can enable debug per component to find the field for my siren or component?
Thank you and regards.
@fonzies83 please create a new issue of you want support. Don't comment on two year old issues
May I ask what the status of the Heiman siren is with HA? I am planning on buying the same device but will refrain from doing it if it can't be switched on and off properly in HA...
Thanks in advance...
I know this post is old, but haven't found a better one I am afraid.
@Coxeroni all I know is in this thread, the device probably works as it should outside of home assistant, but in this context we haven't been able to figure out what exactly to do. It is probably fairly simple to fix. What is needed is to verify what exact call to make
Got it, thanks for letting me know.
If I can be of help let me know, I ordered the siren and will set it up with deconz as soon as I receive it.
You would need to tell me what doesn't work and we can go from there :)
Good point ;)
Shipment from china might take a while, but I will come back to you as soon as I have it up and running. Thanks in advance.
I recetly received the siren and it seems to work, although deconz discovers it as a light.
Home assistant lists it as a switch and it can be switched on and off which is what is needed.
Awesome! Thanks for the feedback