Dear fellow Domoticz fans,
I wanted to complete my alarm system for Domoticz so I could start to script everything (with Dzvents).
The only thing I was missing was an alarm/siren. In my rush I purchased the Neo Coolcam Alarm Siren (2).
As this is supposed to work in Domoticz with Zwave. However, when it arrived and I tried to configure it, I found out that I had bought the Wifi version...
(https://www.aliexpress.com/item/3299636 ... 2278nlpwbo)
If only I would have taken a better look at the article...
Google didn't yield any results to this endeavour... so, before throwing this one out and buying the wave version, I was hoping that someone might know how to make this magically work with domoticz.
Can anyone help me?
Neo Coolcam Siren Alarm (WIFI!)
Moderator: leecollings
-
- Posts: 31
- Joined: Sunday 05 March 2017 11:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest B
- Location: Lo Santiago, Murcia, Spain
- Contact:
Re: Neo Coolcam Siren Alarm (WIFI!)
Hi. I have the same one and wil start the integration in DZ tomorrow
Basically use the tuya smart life app to get it on your Wi-Fi network and use the tooling to get id's etc.
Using the pytuya environment to communicate to these devices.
https://github.com/clach04/python-tuya/
I will describe more tomorrow when I finished it.
So wait before you throw it in the garbage bin
Basically use the tuya smart life app to get it on your Wi-Fi network and use the tooling to get id's etc.
Using the pytuya environment to communicate to these devices.
https://github.com/clach04/python-tuya/
I will describe more tomorrow when I finished it.
So wait before you throw it in the garbage bin

-
- Posts: 24
- Joined: Monday 24 August 2015 22:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Neo Coolcam Siren Alarm (WIFI!)
Awesome!
Will definitely check it out after work
Will definitely check it out after work
-
- Posts: 31
- Joined: Sunday 05 March 2017 11:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest B
- Location: Lo Santiago, Murcia, Spain
- Contact:
Re: Neo Coolcam Siren Alarm (WIFI!)
Hi guys, took some time but I figured it out.
the device has 4 DPS items:
DPS 101: --- Still no idea what this one does ---
DPS 102: Melody type (1-7)
DPS 103: Duration alarm (in sec)
DPS 104: False (On = True, Off = False)
so with the TurnON.py script that is used for the Tuya switches, you can set also these values.
Works great for me.
the device has 4 DPS items:
DPS 101: --- Still no idea what this one does ---
DPS 102: Melody type (1-7)
DPS 103: Duration alarm (in sec)
DPS 104: False (On = True, Off = False)
so with the TurnON.py script that is used for the Tuya switches, you can set also these values.
Works great for me.
-
- Posts: 24
- Joined: Monday 24 August 2015 22:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Neo Coolcam Siren Alarm (WIFI!)
Thank you for sharing!
I kind of forgot I had it because I couldn’t get it to work really...
I kind of forgot I had it because I couldn’t get it to work really...
-
- Posts: 24
- Joined: Monday 24 August 2015 22:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Neo Coolcam Siren Alarm (WIFI!)
the TurnON.py script is not included in the repo.
I do have it installed and I did manage to extract the necessary ID's from the app using charles.
mind helping me a bit more?
*edit: also, do I use the LAN ip of the device or the Public IP as stated in the app?
**edit: I assume this is run in an env/
***edit: Maybe I have to take a few steps back...
I ran setup.py
I used charles to extract the ID's during setup in the app
I have a devId: 12345678xxxxx1234567
localkey: 123x123x1x1xx1xx
ProductId: DYgId0sxxxxxxxxx
What's next??
I do have it installed and I did manage to extract the necessary ID's from the app using charles.
mind helping me a bit more?
*edit: also, do I use the LAN ip of the device or the Public IP as stated in the app?
**edit: I assume this is run in an env/
***edit: Maybe I have to take a few steps back...
I ran setup.py
I used charles to extract the ID's during setup in the app
I have a devId: 12345678xxxxx1234567
localkey: 123x123x1x1xx1xx
ProductId: DYgId0sxxxxxxxxx
What's next??
-
- Posts: 31
- Joined: Sunday 05 March 2017 11:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest B
- Location: Lo Santiago, Murcia, Spain
- Contact:
Re: Neo Coolcam Siren Alarm (WIFI!)
Hi,
for this NEO coolcam sirene, there are 3 things you can set / change:
1) the tone / melody
This is done by setting the DPS 102 to a number from 1 to 10
script://python/setDPS.py <IP-ADDRESS> <DEV-ID> <LOCAL-KEY> 102 (1 to 10) s
2) the duration of the sound / alarm
This is done by altering / setting DPS 103 to the number of seconds.
script://python/setDPS.py <IP-ADDRESS> <DEV-ID> <LOCAL-KEY> 103 <NUMBER_OF_SECONDS> i
3) actual activation of the alarm
This is done by setting DPS number 104 to 1
Switching it off is done by setting this to 0
script://python/setDPS.py <IP-ADDRESS> <DEV-ID> <LOCAL-KEY> 104 (1 or 0) s
This should do it...
and the setDPS.py code is below (thanks to sincze - https://github.com/sincze/Domoticz-Tuya ... lug-Plugin)
for this NEO coolcam sirene, there are 3 things you can set / change:
1) the tone / melody
This is done by setting the DPS 102 to a number from 1 to 10
script://python/setDPS.py <IP-ADDRESS> <DEV-ID> <LOCAL-KEY> 102 (1 to 10) s
2) the duration of the sound / alarm
This is done by altering / setting DPS 103 to the number of seconds.
script://python/setDPS.py <IP-ADDRESS> <DEV-ID> <LOCAL-KEY> 103 <NUMBER_OF_SECONDS> i
3) actual activation of the alarm
This is done by setting DPS number 104 to 1
Switching it off is done by setting this to 0
script://python/setDPS.py <IP-ADDRESS> <DEV-ID> <LOCAL-KEY> 104 (1 or 0) s
This should do it...
and the setDPS.py code is below (thanks to sincze - https://github.com/sincze/Domoticz-Tuya ... lug-Plugin)
Code: Select all
#!/usr/bin/python3
########################################################################################
# Domoticz Tuya Smart Plug Python Plugin #
# #
# MIT License #
# #
# Copyright (c) 2018 tixi #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in all #
# copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE #
# SOFTWARE. #
# #
########################################################################################
import sys
import pytuya
import socket #needed for socket.timeout exception
if(len(sys.argv)!=6):
print("usage: " + sys.argv[0] + " <IP> <DevID> <Local key> <DPS> <DPS value>")
exit(1)
ip = sys.argv[1]
devid = sys.argv[2]
localkey = sys.argv[3]
dps = sys.argv[4]
dps_value = sys.argv[5]
int_str = sys.argv[6]
device = pytuya.OutletDevice(devid,ip,localkey)
if(int_str == "i"):
payload = device.generate_payload('set', {str(dps):int(dps_value)})
else:
payload = device.generate_payload('set', {str(dps):str(dps_value)})
try:
device._send_receive(payload)
except (ConnectionResetError, socket.timeout, OSError) as e:
print("A problem occur please retry...")
exit(1)
Who is online
Users browsing this forum: Bing [Bot] and 0 guests