Page 1 of 5

zigate tuya siren

Posted: Monday 21 December 2020 23:10
by marktn
Hello,

Is this compatible with zigate?
https://nl.aliexpress.com/i/4000813903996.html

Re: zigate tuya siren

Posted: Tuesday 22 December 2020 10:42
by pipiche
NOt yet tested. From what I know it works on most of the Zigbee controler, so it should work.

I just ordered one.

So if you want to wait that I receive, I integrate it, and then I ship it you that could be the best way.

Re: zigate tuya siren

Posted: Tuesday 22 December 2020 10:44
by marktn
pipiche wrote: Tuesday 22 December 2020 10:42 NOt yet tested. From what I know it works on most of the Zigbee controler, so it should work.

I just ordered one.

So if you want to wait that I receive, I integrate it, and then I ship it you that could be the best way.
Thanks! Good idea.
If possible , it wil be nice to use al functions. Different sounds.

Mark

Re: zigate tuya siren

Posted: Tuesday 22 December 2020 10:46
by pipiche
Mark,

As soon as I get it I'll let you know , and then we see from that.

Re: zigate tuya siren

Posted: Saturday 02 January 2021 14:52
by pipiche
Just to give you some news.

The Tuya Siren just reached home today.

badly this device has the same model name as the Tuya eTRV.

All is based on a proprietary Cluster by Tuya.

So far I think I have decoded Temperature and Humidity.

As regards to the Sirene mode itself, this will be more challenging. I'll try to contact Tuya but don't have too much hope. Otherwise I'll purchase a Tuya gateway and reverse engineer it

Re: zigate tuya siren

Posted: Saturday 02 January 2021 16:05
by Thorgal789
@pipiche I think I m on the same siren, and I have all command, give me 10 mn to find the ressources.

Re: zigate tuya siren

Posted: Saturday 02 January 2021 18:23
by pipiche
Thorgal789 wrote: Saturday 02 January 2021 16:05 @pipiche I think I m on the same siren, and I have all command, give me 10 mn to find the ressources.
Always on hot topic ;-)

Re: zigate tuya siren

Posted: Sunday 03 January 2021 11:42
by marktn
pipiche wrote: Saturday 02 January 2021 14:52 Just to give you some news.

The Tuya Siren just reached home today.

badly this device has the same model name as the Tuya eTRV.

All is based on a proprietary Cluster by Tuya.

So far I think I have decoded Temperature and Humidity.

As regards to the Sirene mode itself, this will be more challenging. I'll try to contact Tuya but don't have too much hope. Otherwise I'll purchase a Tuya gateway and reverse engineer it
Thanks! A new challenge for this year ;)
It is nice to have that sirene ,for a doorbel and Alarm system.

Re: zigate tuya siren

Posted: Saturday 09 January 2021 17:04
by pipiche
@markn good news with some help from @Thorgal789 , the Siren works !

Basically:

Temp reporting Ok
Humidity reporting Ok
Siren On Ok
Siren Off Ok

I think there are some other features like Melody ... so if you don't mind I'll wait to receive the Tuya gateway to deeped integrate it.

Re: zigate tuya siren

Posted: Saturday 09 January 2021 17:20
by pipiche
5 Melodies seems OK !

if you want me to send you that , drop me an MP

Re: zigate tuya siren

Posted: Saturday 09 January 2021 19:51
by marktn
pipiche wrote: Saturday 09 January 2021 17:20 5 Melodies seems OK !

if you want me to send you that , drop me an MP
Good news and work!! :D :D

Re: zigate tuya siren

Posted: Saturday 16 January 2021 23:14
by pipiche
Some news (will be available on beta version)

Pairing of Siren is ok and here are the features

100% working
- 5 different alarm can be trigger from domoticz (you can configure each of them via the Web UI and you have access to 3 Volume level 70db, 80db and 90db; you have about 15 melodies to be selected; and you can configure the duration)
- it does report Temperature and Humidity
- It does report when powered via USB cable or via the battery

Some how working
Setting Alarm for Humidity when outside of a Min and Max value
Setting Alarm for Temperature when outside of Min and Max value

It will then use the latest Volume, Melody and Duration set by a direct alarm

Not working
Battery level

Re: zigate tuya siren

Posted: Friday 29 January 2021 19:24
by marktn
pipiche wrote: Saturday 16 January 2021 23:14 Some news (will be available on beta version)

Pairing of Siren is ok and here are the features

100% working
- 5 different alarm can be trigger from domoticz (you can configure each of them via the Web UI and you have access to 3 Volume level 70db, 80db and 90db; you have about 15 melodies to be selected; and you can configure the duration)
- it does report Temperature and Humidity
- It does report when powered via USB cable or via the battery

Some how working
Setting Alarm for Humidity when outside of a Min and Max value
Setting Alarm for Temperature when outside of Min and Max value

It will then use the latest Volume, Melody and Duration set by a direct alarm

Not working
Battery level
Hi, i have the siren! Where to find these settings, "you can configure each of them via the Web UI"
Plugin: 4.12.108

Code: Select all

 2021-01-29 19:59:22.137 (Zigate) UpdateDevice - (Zigate - TS0601_ThermoMode_2-5c0272fffecea9d6-01) 1:20
2021-01-29 19:59:22.087 Status: User: Admin initiated a switch command (4767/Zigate - TS0601_ThermoMode_2-5c0272fffecea9d6-01/Set Level)
2021-01-29 19:59:28.665 (Zigate) UpdateDevice - (Zigate - TS0601_ThermoMode_2-5c0272fffecea9d6-01) 0:Off
2021-01-29 19:59:28.634 Status: User: Admin initiated a switch command (4767/Zigate - TS0601_ThermoMode_2-5c0272fffecea9d6-01/Set Level)
2021-01-29 19:59:38.345 (Zigate) UpdateDevice - (Zigate - lumi.relay.c2acn01_Power-00158d000444ee2f-01) 7.98:7.9785308837890625
2021-01-29 19:59:38.365 (Zigate) UpdateDevice - (Zigate - lumi.relay.c2acn01_Meter-00158d000444ee2f-01) 0:7.98;7311.56
2021-01-29 19:59:43.074 (Zigate) [ MainThread] thermostat_Setpoint - calling Tuya for c97b with value 300
2021-01-29 19:59:43.075 (Zigate) UpdateDevice - (Zigate - TS0601_ThermoSetpoint-5c0272fffecea9d6-01) 0:3.00
2021-01-29 20:00:02.757 (Zigate) UpdateDevice - (Zigate - TS0601_ThermoMode_2-5c0272fffecea9d6-01) 1:10
2021-01-29 20:00:02.712 Status: User: Admin initiated a switch command (4767/Zigate - TS0601_ThermoMode_2-5c0272fffecea9d6-01/Set Level)
2021-01-29 20:00:04.820 (Zigate) UpdateDevice - (Zigate - TS0601_ThermoMode_2-5c0272fffecea9d6-01) 0:Off
2021-01-29 20:00:04.814 Status: User: Admin initiated a switch command (4767/Zigate - TS0601_ThermoMode_2-5c0272fffecea9d6-01/Set Level)
2021-01-29 20:00:19.880 Status: (Zigate) [ MainThread] Request Accepting new Hardware for ever
2021-01-29 20:00:20.489 Status: (Zigate) [ZiGateForwarder_16] Accepting new Hardware: On
2021-01-29 20:00:32.503 Status: (Zigate) [ZiGateForwarder_16] Sirene1 (c97b/5c0272fffecea9d6) send a Leave indication and will be outside of the network. LQI: 0
2021-01-29 20:00:38.058 (Zigate) DeviceExist - Update Status from Left to 'inDB' for NetworkID : 69a7
2021-01-29 20:00:38.247 (Zigate) Zigate receive message processing time Max: 189 ms with an of average: 4 ms
2021-01-29 20:00:38.058 Status: (Zigate) NetworkID : 69a7 is replacing c97b and is attached to IEEE : 5c0272fffecea9d6
2021-01-29 20:00:38.171 Status: (Zigate) [ZiGateForwarder_16] Device Annoucement: Sirene1 NwkId: 69a7 Ieee: 5c0272fffecea9d6 MacCap: 80 

Re: zigate tuya siren

Posted: Friday 29 January 2021 22:43
by pipiche
I didn't push yet the Siren code to beta branch. Still struggling with other Tuya devices

if you want you can go to branch. SireneTuyaTS0601

git checkout SireneTuyaTS0601

then you need to remove the widgets and redo the pairing

Re: zigate tuya siren

Posted: Saturday 30 January 2021 17:56
by marktn
pipiche wrote: Friday 29 January 2021 22:43 I didn't push yet the Siren code to beta branch. Still struggling with other Tuya devices

if you want you can go to branch. SireneTuyaTS0601

git checkout SireneTuyaTS0601

then you need to remove the widgets and redo the pairing
Nice, it works! :D :!:

Do i need to change this for an other melody? Or add Melody's? Tried it, but that did not work.
Temperature stays 0, i know it is a test version. :D
Parameters:

Code: Select all

{'Alarm1': {'Duration': 5, 'Volume': 2, 'Melody': 1}, 'Alarm2': {'Duration': 5, 'Volume': 2, 'Melody': 2}, 'Alarm3': {'Duration': 5, 'Volume': 2, 'Melody': 3}, 'Alarm4': {'Duration': 5, 'Volume': 2, 'Melody': 4}, 'Alarm5': {'Duration': 5, 'Volume': 2, 'Melody': 5}, 'HumidityMinAlarm': 25, 'HumidityMaxAlarm': 75, 'TemperatureMinAlarm': 3, 'TemperatureMaxAlarm': 27}

Re: zigate tuya siren

Posted: Saturday 30 January 2021 20:18
by pipiche
Could you kindly try to update to latest version of SireneTuyaTS0601. ( just a git pull )

This should work, basically you have a Switch Selector created with 5 Alarms by default they are configured like that
Screenshot 2021-01-30 at 20.13.38.png
Screenshot 2021-01-30 at 20.13.38.png (85.18 KiB) Viewed 2103 times
{'Alarm1': {'Duration': 5, 'Volume': 2, 'Melody': 1}, Melody 1 with lowest sound possible ( Max is 0 ) and duration 5 secondes
'Alarm2': {'Duration': 5, 'Volume': 2, 'Melody': 2},
'Alarm3': {'Duration': 5, 'Volume': 2, 'Melody': 3},
'Alarm4': {'Duration': 5, 'Volume': 2, 'Melody': 4},
'Alarm5': {'Duration': 5, 'Volume': 2, 'Melody': 5},

Now, if you want to update one of those 5 alarms, you just have to update the values

Duration: number of secondes
Volume: 0 Max 90db, 1 medium 80db, 2 low (70db)
Melody: 1 to 15

Update those via the Web Admin
Screenshot 2021-01-30 at 20.16.43.png
Screenshot 2021-01-30 at 20.16.43.png (24.18 KiB) Viewed 2103 times

Re: zigate tuya siren

Posted: Saturday 30 January 2021 21:23
by marktn
pipiche wrote: Saturday 30 January 2021 20:18 Could you kindly try to update to latest version of SireneTuyaTS0601. ( just a git pull )

This should work, basically you have a Switch Selector created with 5 Alarms by default they are configured like that
Screenshot 2021-01-30 at 20.13.38.png

{'Alarm1': {'Duration': 5, 'Volume': 2, 'Melody': 1}, Melody 1 with lowest sound possible ( Max is 0 ) and duration 5 secondes
'Alarm2': {'Duration': 5, 'Volume': 2, 'Melody': 2},
'Alarm3': {'Duration': 5, 'Volume': 2, 'Melody': 3},
'Alarm4': {'Duration': 5, 'Volume': 2, 'Melody': 4},
'Alarm5': {'Duration': 5, 'Volume': 2, 'Melody': 5},

Now, if you want to update one of those 5 alarms, you just have to update the values

Duration: number of secondes
Volume: 0 Max 90db, 1 medium 80db, 2 low (70db)
Melody: 1 to 15

Update those via the Web Admin
Screenshot 2021-01-30 at 20.16.43.png
Yes, that works nice! Melody 1 to 5.

Only is there a way to the other 10 melodies?

When i change it, i get errors. Melody 6 and higher.

Code: Select all

{'Alarm1': {'Duration': 5, 'Volume': 2, 'Melody': 6}, 'Alarm2': {'Duration': 5, 'Volume': 2, 'Melody': 7}, 'Alarm3': {'Duration': 5, 'Volume': 2, 'Melody': 8}, 'Alarm4': {'Duration': 5, 'Volume': 2, 'Melody': 9}, 'Alarm5': {'Duration': 5, 'Volume': 2, 'Melody': 10}, 'HumidityMinAlarm': 25, 'HumidityMaxAlarm': 75, 'TemperatureMinAlarm': 3, 'TemperatureMaxAlarm': 27}

Re: zigate tuya siren

Posted: Saturday 30 January 2021 22:34
by pipiche
please put the log

Re: zigate tuya siren

Posted: Saturday 30 January 2021 22:37
by pipiche
fixed ! just do a git pull to get the latest version with the fix

Re: zigate tuya siren

Posted: Saturday 30 January 2021 23:37
by marktn
pipiche wrote: Saturday 30 January 2021 22:37 fixed ! just do a git pull to get the latest version with the fix
Perfect!!

The max is 5 alarms in domoticz? Not that it is a problem.

Maybe to look at,

Sometimes the speaker has a soft "tik" when it is not in use.

I my log i see this:

Code: Select all

2021-01-31 10:35:22.705 Error: (Zigate) get_alarm_attrbutes - default value to be used - Melody can only be 1,2,3,4,5 instead of Alarm5 - {'Alarm1': {'Duration': 5, 'Volume': 2, 'Melody': 11}, 'Alarm2': {'Duration': 5, 'Volume': 2, 'Melody': 12}, 'Alarm3': {'Duration': 5, 'Volume': 2, 'Melody': 13}, 'Alarm4': {'Duration': 5, 'Volume': 2, 'Melody': 14}, 'Alarm5': {'Duration': 5, 'Volume': 2, 'Melody': 15}, 'HumidityMinAlarm': 25, 'HumidityMaxAlarm': 75, 'TemperatureMinAlarm': 3, 'TemperatureMaxAlarm': 27}
temp stays 0