Page 1 of 6
Mode-selector / multistate device
Posted: Saturday 11 July 2015 13:38
by rjnl
Currently i'm working on improving the daikin control script for use with my urura sarara heatpump airconditioner, because the current script is not working ideally for me (i tend to fall back to the remote a lot instead of using the tablet on the wall). Also, the automatic switching between heat/cool based on a temp comparison is not working out, since it tends to flap sometimes between heat and cooling modes. e.g. during daytime when the sun starts heating the room on heating mode it switches to cooling and then back to heating. After I got it working properly i will post this to the relevant topic of course. I wish to implement some support for selecting the mode on the aircon, e.g. ideally i could select (from a dropdown, or a rotator switch, etc.) the mode using a single button. e.g. OFF/AUTO/COOL/HEAT/DRY/HUMIDIFY/DRY COOL/HUMID HEAT/FAN/FRESH. Currently I would need to create a lot of on/off switches and a lot of dirty code and sub/slave device settings to make it sort of easy to use and consistent, but its not really. Also it takes up a lot of "screen estate" on the control devices (app and tablets)
I can imagine some other applications benefiting from this, e.g. lighting scene selector, selecting ventilation settings, bundle all logitech harmony activity switches in a single device/control, displaying presence states, etc.
Re: Mode-selector / multistate device
Posted: Monday 13 July 2015 9:32
by pj-r
Re: Mode-selector / multistate device
Posted: Sunday 23 August 2015 18:14
by Dlanor
Interesting! Maybe it is possible make an multi-state custom switch!
Re: Mode-selector / multistate device
Posted: Wednesday 02 September 2015 11:45
by zofiel
yes please! we need a multistate device

Re: Mode-selector / multistate device
Posted: Wednesday 23 September 2015 17:00
by monty
would be so useful ..... we need it !!!!
pleeeaasseeeee add it
Regards Monty
Re: Mode-selector / multistate device
Posted: Thursday 29 October 2015 8:05
by westanfelda
I also would like to have an Switch with 3 buttons for my blinds - down, stop and up. The Blinds stops only by pressing the stop button on the remote
would be great...at least for me
Guido
Re: Mode-selector / multistate device
Posted: Saturday 21 November 2015 9:20
by abalazs
I also thought about how much it could be resolved by switching to a four-speed fan.
Please be multi-state switch.

Re: Mode-selector / multistate device
Posted: Thursday 17 December 2015 22:00
by SQ9MDD
Hi guys, i see new switch type (selector).
Is this work done now?
Because i have some issue, but not sure what i'm doing wrong.
Re: Mode-selector / multistate device
Posted: Friday 18 December 2015 9:37
by pj-r
Looks like that. I did read thru the
pull request and looks like it has int string mapping sql-database. Have to try it at week end.
Re: Mode-selector / multistate device
Posted: Sunday 20 December 2015 12:18
by nmaster
Hi, I was waiting for this kind of switch for a long time.
I can add a selector switch but does somebody knows how it can be used ?
Re: Mode-selector / multistate device
Posted: Sunday 20 December 2015 17:06
by SQ9MDD
I cant add selector levels i think is not ready yet.
Re: Mode-selector / multistate device
Posted: Sunday 20 December 2015 21:23
by jcjames13009
Hi
Just did a quick test to simulate heating swicth (Off / Eco / Confort). Couldn't make it working with blocky but works fine with Lua...
Create Selector Switch with Off / Eco / Confort level name and 3 virtual switches Heating / Heating Eco and Heating Confort

- Selector SW 1.JPG (67.64 KiB) Viewed 15975 times

- Selector SW 2.JPG (32.35 KiB) Viewed 15975 times
and a lua script
Code: Select all
-- script_device_SelectorSwitch_TEST.lua
--
commandArray = {}
-- Commande Selector Switch
if (devicechanged['Selector Switch'] == 'Off' and otherdevices['Test Chauffage'] == 'On') then
commandArray['Test Chauffage']='Off'
commandArray['Test Chauffage Eco']='Off'
commandArray['Test Chauffage Confort']='Off'
print('Test Chauffage Off')
end
if (devicechanged['Selector Switch'] == 'Eco' and otherdevices['Test Chauffage Eco'] == 'Off') then
commandArray['Test Chauffage']='On'
commandArray['Test Chauffage Eco']='On'
commandArray['Test Chauffage Confort']='Off'
print('Test Chauffage Eco')
end
if (devicechanged['Selector Switch'] == 'Confort' and otherdevices['Test Chauffage Confort'] == 'Off') then
commandArray['Test Chauffage']='On'
commandArray['Test Chauffage Eco']='Off'
commandArray['Test Chauffage Confort']='On'
print('Test Chauffage Confort')
end
return commandArray
FYI I use Domoticz V2.3852
Will use it for bathroom heating control
Thanks for this new feature
JC
Re: Mode-selector / multistate device
Posted: Sunday 20 December 2015 23:10
by SQ9MDD
I'm confused, how can you did this?
I have a problem with selector cant add levels simply this button doesn't work, and after save dont have any option.

Re: Mode-selector / multistate device
Posted: Monday 21 December 2015 9:25
by Dnpwwo
Very nice, simple to use and looks good.
Congrats!
Re: Mode-selector / multistate device
Posted: Monday 21 December 2015 10:17
by SQ9MDD
OK i see now, i can add selector type dummy switch. But with mysensors switch this future doesn't work.
Re: Mode-selector / multistate device
Posted: Monday 21 December 2015 17:19
by jcjames13009
Hi SQ9MDD
That's the config I use (Dummy switch). I don't have mysensor.
JC
Re: Mode-selector / multistate device
Posted: Monday 21 December 2015 22:25
by jcjames13009
What is missing is to have different icon for each level

Re: Mode-selector / multistate device
Posted: Tuesday 22 December 2015 9:22
by SQ9MDD
Right, and possibility to changing lvl 0 name. Sometimes we need a selector for operating modes, changing types of behavior, not only for start/mode/stop.
And another BIG question: they are plannig add selector to the mysensors?
Re: Mode-selector / multistate device
Posted: Tuesday 22 December 2015 11:32
by nmaster
Thanks jcjames13009 it's exactly what I need for my heating system.
Re: Mode-selector / multistate device
Posted: Wednesday 23 December 2015 22:15
by jcjames13009
Still testing...
Planing is working fine with dummy selector switch

- Selector Switch 2.JPG (62.88 KiB) Viewed 15812 times

- Selector Switch 3.JPG (32.58 KiB) Viewed 15812 times
and blocky as well

- Selector Switch.JPG (37.56 KiB) Viewed 15812 times
Code: Select all
2015-12-23 22:06:49.445 Selector Switch sur Eco
2015-12-23 22:06:49.445 EventSystem: Event triggered: Selector SW_2
2015-12-23 22:06:49.159 (Virtuel) Light/Switch (Selector Switch 2)
2015-12-23 22:07:34.096 Selector Switch sur Confort
2015-12-23 22:07:34.096 EventSystem: Event triggered: Selector SW_3
2015-12-23 22:07:33.871 (Virtuel) Light/Switch (Selector Switch 2)
2015-12-23 22:08:08.050 Selector Switch sur Off
2015-12-23 22:08:08.050 EventSystem: Event triggered: Selector SW_1
2015-12-23 22:08:07.843 (Virtuel) Light/Switch (Selector Switch 2)
Just multistate icon is missing. Sure we'll have it soon
JC