Comments (38)
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.
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.
@Kane610 any update on this?
from deconz.
@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.
@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.
Hi @Kane610 how can I do this?
from deconz.
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.
If you can get this verified shortly I could have it ready for next hass release hopefully
from deconz.
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.
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.
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.
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.
@alexvandervegt the best thing would be if you could try the PR out so we can see any deviations to handle
from deconz.
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.
Done.
from deconz.
PR is merged. Ready for next release
from deconz.
cool lets wait and see :)
from deconz.
@alexvandervegt new hass is out, have you had a chance to try it out?
from deconz.
@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.
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.
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.
can you enable debug for component and see if something differs when sending it using service/switch
from deconz.
I dont have that much knowledge? can you emulate the issue?
from deconz.
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.
@alexvandervegt any progress?
from deconz.
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.
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.
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.
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.
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.
@fonzies83 please create a new issue of you want support. Don't comment on two year old issues
from deconz.
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.
@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.
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.
You would need to tell me what doesn't work and we can go from there :)
from deconz.
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.
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.
Awesome! Thanks for the feedback
from deconz.
Related Issues (20)
- Error doing job: Task exception was never retrieved - KeyError: 'e' HOT 4
- Additional lighting effects and control HOT 2
- Expose CLIPGenericFlag sensors from deCONZ as switches to Home Assistant HOT 1
- Support for Philips Hue wall switch module HOT 4
- Deconz integration test issue HOT 1
- Add support for "Range extender" light type HOT 2
- Stuff to clean up from typing HOT 1
- Expose all available attributes of thermostat to HA bundled as device HOT 2
- 'requirements.txt' is missing in Pypi's SDIST since v90 HOT 3
- Feature request: expose more IKEA Starkvind functions to Home Assistant HOT 16
- Support events for Philips Tap Dial Switch HOT 30
- Feature request: expose more Aqara FP1 functions to Home Assistant HOT 5
- Device IP snippets
- Sensors are added to deConz but are not appearing in HA HOT 8
- Styrbar Automations deleted after update to 2023.1 HOT 2
- Smart plug consumption sensor "state is not strictly increasing" in HA HOT 1
- Legrand netatmo thermostat entitie doesn't work
- Unsupported device type ZHAParticulateMatter HOT 5
- Unknown devices for air quality HOT 4
- IKEA badring (Water Leak Sensor) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deconz.