Page 1 of 1
Using a "clapper" to turn on/off lights
Posted: Monday 06 June 2016 17:27
by toreandre
I have put together a clapper based on the mysensors knock node.
https://www.mysensors.org/build/knock
Its working and is showing as a lightswitch in domoticz, 3 claps = on, 3 claps = off.
I want to controll 1 specific light with the clapper, but the same light is controlled by 2 different scenes and 1 remote controll (all through domoticz).
I have tried to set a blockly event to control the light but it enters a loop that turn my light on and off.
Any idea on how to controll the light with the clapper?
Re: Using a "clapper" to turn on/off lights
Posted: Monday 06 June 2016 18:54
by bizziebis
You can create a new Group and add the switch you would like to switch on/off. Then add the clapper as activation device for that group.
Re: Using a "clapper" to turn on/off lights
Posted: Monday 06 June 2016 21:10
by Derik
dear,
That is the option that is my wife always talking about.
klap klap lichten aan...
Please can you tell me the details..
Thanks
Re: Using a "clapper" to turn on/off lights
Posted: Tuesday 07 June 2016 14:24
by toreandre
bizziebis wrote:You can create a new Group and add the switch you would like to switch on/off. Then add the clapper as activation device for that group.
Thanks for your reply, that is exactly what i was looking for.
Re: Using a "clapper" to turn on/off lights
Posted: Tuesday 07 June 2016 14:34
by toreandre
Derik wrote:dear,
That is the option that is my wife always talking about.
klap klap lichten aan...
Please can you tell me the details..
Thanks
I am using an arduino nano with a microphone/sound detector and MySensors code.
I have connected a nrf24l01 wireless chip to the arduino so it can send on/off commands to domoticz.
If you dont already have any mysensor nodes you also need to set up a gateway, so the nodes can talk to domoticz or to a MQTT broker.
I connected a nrf24 chip directly to my Raspberry pi with a gateway script running but you can also use an ESP8266 + nrf24 chip to get a wireless mysensor gateway.
The clapper node (build instructions and parts, you dont need the speaker/buzzer)
https://www.mysensors.org/build/knock
The gateway
https://forum.mysensors.org/topic/2437/ ... al-gateway
I guess it should be possible to add a microphone directly to the RPi GPIO pins so that you can skip the gateway and mysensors, but i need to have several of them around the house so its nice to have the wireless option that mysensors provide.
Re: Using a "clapper" to turn on/off lights
Posted: Tuesday 07 June 2016 20:02
by Derik
i have mysensors gateway.
And i now how to build the mysensors....
Only can i have more options like 2 claps x, 3 claps y and 4 claps z...?
Or only 1 domoticz switch?