zigate tuya siren
Posted: Monday 21 December 2020 23:10
Thanks! Good idea.
Always on hot topicThorgal789 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.
Thanks! A new challenge for this yearpipiche 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
Hi, i have the siren! Where to find these settings, "you can configure each of them via the Web UI"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
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
Nice, it works!
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}
Yes, that works nice! Melody 1 to 5.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
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}
Perfect!!
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}