Question:
How to easily control lighting:
Lamp - switch in domoticz - Sonoff 4CH
Pir detector - Detector in Domoticz - integration with Satel Integra
Local momentary switch on the wall connected to Sonoff 4CH connected to a button on Sonoff.
How to implement control so that the detector turns on the lamp for a specific time and the switch turns on permanently.
How do you do it at home? By blockly or Lua or dzVents
Lighting control - how do you guys do it?
Moderators: leecollings, remb0
- waltervl
- Posts: 5847
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Lighting control - how do you guys do it?
Check the wiki, search this forum. Search for light motion and you will finds lots of examples.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 105
- Joined: Saturday 25 November 2017 17:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v3.8153
- Location: Czech Rep.
- Contact:
Re: Lighting control - how do you guys do it?
I prefer communication between devices.
PIR detects movement and sends a command directly to light switch to temporarily turn on the light.
The light switch knows that it has received a command from the PIR sensor and therefore turns on the light for a certain time. It also sends the information that the light is on to the home automation system Domoticz
After the set time has passed, the light switch turns off itself and sends a message about its status to the Domoticz again.
This will work even if your PI with Domoticz installation is removed to silicon heaven.
But you need to choose a device that allows uploading custom firmware or something like Shelly Plus with scripting capability.
Or run everything through Domoticz...
PIR detects movement and sends a command directly to light switch to temporarily turn on the light.
The light switch knows that it has received a command from the PIR sensor and therefore turns on the light for a certain time. It also sends the information that the light is on to the home automation system Domoticz
After the set time has passed, the light switch turns off itself and sends a message about its status to the Domoticz again.
This will work even if your PI with Domoticz installation is removed to silicon heaven.
But you need to choose a device that allows uploading custom firmware or something like Shelly Plus with scripting capability.
Or run everything through Domoticz...
RPi2 Domoticz v 4.10717
10 x Sonoff Basic - ESPeasy
1 x Wemos D1 - ESPeasy
1 x Shelly Plus Plug S
1 x Sonoff S26 - ESPeasy
1 x Shelly 1
1 x MySensors HC-SR04
1 x MySenosrs wifi gateway
1 x RFLink
4x Cam IPC-T240H
10 x Sonoff Basic - ESPeasy
1 x Wemos D1 - ESPeasy
1 x Shelly Plus Plug S
1 x Sonoff S26 - ESPeasy
1 x Shelly 1
1 x MySensors HC-SR04
1 x MySenosrs wifi gateway
1 x RFLink
4x Cam IPC-T240H
-
- Posts: 356
- Joined: Saturday 27 February 2016 0:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Contact:
Re: Lighting control - how do you guys do it?
I coordinate Z2M PIRs, push buttons and Milight bulbs with a dzVent script.
Light is turned on by PIR if illumination is lower than a given value (to avoid turning it on during day), and turn it off after a delay.
Pushing button inverts bulb state, and lock PIR for 30 seconds (to avoid turning bulb on by PIR just after turning it off by push button, as I have large rooms with 2 or 3 PIR).
Light is turned on by PIR if illumination is lower than a given value (to avoid turning it on during day), and turn it off after a delay.
Pushing button inverts bulb state, and lock PIR for 30 seconds (to avoid turning bulb on by PIR just after turning it off by push button, as I have large rooms with 2 or 3 PIR).
Who is online
Users browsing this forum: Daro1003 and 1 guest