Using a "clapper" to turn on/off lights

Moderator: leecollings

Post Reply
toreandre
Posts: 91
Joined: Tuesday 19 January 2016 12:51
Target OS: -
Domoticz version:
Contact:

Using a "clapper" to turn on/off lights

Post 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?
User avatar
bizziebis
Posts: 182
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805
Location: The Netherlands
Contact:

Re: Using a "clapper" to turn on/off lights

Post 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.
Derik
Posts: 1605
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Using a "clapper" to turn on/off lights

Post 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
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
toreandre
Posts: 91
Joined: Tuesday 19 January 2016 12:51
Target OS: -
Domoticz version:
Contact:

Re: Using a "clapper" to turn on/off lights

Post 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.
toreandre
Posts: 91
Joined: Tuesday 19 January 2016 12:51
Target OS: -
Domoticz version:
Contact:

Re: Using a "clapper" to turn on/off lights

Post 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.
Derik
Posts: 1605
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Using a "clapper" to turn on/off lights

Post 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?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest