-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZigBee Siren Alarm Tuya neo #3183
Comments
Tuya again ^^. I can make a try, I m on tuya atm. Do you have an Unix machine to test code modification ? |
I run a Rpi3 with the docker image.so testing wil Be difficult, docker dev image? |
Rpi3 is ok I have started the code Smanar@959245d The device will be created, and have as field alarm / temperature / humidity No setting yet. |
Thanks for your effort! Have been looking around, Found no instructions on how to get this into my docker container. Or do I have to wait untill it is merged? I dont think I Can compile a container myself. |
I realy need you test it before continuing, this kind of device is the first one on deconz. |
I Will try. Not So much time, So Will take a couple of days. I use a Rpi3 with de conbee 2 Usb. |
Yep it works on Rpi 3 and with the pre installed image (perhaps it will be not updated, but not a real problem) Just replace the step 1 by After that, just restart deconz, if I m right you can include the device using phoscon ( but the device will not be visible) |
But you have already give this capture ? it miss something ? If you have followed the procedure, you can now include the device using phoscon (and not deconz). To have a complete list off all your sensor just use this url IP and PORT are the same than you are using for phoscon, for the key you can find it in your home automation application. Or you can just see the json direclty in all home automation application. |
You have give up ^^ ? |
Every step cost me half a day. So I dont know how to get the api key. I use Home assistant, and have no idea how to get the json you want. So almost gave up.... and your helpfull! But my skills are just not good enought. So how to get it out of hassio? (The easy way, please ;) ) |
I don't have this device (yet), but would like to use it in the future. I saw this code used in zigbee2mqtt: I have no idea if this helps you @Smanar. I am just a simple user, no experience with coding. Discussion about the device for zigbee2mqtt can be found here: Hopefully it helps someone further here. |
Thx for links. BTW where are you ATM @machielw ? have you succed in compiling the code ? Have you deconz installed on a Unix machine (other than hassio ofc) |
I have it running on a the deconz image with the develop package installed on the RPI. |
You have deconz on a RPI and Hassio connected to it on synologie ? |
It will be invisible in phoscon. BTW I don't know HA (and I don't speak same language ^^), can you show me the device JSON ? |
I only have the alarm one. |
I don't remember, the api key is not displayed somewhere in the plugin config on HA ? |
http://IP:PORT/api/KEY/sensors gives: |
Nice thx ^^. So the device is reconised fine.
The model id is reconized, because the uniqueid use the tuya cluster. But the 2 entries (temperature and humidity) are not created ??? Seriously what is the problem ? Perhaps need to force a value ? I have updated the code to set a "0" value for the 2 field, if you can try it ?
And reload deconz. and the boring thing, a new inclusion or use the inclusion trick (set phoscon in permit join, and read again basic attribute). |
:( {"1":{"config":{"configured":true,"on":true,"sunriseoffset":30,"sunsetoffset":-30},"etag":"245833ba32f9a63d20cbda0290e81176","manufacturername":"Philips","modelid":"PHDL00","name":"Daylight","state":{"dark":false,"daylight":true,"lastupdated":"2020-09-04T17:11:39.378","status":170,"sunrise":"2020-09-04T04:58:05","sunset":"2020-09-04T18:23:32"},"swversion":"1.0","type":"Daylight","uniqueid":"00:21:2e:ff:ff:05:a2:bc-01"},"2":{"config":{"on":true,"reachable":true},"ep":1,"etag":"b6b12f46513d41b13c57c9cb1f58f917","lastseen":"2020-09-04T17:17Z","manufacturername":"_TYST11_d0yu2xgi","modelid":"0yu2xgi","name":"0yu2xgi","state":{"alarm":null,"lastupdated":"none"},"swversion":"20180727","type":"ZHAAlarm","uniqueid":"84:2e:14:ff:fe:db:85:3b-01-ef00"}} |
Lol, sorry, you have missed my last modification by 2 minut > Smanar@1c89cf3 This change is copy paste but in database.cpp file If this code still not working, I will ask to other devs. BTW wich one method are you using to test ? real inclusion or deconz trick ? |
for inclusion I use phoscom app no difference i think {"1":{"config":{"configured":true,"on":true,"sunriseoffset":30,"sunsetoffset":-30},"etag":"b093d47f629be713a85a4f67b3748151","manufacturername":"Philips","modelid":"PHDL00","name":"Daylight","state":{"dark":false,"daylight":false,"lastupdated":"2020-09-04T18:00:37.391","status":180,"sunrise":"2020-09-04T04:58:05","sunset":"2020-09-04T18:23:32"},"swversion":"1.0","type":"Daylight","uniqueid":"00:21:2e:ff:ff:05:a2:bc-01"},"2":{"config":{"on":true,"reachable":true},"ep":1,"etag":"1c2f7aa137a15dd6cfe08a4b7a53db9d","lastseen":"2020-09-04T18:11Z","manufacturername":"_TYST11_d0yu2xgi","modelid":"0yu2xgi","name":"0yu2xgi","state":{"alarm":null,"lastupdated":"none"},"swversion":"20180727","type":"ZHAAlarm","uniqueid":"84:2e:14:ff:fe:db:85:3b-01-ef00"}} |
change database.cpp file? --> used this from you --> cd deconz-rest-plugin is that OK? |
Don't need to change the file yourself (and not a good idea because github will see it and can prevent you updating the code later). Just use the same command every time. The code don't use hack for you, so you can use it as it. It will be faster, less file to change mean less file to recompile
I haven't idea from other dev yet, but you can try this code pls. |
Yes, I did this. No change |
@ebaauw if during your ninja exploration, you have a tips for me ^^ ? |
Not really. I don’t use HA nor docker, I don’t know tuya. I stopped trying to support devices that I don’t have myself. It typically takes me at least a dozen iterations of compiling/testing the code before a fairly standard device is fully supported. |
But it work on zigbee side too if you send command ? You have return from the device (with "tuya debug") or error message (aps error with timeout) ? |
Lol, poor github, so much log. So to resume, for preset
Not working
100% working but at second try and 5s after. For humidity 13:51:46:173 Send Tuya Request 2: Dp_type: 0x02 Dp_ identifier 0x6D Data(4): 00000011 So worked too, but I forget to remove the double command (my bad), so the result is not perfect, but it s ok. And For temperature.
100% perfect, even the json is updated with good value ^^ So I think I can stop to disturb you ^^, I will just correct the double command for humidity but you don't need to test it, it s just copy/paste, so I don't think I will make error. I will tell you when this one will be in waiting list, if you want to make a last try. Just a strange thing in log, for preset and humity, the command was send 2 times in less than 1s, it s something normal ?
BTW, thx again for your multiples tries. |
Just a strange thing in log, for preset and humity, the command was send 2 times in less than 1s, it s something normal ? —> I did. |
Hi, do you need something? Can I help with info? I'm really interested to support this device and the issue seems blocked by lack of info ("waiting for info" label). |
It s normal ^^. |
@Smanar Which one? |
Done, |
Done the final PR is submitted, but the code have moved a lot :( If someone can test it ?
|
@gio82c The PR smanar made is going to add yours. So you have to wait a bit more ;) |
Was this added in 2.11.0-beta? I have the same issue. |
Have you tried making 2 inclusions, without deleting something between both ? |
I had to delete and add it again but seems the device is only detected as a binary status sensor (alarm: true/dalse). Is not possible to change the status to start the alarm. Anyone? P.D: I found a new smart plug that is linked to the alarm and launches the alarm. |
You can have some issue too if your manufacture number is 0x1002. |
Hello, try to include 2 times the device, without deleting it between. |
I try to include 2 times, but no changes. |
Ok so you have an old version, there is some new modification since this date, specialy if your manufacture code is 0x1002 (on your version it works only if the manufacture code is 0x0000) |
Is it possible to launch Deconz commands to change the siren sound, volumen etc... as is explained here: |
Yep #4499 (comment) |
"[{"error":{"address":"/lights/xxxxxxxxxxxxxxxxxxxxx/state","description":"parameter, volume, not available","type":6}}]" Seems it doesn't work. "lselect" and "none" works for "alert" parameter. There's a way to recover the parameters? via API I only see one parameter: |
I found it. The alarm trigger is no the same "object" that the "alarm configuration object" You can set the values via CURL/REST but using the alarm "sensor", not the alarm "ligth":
Response: I hope it helps others to configure their devices. |
Is this possible to add as a device?
I cannot find the brand. But see the link. No manual.
I Can pair it. But thats about it, for now
Device
https://szneo.com/en/products/show.php?id=241
https://zigbee.blakadder.com/Neo_NAS-AB02B0.html
Screenshots
The text was updated successfully, but these errors were encountered: