Giter Club home page Giter Club logo

Comments (38)

Kane610 avatar Kane610 commented on June 16, 2024

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?

from deconz.

DB-Alex avatar DB-Alex commented on June 16, 2024

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" },

from deconz.

DB-Alex avatar DB-Alex commented on June 16, 2024

@Kane610 any update on this?

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

@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

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

@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

from deconz.

DB-Alex avatar DB-Alex commented on June 16, 2024

Hi @Kane610 how can I do this?

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

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

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

If you can get this verified shortly I could have it ready for next hass release hopefully

from deconz.

DB-Alex avatar DB-Alex commented on June 16, 2024

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/

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

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

from deconz.

DB-Alex avatar DB-Alex commented on June 16, 2024

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"
}
}
]

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

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?

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

@alexvandervegt the best thing would be if you could try the PR out so we can see any deviations to handle

from deconz.

DB-Alex avatar DB-Alex commented on June 16, 2024

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

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

Done.

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

PR is merged. Ready for next release

from deconz.

DB-Alex avatar DB-Alex commented on June 16, 2024

cool lets wait and see :)

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

@alexvandervegt new hass is out, have you had a chance to try it out?

from deconz.

DB-Alex avatar DB-Alex commented on June 16, 2024

@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.

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

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?

from deconz.

DB-Alex avatar DB-Alex commented on June 16, 2024

Hi @Kane610 I did this before, using the deconz rest api this command will turn it off:

{ "field": "/lights/6/state", "data": {"alert": "none"} }

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

can you enable debug for component and see if something differs when sending it using service/switch

from deconz.

DB-Alex avatar DB-Alex commented on June 16, 2024

I dont have that much knowledge? can you emulate the issue?

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

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

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

@alexvandervegt any progress?

from deconz.

DB-Alex avatar DB-Alex commented on June 16, 2024

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?

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

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

from deconz.

DB-Alex avatar DB-Alex commented on June 16, 2024

screen shot 2018-09-07 at 13 11 55

screen shot 2018-09-07 at 13 12 04

Above screenshots will turn it on and off. When I turn it on using the toggle the alarm goes on but the toggle switches to off immediately. Maybe thats the problem?

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

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.

from deconz.

fonzies83 avatar fonzies83 commented on June 16, 2024

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.

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

@fonzies83 please create a new issue of you want support. Don't comment on two year old issues

from deconz.

Coxeroni avatar Coxeroni commented on June 16, 2024

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.

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

@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

from deconz.

Coxeroni avatar Coxeroni commented on June 16, 2024

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.

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

You would need to tell me what doesn't work and we can go from there :)

from deconz.

Coxeroni avatar Coxeroni commented on June 16, 2024

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.

from deconz.

Coxeroni avatar Coxeroni commented on June 16, 2024

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.

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

Awesome! Thanks for the feedback

from deconz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.