If someone forgets to turn off the gas, for example demented people, there is a voice-warning (in another room).
Required:
- Raspberry Pi model 2B
- 8GB Micro SDHC with Domoticz (V2.3530) installed
- RFXCOM-E transceiver
- Doorcontacts wireless, consists two parts; magnet and switch/transmitter (for example 'KlikAanKlikUit')
- Loudspeaker(s) (via 3.5 jacket)
How to build:
- Glue the magnet and the switch/transmitter in a manner that the buttonposition "0" fits with the smallest possible distance between magnet and switch/transmitter.
- Check in the RFXCOM and choose to field 'Data Timeout': 3 Hours.
- Check in the 4 contacts and call them, 'contact_1' to 'contact_4'.
- Create 5 dummy switches, 'dummy_10', 'dummy_60', 'dummy_180', 'dummy_360' and 'dummy_720' etc..
- Recorder a warning text. Voice-example: "The gas is still on, The gas is still on!"
- Save the soundfile in '/home/pi/domoticz/scripts/voice/warning.wav'.
- Write a Bash script like this:
#!/bin/bash
aplay /home/pi/domoticz/scripts/voice/warning.wav
- Name the script "voice_activation.sh" and make it executable.
- The "On Delay" field of the switches 'dummy_10.....720', fill with values 10.....720 seconds. 'Of Delay' all on '0'.
- Add 'script:///home/pi/domoticz/scripts/voice_activation.sh' to the "On action" field of the switches 'dummy_10.....720'.
- Create the events below (Setup > More Options > Events):
On_10: If (contact_1=on or contact_2=on or contact_3=on or contact_4=on)
Do (Set dummy_10=on)
On_60: If (contact_1=on or contact_2=on or contact_3=on or contact_4=on)
Do (Set dummy_60=on)
etc.
Off_10: If (contact_1=off and contact_2=off and contact_3=off and contact_4=off)
Do (Set dummy_10=off)
Off_60: If (contact_1=off and contact_2=off and contact_3=off and contact_4=off)
Do (Set dummy_60=off)
etc.
Success, questions, comments, please email Theo de Graaff, [email protected], Netherlands, Veldhoven.
Safety for the gas-cooker, stove etc.
Moderator: leecollings
Who is online
Users browsing this forum: No registered users and 1 guest