How to fill activation devices table in Scene

Moderator: leecollings

Post Reply
Erik10
Posts: 11
Joined: Wednesday 03 October 2018 20:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.97
Contact:

How to fill activation devices table in Scene

Post by Erik10 »

I did some experiments with Domoticz to check whether the application can handle the more difficult sensors/input/output. I installed 2 SBFspots (for my SMA solar converters), I read a smart energy meter over LAN with Ser2net and I was able to load data from my RESOL solar collector (a script reading a CSV file). I also have HAbridge up and running for voice control over an Amazon Echo.
So I decided to go for it and migrate all my sensors and modules to Domoticz.

But now I could use some guidance. I want to make a scene. I want to use a (virtual) switch, which I already made, to trigger the scene. In the scene I want to switch 'on' some Z-wave modules.
When I go to the Scenes tab I can add a scene. At the bottom I see all the devices I could include in the scene. But the list of ‘activation devices’ is totally empty. I expected a list of devices that could be used as 'trigger' for the scene.
What do I need to do to fill that table?

I have Domoticz (version 4.97) running on a RPI 3+. For Z-wave I use the Aotec Gen 5 Zwave stick.


This is the scene:
Image

And this is the network:
Image
Erik10
Posts: 11
Joined: Wednesday 03 October 2018 20:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.97
Contact:

Re: How to fill activation devices table in Scene

Post by Erik10 »

Anyone? Is it a stupid question?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: How to fill activation devices table in Scene

Post by waaren »

Erik10 wrote: Thursday 01 November 2018 17:00 Anyone? Is it a stupid question?
If you press the green button with Add Device right under the empty list with activation devices then a popup window with the text "Press Button on Remote" appears.
When I do that and activate a switch, that switch is added to the list with activation devices.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Erik10
Posts: 11
Joined: Wednesday 03 October 2018 20:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.97
Contact:

Re: How to fill activation devices table in Scene

Post by Erik10 »

Thank you. Yes I know of the add Device button. But then the system asks to press a button on a remote. I do not have a remote. What kind of remote should that be?
I just want to use a (virtual or Z-wave) switch. When I switch to ‘on’ this should trigger the scene (switching or dimming several devices).
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: How to fill activation devices table in Scene

Post by waaren »

Erik10 wrote: Thursday 01 November 2018 21:18 The system asks to press a button on a remote. I do not have a remote. What kind of remote should that be?
just a RFLink wall switch or Xiaomi button or..
I just want to use a (virtual or Z-wave) switch. When I switch to ‘on’ this should trigger the scene (switching or dimming several devices).
I sent you a PM
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
peterchef
Posts: 37
Joined: Sunday 03 January 2016 17:49
Target OS: Windows
Domoticz version: 2024.4
Location: France
Contact:

Re: How to fill activation devices table in Scene

Post by peterchef »

I believe I have the same question….
I would like to add an activation device manually rather than pressing a button. Is this possible ?
Windows, Domoticz
Aeotec Z-Stick Gen5, Aeotec Multisensor 6, Horstmann HRT4-ZW Thermostat Transmitter, Horstmann ASR-ZW Thermostat Receiver
Zipato Mini Keypad RFID, Everspring AN157 Plug
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: How to fill activation devices table in Scene

Post by waaren »

peterchef wrote: Thursday 22 November 2018 6:10 I believe I have the same question….
I would like to add an activation device manually rather than pressing a button. Is this possible ?
Sent you a PM
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
santricity
Posts: 7
Joined: Sunday 09 December 2018 13:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Contact:

Re: How to fill activation devices table in Scene

Post by santricity »

Hi, I'd like to do the same - use virtual switches as my activation devices.

@waaren, could you post the solution?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: How to fill activation devices table in Scene

Post by waaren »

santricity wrote: Sunday 09 December 2018 15:15 Hi, I'd like to use virtual switches as my activation devices.
This cannot be done in a standard domoticz way. The developers consider this a risk. (Maybe because of the chance of an endless loop but that is just my guess)
workaround:

note down the IDX of the scene -- Here 13
note down the IDX's of the devices you want to use as activator -- Here 587 and 580

Go to domoticz dir
make a copy of your domoticz database and store it in a safe place
open database with sqlite3 or other tool to manipulate data
insert activator devices in table Scenes --- update scenes set Activators = "587;580" where id=13;

Go to Domoticz GUI (scene page) and there should be your (working) activators
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
santricity
Posts: 7
Joined: Sunday 09 December 2018 13:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Contact:

Re: How to fill activation devices table in Scene

Post by santricity »

Thank you! This works, my dummy switch can activate my scene now.
newpond
Posts: 26
Joined: Sunday 26 September 2021 2:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to fill activation devices table in Scene

Post by newpond »

I know this is really old now but a far easier solution is to do this.
open 2 different browsers. in my case safari and chrome
login to domoticz in both browsers
in one browser create a virtual switch (I did this chrome)

in the other browser (safari)
create a scene
then press add device under the activation device section
you should see a popup saying "press button on remote"

Before this times out (you have 5 seconds) go back to the other browser and turn on the virtual switch you created.

this should then appear in the list of activation devices in the scene settings in the other browser where you then need to press save.

rgds
Jon
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest