3 way switch Topic is solved
Moderators: leecollings, remb0
-
markjgabb
- Posts: 142
- Joined: Tuesday 24 January 2017 23:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Australia
- Contact:
3 way switch
hi everyone
im looking to see if a particular type of button is possible, but i cant seem to find it, and am not sure if im just barking up the wrong tree
so i would like a light switch with 3 states
one/auto/off
this way if i switch it to on, its on, if i switch it to off its off, but i can also switch it to auto where my normal rules can apply....
am i going about this the wrong way?
im having trouble with my lounge lamps and the logic behind them....
im looking to see if a particular type of button is possible, but i cant seem to find it, and am not sure if im just barking up the wrong tree
so i would like a light switch with 3 states
one/auto/off
this way if i switch it to on, its on, if i switch it to off its off, but i can also switch it to auto where my normal rules can apply....
am i going about this the wrong way?
im having trouble with my lounge lamps and the logic behind them....
V 2020.2 RPI 3
RFlink 334 mhz
mysensors
broadlink
Mirabella Genio Globes
RFlink 334 mhz
mysensors
broadlink
Mirabella Genio Globes
-
tozzke
- Posts: 135
- Joined: Friday 02 January 2015 9:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands
- Contact:
Re: 3 way switch
You could use a selector switch which you use in events next
-
markjgabb
- Posts: 142
- Joined: Tuesday 24 January 2017 23:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Australia
- Contact:
Re: 3 way switch
this is brilliant
o so i cant setup a switch exactly as i want
the only issue i have is is it possible to alter and add custom switch states?
below are the current options.....can you add more?
or perhaps is there a way to make the blocky logic use the value levels of 10, 20, 30 for the switch state?
o so i cant setup a switch exactly as i want
the only issue i have is is it possible to alter and add custom switch states?
below are the current options.....can you add more?
or perhaps is there a way to make the blocky logic use the value levels of 10, 20, 30 for the switch state?
V 2020.2 RPI 3
RFlink 334 mhz
mysensors
broadlink
Mirabella Genio Globes
RFlink 334 mhz
mysensors
broadlink
Mirabella Genio Globes
-
Jan Jansen
- Posts: 229
- Joined: Wednesday 30 April 2014 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: 3 way switch
Yes, you can use Blockly (see tab logic > Level%)
-
markjgabb
- Posts: 142
- Joined: Tuesday 24 January 2017 23:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Australia
- Contact:
Re: 3 way switch
ahhh excelent, thank you both for this it will make life much simpler for me...well not so much for me, but for family, as im "trying" to keep it as simple as possible to all family members are comfortable with this setup....
have a simple selector like this should make things much easier..... as with a single button you can change many things, no just auto or not, but full control
have a simple selector like this should make things much easier..... as with a single button you can change many things, no just auto or not, but full control
V 2020.2 RPI 3
RFlink 334 mhz
mysensors
broadlink
Mirabella Genio Globes
RFlink 334 mhz
mysensors
broadlink
Mirabella Genio Globes
-
markjgabb
- Posts: 142
- Joined: Tuesday 24 January 2017 23:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Australia
- Contact:
Re: 3 way switch
unfortunatly it seems level " " % can only be used in a do statement, it cant be used as a factor in the if part...or at least i cant get it to work........
how ever ive now changed it to off/timer/on and that works within the parameters allowed
is there any way to go about changing the available switch states?
how ever ive now changed it to off/timer/on and that works within the parameters allowed
is there any way to go about changing the available switch states?
V 2020.2 RPI 3
RFlink 334 mhz
mysensors
broadlink
Mirabella Genio Globes
RFlink 334 mhz
mysensors
broadlink
Mirabella Genio Globes
-
Jan Jansen
- Posts: 229
- Joined: Wednesday 30 April 2014 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: 3 way switch
Click tab User variables. Then click " ". Then fill the field with for example Level1.
succes
succes
-
tozzke
- Posts: 135
- Joined: Friday 02 January 2015 9:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands
- Contact:
Re: 3 way switch
In the if-statement you're supposed to use the name you've given each level and in the Do-block you should use the level % indeed
-
markjgabb
- Posts: 142
- Joined: Tuesday 24 January 2017 23:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Australia
- Contact:
Re: 3 way switch
@tozzke where can i get that name ive given to each level from though....if switch = "auto" for example...under switch i have no where i can select that name as far as i can tell and any of the text input fields say from log for example seem to not work?
V 2020.2 RPI 3
RFlink 334 mhz
mysensors
broadlink
Mirabella Genio Globes
RFlink 334 mhz
mysensors
broadlink
Mirabella Genio Globes
-
tozzke
- Posts: 135
- Joined: Friday 02 January 2015 9:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands
- Contact:
Re: 3 way switch
doesn't really matter where you get the block. You could either get it @ 'Messages', 'User variables' or 'Debug/log'


-
markjgabb
- Posts: 142
- Joined: Tuesday 24 January 2017 23:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Australia
- Contact:
Re: 3 way switch
hey tozzke
thanks for you tip
i have done as you suggested and pasted blocky below.....
everything seems to work except temp too high or temp to low parts of blocky....im not sure that its perhaps not a seperate issues, but events currently seem to not be being triggered by temp values
thanks for you tip
i have done as you suggested and pasted blocky below.....
everything seems to work except temp too high or temp to low parts of blocky....im not sure that its perhaps not a seperate issues, but events currently seem to not be being triggered by temp values
V 2020.2 RPI 3
RFlink 334 mhz
mysensors
broadlink
Mirabella Genio Globes
RFlink 334 mhz
mysensors
broadlink
Mirabella Genio Globes
-
tozzke
- Posts: 135
- Joined: Friday 02 January 2015 9:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands
- Contact:
Re: 3 way switch
In your first if-statement you've got 'or [LoungeRoom Heating] = [Off] and [Heating Selector] = [On]' but a selector switch doesn't have the state 'On'. Or have you called one of the states of the selector switch 'On'? In that case you have to use 'or [LoungeRoom Heating] = [Off] and [Heating Selector] = ["On"]'. This doesn't fix the problem with the temp you're having though.markjgabb wrote:hey tozzke
thanks for you tip
i have done as you suggested and pasted blocky below.....
everything seems to work except temp too high or temp to low parts of blocky....im not sure that its perhaps not a seperate issues, but events currently seem to not be being triggered by temp values
heating.PNG
How did you call the level "timer"? isn't it by any chance "Timer"? Because this might be the problem that it won't trigger @ temp
Who is online
Users browsing this forum: Bing [Bot] and 1 guest