zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

HS2WD-E via Home Assistant ?

Open kevincaradant opened this issue 5 years ago • 29 comments

Hi

I bought a HS2WD-E model (siren) but I don't understand how can we trigger the alarm ON / OFF on Home Assistant ?

Is it a easy way to do it ?

I saw only LQI and Battery level on it. But I didn't see nothing around actions ect like Xiaomi switches for example :)

Thanks

Regards

image

Not sure it's an issue according to the doc, indeed, I see only two values exposed (lqi and battery) so I'm a little bit confused to understand how it works.

kevincaradant avatar Jan 16 '21 19:01 kevincaradant

Add the warning to exposes, can you check if it works correctly?

Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

Koenkk avatar Jan 16 '21 19:01 Koenkk

OK I will look it in few hours :)

Thanks

BTW: I was surprised that you have nothing about melodies and the volume of this siren.

I found a thread and at the end of this one, people seems have the choise about melody and almost the volume of the siren. https://community.home-assistant.io/t/how-to-get-heiman-siren-with-zha-to-work/180153/14

Why we haven't this choice with Z2M ? Nothing seems exposed for the sound of this siren ? :)

Thanks

Edit: It works about exposure the siren ! :) However, I think my neighboors in my building are currently hate me because in my country it's late and the "low" volume showed in the UI was sooooooo strong. It scared me, I thought it should be very low and here I think it's the 100%

kevincaradant avatar Jan 16 '21 20:01 kevincaradant

Good, can this issue be closed? The sound effect is controlled through the mode.

Koenkk avatar Jan 17 '21 08:01 Koenkk

Mhh I thought we will close this issue when the sound level will be fixed ?

image

Low level here is very very strong as I said yesterday, pretty sure it doesn't work ;)

I retried now and very high / low does the same thing, very loud

kevincaradant avatar Jan 17 '21 09:01 kevincaradant

@kevincaradant I expect the sound level issue is in the firmware of the device (since the commands we send are according to the Zigbee spec) I think it doesn't support different sound levels, only way to be sure is to check it with the original gateway.

Koenkk avatar Jan 17 '21 15:01 Koenkk

oh alright. If we can't do nothing because it's a firmware issue ( very annoying in my case to setup my use cases :P) By consequence, I close this issue :)

Thanks

kevincaradant avatar Jan 17 '21 15:01 kevincaradant

One last thing @Koenkk

Why I can't have the state ON / OFF on HA ?

I removed the device from Z2M and pair it again with the latest version to be sure to have the state of the siren.

I have nothing in HA except battery and linkquality of the siren :/

image

Any idea why ?

kevincaradant avatar Jan 17 '21 20:01 kevincaradant

Because the alarm is not a simple on/off switch. You have to define a mode, sound level, duration, etc. You can ofcourse create a switch yourself in HA to send the desired payload

Koenkk avatar Jan 18 '21 16:01 Koenkk

alright I will try to look into it using mqtt requests

thank you

kevincaradant avatar Jan 18 '21 17:01 kevincaradant

my 2 cents Firmware: 2018.03.21

Setting the "level" values does make any difference, sounds the same. Setting the "mode" values dpoesnt make any difference, sounds the same. (police_panic, fire_panic, emergency_panic are not accepted)

Has anyone actually verifed those with the original gateway?

kovaga avatar Feb 15 '21 11:02 kovaga

I have the same issue. When I send warning payload :

"warning": { "mode": "burglar", "level": "low", "strobe": true, "duration": 2 }

Zigbee2MQTT logs :

Zigbee2MQTT:info 2021-02-17 14:18:16: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Smart siren","exposes":[{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"features":[{"access":2,"description":"Mode of the warning (sound effect)","name":"mode","property":"mode","type":"enum","values":["stop","burglar","fire","emergency","police_panic","fire_panic","emergency_panic"]},{"access":2,"description":"Sound level","name":"level","property":"level","type":"enum","values":["low","medium","high","very_high"]},{"access":2,"description":"Turn on/off the strobe (light) during warning","name":"strobe","property":"strobe","type":"binary","value_off":false,"value_on":true},{"access":2,"description":"Duration in seconds of the alarm","name":"duration","property":"duration","type":"numeric","unit":"s"}],"name":"warning","property":"warning","type":"composite"},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"HS2WD-E","supports_ota":false,"vendor":"HEIMAN"},"friendly_name":"0x000d6f00161bfab9","ieee_address":"0x000d6f00161bfab9","status":"successful","supported":true},"type":"device_interview"}'

All working fine, except mode and level. However, this attributes are specified in documentation : https://www.zigbee2mqtt.io/devices/HS2WD-E.html#warning-composite

If I take it correctly, these parameters are generic and may not be supported by this device?

Thank you,

Zigbee2MQTT : 1.17.1 Device firmware : 2018.03.21

sebvdk avatar Feb 17 '21 13:02 sebvdk

Same here, mode and level have no effect. Somebody know if it possible to upgrade siren firmware?

orxaz avatar Apr 28 '21 13:04 orxaz

Somebody know if it possible to upgrade siren firmware?

I've just received one of these with device firmware reporting 2021.2.19. Unfortunately both mode & level still have no effect.

mUbsta avatar Aug 17 '21 12:08 mUbsta

mode & level still have no effect.

10der avatar Sep 02 '21 04:09 10der

same here..can anyone verify with the original gateway?

psy0rz avatar Dec 27 '21 15:12 psy0rz

I've just received one of these with device firmware reporting 2019.6.23. Unfortunately both mode & level still have no effect.

I have no original gateway to test. :(

MilorES avatar Jan 08 '22 10:01 MilorES

Just received a new one and still none of the options work. It is just an ON/OFF alarm with the volume too high... Did any one find a solution?

jhonny001 avatar Apr 08 '22 10:04 jhonny001

I'm also trying to figure this out, would love to hear from anyone who made any progress and doesn't mind sharing.

ovizii avatar Jun 14 '22 11:06 ovizii

No, still waiting for them to fix it.

MilorES avatar Jun 14 '22 16:06 MilorES

I just bought one of them and same thing, mode and volume level cannot be changed.

Iceman248 avatar Nov 18 '22 17:11 Iceman248