Manage switch selector and using different selection on "if"  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
megamarco83
Posts: 109
Joined: Friday 21 September 2018 15:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Manage switch selector and using different selection on "if"

Post by megamarco83 »

hi, i have this part of my dzvent script (version dzvent=2.4.19)

Code: Select all

local function manageSwitches()
            if  heatpump.state == "Off" then
                controlVar.set("false")
                season.switchSelector("Heating")  -- from October to April put selector in Heating ; from May to September put in Cooling
                switchValves(off)
            elseif heatpump.state == "On" and (manuale.value) == 0  then          -- if PDC is ON -> switch on the valves
                controlVar.set("true")
                season.switchSelector("SUN_POWER")
                switchValves(on) 
            elseif heatpump.state == "On" and (manuale.value) == 1  and controlVar.value == "true" then
                manuale.set(0)
                season.switchSelector("SUN_POWER")
                switchValves(on)
            end 
        end
how i can set a specific level of dummy switch selector device inside code?
i mean for example this line:

Code: Select all

season.switchSelector("SUN_POWER")
where i need to put my selector switch at lever named "SUN_POWER"

second question at line:

Code: Select all

season.switchSelector("Heating")  -- from October to April put selector in Heating ; from May to September put in Cooling
i would like to set the level my switch at "Heating from October to april, and set to "Cooling" level from may to september, how i can implement that change?

thanks
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Manage switch selector and using different selection on "if"

Post by waaren »

megamarco83 wrote: Sunday 19 January 2020 0:52 dzVents version 2.4.19
How i can set a specific level of dummy switch selector device inside code?

Code: Select all

season.switchSelector("SUN_POWER")
dzVents version 2.4.19 does not support the use of levelNames in the switchSelector method. This was introduced in dzVents version 2.4.22. So if you want to use that you will need to switch to the Beta channel or wait for a next stable release. ( No I don't know when this will come)
Until then you will have to use season.switchSelector(10) or another numeric level.

Code: Select all

season.switchSelector("Heating")  -- from October to April put selector in Heating ; from May to September put in Cooling
i would like to set the level my switch at "Heating from October to april, and set to "Cooling" level from may to september, how i can implement that change?
code snippet could look like

Code: Select all

if dz.time.matchesRule('on 1/5-30/9') then
    if season.levelName ~= 'Cooling' then season.switchSelector(XX) end
else
    if season.levelName ~= 'Heating' then season.switchSelector(YY) end 
end 
(where XX is the levelnumber of the Cooling level and YY is the levelnumber of the Heating level)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
megamarco83
Posts: 109
Joined: Friday 21 September 2018 15:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Manage switch selector and using different selection on "if"

Post by megamarco83 »

hi, it works perfectoly, thanks!
i need support on another part of the code that i added:

Code: Select all

        local calorifero1p                  = dz.devices("Calorifero_Bagno_PT")   
        local calorifero_mans               = dz.devices("Calorifero_Bagno_Mansarda") 
        local vcm_1p                        = dz.devices("VCM_Piano_Terra")
        local vcm_mans                      = dz.devices("VCM_Mansarda")
        local PDC                           = dz.devices("PDC")
        local autoconsumo                   = dz.devices("Autoconsumo")
        local SCRIPT_PDC_VALVOLE            = dz.devices("SCRIPT_PDC_VALVOLE")
        local PDC_automation                = dz.devices("PDC automation")
        
       -- local isOffBlocked   = dz.variables("hotWaterThermostatControlled").value == "true"
        

    

        local function manageSwitches()
            if autoconsumo.value >= 2000 and calorifero1p.state == "On" and calorifero_mans.state == "On" then
                calorifero1p.swichOff()
                calorifero_mans.swichOff()
                vcm_1p.swichOff()
                vcm_mans.swichOff()
                
            
            --TURN ON PDC ( per vedere se c'è energia per accendere la pompa)
            PDC.switchOn().afterSec(10)
            SCRIPT_PDC_VALVOLE.switchOn()
            PDC_automation.switchOn()
            end
        end
the code run without errors (attached the log)
but it not works as expected: the devices: calorifero1p.state == "On" and calorifero_mans.state == "On" was ON and the dummy device "utility" power meter (instant enery+total energy) has a value > 2000 Watt
this one:
Screenshot_2020-01-19 Domoticz.png
Screenshot_2020-01-19 Domoticz.png (8.31 KiB) Viewed 1571 times
but the script do not turn off:
calorifero1p.swichOff()
calorifero_mans.swichOff()
vcm_1p.swichOff()
vcm_mans.swichOff()
and also not turn on the other devices
PDC.switchOn().afterSec(10
PDC_automation.switchOn()

maybe the issue is how i try to compare the value inside dzvent about energy inside "if"?
if autoconsumo.value >= 2000

Code: Select all

 2020-01-19 12:08:00.428 Status: dzVents: Info: OTTIMIZZAZIONE INVERNO: ------ Start internal script: OTTIMIZZAZIONE INVERNO:, trigger: every 1 minutes at 11:00-14:30
2020-01-19 12:08:00.431 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for Calorifero_Bagno_PT: Switch device adapter
2020-01-19 12:08:00.433 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for Calorifero_Bagno_Mansarda: Switch device adapter
2020-01-19 12:08:00.435 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for VCM_Piano_Terra: Switch device adapter
2020-01-19 12:08:00.437 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for VCM_Mansarda: Switch device adapter
2020-01-19 12:08:00.439 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for PDC: Switch device adapter
2020-01-19 12:08:00.442 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for Autoconsumo: kWh device adapter
2020-01-19 12:08:00.444 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for PDC automation: Switch device adapter
2020-01-19 12:08:00.444 Status: dzVents: Info: OTTIMIZZAZIONE INVERNO: ------ Finished OTTIMIZZAZIONE INVERNO 
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Manage switch selector and using different selection on "if"

Post by waaren »

megamarco83 wrote: Sunday 19 January 2020 12:17 i need support on another part of the code that i added. The code run without errors (attached the log)
First add a couple of relevant debug log statements to help you see what happens and why in your code.
If that does not help you to solve the issue yourself then please share the complete code and the complete log (including these added debug log lines)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
megamarco83
Posts: 109
Joined: Friday 21 September 2018 15:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Manage switch selector and using different selection on "if"

Post by megamarco83 »

hi, and thanks again for support.
the code is really simple:

Code: Select all

-- script for winter opttimization

return {
       -- active = function(domoticz)
		--return domoticz.devices('OTTIMIZZA_INVERNO').state == 'On' -- Change this to your control switch name or id 
    --end,
    
    on          =   {   
                              
                        timer           =   { 'every 1 minutes at 11:00-14:30 '  }, --from 1 october to 1 april on 1/10-31/12,1/1-1/4
                    },
                     
    logging     =   { 
                        level   =  domoticz.LOG_DEBUG,   
                        marker  =  "OTTIMIZZAZIONE INVERNO"  
                    },    

    execute = function(dz, item)
  
        local function logWrite(str,level)
            dz.log(tostring(str),level or dz.LOG_DEBUG)
        end
        
        
        local calorifero1p                  = dz.devices("Calorifero_Bagno_PT")   
        local calorifero_mans               = dz.devices("Calorifero_Bagno_Mansarda") 
        local vcm_1p                        = dz.devices("VCM_Piano_Terra")
        local vcm_mans                      = dz.devices("VCM_Mansarda")
        local PDC                           = dz.devices("PDC")
        local autoconsumo                   = dz.devices("Autoconsumo")
        local SCRIPT_PDC_VALVOLE            = dz.devices("SCRIPT_PDC_VALVOLE")
        local PDC_automation                = dz.devices("PDC automation")
        
       -- local isOffBlocked   = dz.variables("hotWaterThermostatControlled").value == "true"
        

    

        local function manageSwitches()
            if autoconsumo.value >= 2000 and calorifero1p.state == "On" and calorifero_mans.state == "On" then
                calorifero1p.swichOff()
                calorifero_mans.swichOff()
                vcm_1p.swichOff()
                vcm_mans.swichOff()
                
            
            --TURN ON PDC ( per vedere se c'è energia per accendere la pompa)
            PDC.switchOn().afterSec(10)
            SCRIPT_PDC_VALVOLE.switchOn()
            PDC_automation.switchOn()
            end
        end
        
        
    end
}
i do not understand here where i can put log statements to help me on underline why the code do not work as I expected.

I want that the code if find that the Selfconsumption energy is > 2000Watt and two devices are "On" (calorifero1p and alorifero_mans)
turn off a series of device:
calorifero1p.swichOff()
calorifero_mans.swichOff()
vcm_1p.swichOff()
vcm_mans.swichOff()
and turn on another couple of device:
PDC.switchOn().afterSec(10)
SCRIPT_PDC_VALVOLE.switchOn()
PDC_automation.switchOn()

thanks again for patience :-)
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Manage switch selector and using different selection on "if"

Post by waaren »

megamarco83 wrote: Sunday 19 January 2020 12:31 i do not understand here where i can put log statements to help me on underline why the code do not work as I expected.
It should not be that hard.

Everywhere in your code where you take a decision based on a state, level, temperature or any other attribute of a device, variable, group, etc..
you put a log line to let you see what the attribute's value is. Something like
dz.log('temperature of sensor is now ' .. sensorX.temperature, dz.LOG_DEBUG)
Then within a block you put something like dz.log('Hey I am now in if block 7', dz.LOG_DEBUG) or dz.log('Hey I am in the for loop at line XX', dz.LOG_DEBUG)

And just try with a test system or f you you don't have one try with dummy virtual sensors. You can set them to any value with the JSON/API calls described here
Remember. This is about home automation ! We are not controlling a nuclear power plant with domoticz so if it fails you learned something, you have not started worldwar III
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
megamarco83
Posts: 109
Joined: Friday 21 September 2018 15:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Manage switch selector and using different selection on "if"

Post by megamarco83 »

i think that the problem could be how i menage to extract with dzvent the value about the enery utility devices:

this part:
if autoconsumo.value >= 200

Code: Select all

-- script for winter opttimization

return {
       -- active = function(domoticz)
		--return domoticz.devices('OTTIMIZZA_INVERNO').state == 'On' -- Change this to your control switch name or id 
    --end,
    
    on          =   {   
                              
                        timer           =   { 'every 1 minutes at 11:00-15:30 '  }, --from 1 october to 1 april on 1/10-31/12,1/1-1/4
                    },
                     
    logging     =   { 
                        level   =  domoticz.LOG_DEBUG,   
                        marker  =  "OTTIMIZZAZIONE INVERNO"  
                    },    

    execute = function(dz, item)
  
        local function logWrite(str,level)
            dz.log(tostring(str),level or dz.LOG_DEBUG)
        end
        
        
        local calorifero1p                  = dz.devices("Calorifero_Bagno_PT")   
        local calorifero_mans               = dz.devices("Calorifero_Bagno_Mansarda") 
        local vcm_1p                        = dz.devices("VCM_Piano_Terra")
        local vcm_mans                      = dz.devices("VCM_Mansarda")
        local PDC                           = dz.devices("PDC")
        local autoconsumo                   = dz.devices("Autoconsumo")
        local SCRIPT_PDC_VALVOLE            = dz.devices("SCRIPT_PDC_VALVOLE")
        local PDC_automation                = dz.devices("PDC automation")
        
dz.log('AUTOCONSUMO = ' ..autoconsumo.value , dz.LOG_DEBUG)

        local function manageSwitches()
            if autoconsumo.value >= 200  and calorifero_mans.state == "On" then --and calorifero1p.state == "On"
                dz.log('AUTOCONSUMO = ' ..autoconsumo.value , dz.LOG_DEBUG) 
                dz.log('INSIDE IF', dz.LOG_DEBUG) 
                calorifero1p.swichOff()
                calorifero_mans.swichOff()
                dz.log('SWITCH OFF MANS', dz.LOG_DEBUG) 
                vcm_1p.swichOff()
                vcm_mans.swichOff()
                
            
            --TURN ON PDC ( per vedere se c'è energia per accendere la pompa)
            --PDC.switchOn().afterSec(10)
            SCRIPT_PDC_VALVOLE.switchOn()
            PDC_automation.switchOn()
            end
        end
        
        
    end
}

Code: Select all

 2020-01-19 14:44:00.612 Status: dzVents: Info: OTTIMIZZAZIONE INVERNO: ------ Start internal script: OTTIMIZZAZIONE INVERNO:, trigger: every 1 minutes at 11:00-15:30
2020-01-19 14:44:00.614 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for Calorifero_Bagno_PT: Switch device adapter
2020-01-19 14:44:00.617 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for Calorifero_Bagno_Mansarda: Switch device adapter
2020-01-19 14:44:00.621 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for VCM_Piano_Terra: Switch device adapter
2020-01-19 14:44:00.624 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for VCM_Mansarda: Switch device adapter
2020-01-19 14:44:00.626 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for PDC: Switch device adapter
2020-01-19 14:44:00.629 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for Autoconsumo: kWh device adapter
2020-01-19 14:44:00.633 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for PDC automation: Switch device adapter
2020-01-19 14:44:00.633 Status: dzVents: Error (2.4.19): OTTIMIZZAZIONE INVERNO: An error occured when calling event handler OTTIMIZZAZIONE INVERNO
2020-01-19 14:44:00.633 Status: dzVents: Error (2.4.19): OTTIMIZZAZIONE INVERNO: ...pts/dzVents/generated_scripts/OTTIMIZZAZIONE INVERNO.lua:34: attempt to concatenate field 'value' (a nil value)
2020-01-19 14:44:00.633 Status: dzVents: Info: OTTIMIZZAZIONE INVERNO: ------ Finished OTTIMIZZAZIONE INVERNO
if i understand correctly the log, the error is at line 34
that's the line where i placed my info :
dz.log('AUTOCONSUMO = ' ..autoconsumo.value , dz.LOG_DEBUG)
i search inside wiki or google how i have to take the instant value (3388) Watt about this device:
Screenshot_2020-01-19 Domoticz.png
Screenshot_2020-01-19 Domoticz.png (8.31 KiB) Viewed 1555 times
but i do not find, could be here the error?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Manage switch selector and using different selection on "if"

Post by waaren »

megamarco83 wrote: Sunday 19 January 2020 14:49 i think that the problem could be how i menage to extract with dzvent the value about the enery utility devices:
but i do not find, could be here the error?
value is not an attribute of a kWh device.
Available attributes for this type device are counterToday, usage, WhToday, WhTotal and WhActual
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
megamarco83
Posts: 109
Joined: Friday 21 September 2018 15:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Manage switch selector and using different selection on "if"

Post by megamarco83 »

waaren wrote: Sunday 19 January 2020 23:22 value is not an attribute of a kWh device.
Available attributes for this type device are counterToday, usage, WhToday, WhTotal and WhActual
thanks, i use usage and now i get the value.
but where i can find for every type of dummy devices whats the correct attribute that i can use inside dzvents?
if i'm not wrong i not find inside the wiki.

come back to my script, now i introduce the some log before if i verify the energy usage and the state of my device that are the checking part of my "iF"

it seams that the condition are true, but the script do not enter inside the "if"

Code: Select all

dz.log('AUTOCONSUMO = ' ..autoconsumo.usage , dz.LOG_DEBUG)
dz.log('state of calorifero_mans = ' ..calorifero_mans.state) 

        local function manageSwitches()
            if autoconsumo.usage >= 200  and calorifero_mans.state == "On" then --and calorifero1p.state == "On"
                dz.log('AUTOCONSUMO = ' ..autoconsumo.usage , dz.LOG_DEBUG) 
                dz.log('INSIDE IF', dz.LOG_DEBUG)

and if i look at the log:

Code: Select all

2020-01-20 09:54:00.475 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for PDC automation: Switch device adapter
2020-01-20 09:54:00.475 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: AUTOCONSUMO = 2242
2020-01-20 09:54:00.475 Status: dzVents: Info: OTTIMIZZAZIONE INVERNO: state of calorifero_mans = On
2020-01-20 09:54:00.475 Status: dzVents: Info: OTTIMIZZAZIONE INVERNO: ------ Finished OTTIMIZZAZIONE INVERNO
it show correct extraction of parameter "autoconsumo" and device state is On
but the script do no enter inside "if" otherwise i expect to read inside log the line: 'INSIDE IF'

here complete script and log

Code: Select all

-- script for winter opttimization

return {
       -- active = function(domoticz)
		--return domoticz.devices('OTTIMIZZA_INVERNO').state == 'On' -- Change this to your control switch name or id 
    --end,
    
    on          =   {   
                              
                        timer           =   { 'every 1 minutes at 9:00-15:30 '  }, --from 1 october to 1 april on 1/10-31/12,1/1-1/4
                    },
                     
    logging     =   { 
                        level   =  domoticz.LOG_DEBUG,   
                        marker  =  "OTTIMIZZAZIONE INVERNO"  
                    },    

    execute = function(dz, item)
  
        local function logWrite(str,level)
            dz.log(tostring(str),level or dz.LOG_DEBUG)
        end
        
        
        local calorifero1p                  = dz.devices("Calorifero_Bagno_PT")   
        local calorifero_mans               = dz.devices("Calorifero_Bagno_Mansarda") 
        local vcm_1p                        = dz.devices("VCM_Piano_Terra")
        local vcm_mans                      = dz.devices("VCM_Mansarda")
        local PDC                           = dz.devices("PDC")
        local autoconsumo                   = dz.devices("Autoconsumo")
        local SCRIPT_PDC_VALVOLE            = dz.devices("SCRIPT_PDC_VALVOLE")
        local PDC_automation                = dz.devices("PDC automation")
        
dz.log('AUTOCONSUMO = ' ..autoconsumo.usage , dz.LOG_DEBUG)
dz.log('state of calorifero_mans = ' ..calorifero_mans.state) 

        local function manageSwitches()
            if autoconsumo.usage >= 200  and calorifero_mans.state == "On" then --and calorifero1p.state == "On"
                dz.log('AUTOCONSUMO = ' ..autoconsumo.usage , dz.LOG_DEBUG) 
                dz.log('INSIDE IF', dz.LOG_DEBUG) 
                calorifero1p.swichOff()
                calorifero_mans.swichOff()
                dz.log('SWITCH OFF MANS', dz.LOG_DEBUG) 
                vcm_1p.swichOff()
                vcm_mans.swichOff()
                
            
            --TURN ON PDC ( per vedere se c'è energia per accendere la pompa)
            --PDC.switchOn().afterSec(10)
            SCRIPT_PDC_VALVOLE.switchOn()
            PDC_automation.switchOn()
            end
        end
        
        
    end
}

Code: Select all

 2020-01-20 09:54:00.458 Status: dzVents: Info: OTTIMIZZAZIONE INVERNO: ------ Start internal script: OTTIMIZZAZIONE INVERNO:, trigger: every 1 minutes at 9:00-15:30
2020-01-20 09:54:00.461 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for Calorifero_Bagno_PT: Switch device adapter
2020-01-20 09:54:00.464 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for Calorifero_Bagno_Mansarda: Switch device adapter
2020-01-20 09:54:00.466 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for VCM_Piano_Terra: Switch device adapter
2020-01-20 09:54:00.468 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for VCM_Mansarda: Switch device adapter
2020-01-20 09:54:00.471 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for PDC: Switch device adapter
2020-01-20 09:54:00.473 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for Autoconsumo: kWh device adapter
2020-01-20 09:54:00.475 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: Processing device-adapter for PDC automation: Switch device adapter
2020-01-20 09:54:00.475 Status: dzVents: Debug: OTTIMIZZAZIONE INVERNO: AUTOCONSUMO = 2242
2020-01-20 09:54:00.475 Status: dzVents: Info: OTTIMIZZAZIONE INVERNO: state of calorifero_mans = On
2020-01-20 09:54:00.475 Status: dzVents: Info: OTTIMIZZAZIONE INVERNO: ------ Finished OTTIMIZZAZIONE INVERNO 
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Manage switch selector and using different selection on "if"

Post by waaren »

megamarco83 wrote: Monday 20 January 2020 9:58 Were i can find for every type of dummy devices whats the correct attribute that i can use inside dzvents?
if i'm not wrong i not find inside the wiki.
Yes it is all in the wiki. use [ctrl f] to search and you will find this

Code: Select all

        local function manageSwitches()
The check for these conditions is inside a function and you do not call that function anywhere in your code.
Please try to understand how functions work in Lua / dzVents first. ( small steps :) )
This would be a good place to start. The relevant parts for your question are in
Defining a Function
and
Calling a Function
topics
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
megamarco83
Posts: 109
Joined: Friday 21 September 2018 15:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Manage switch selector and using different selection on "if"  [Solved]

Post by megamarco83 »

thanks so much for the help.
thanks to you now i create both my script and now they are working. I'm testing botth and till now they are working without issue :-)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest