Skip to main content

New Page

I have  2 Shelly 1 (SHSW-1) is Gen1 with three temperature sensors

  1.  (Name: t1t2t3) Shelly 1 (SHSW-1) (T1, T2, T3)
  2. (Name: t4t5t6) Shelly 1 (SHSW-1) (T4, T5, T6)

And 2 Shelly Pro 4PM V1 (SPSW-004PE16EU)

  1. (Name: kos) Shelly Pro 4PM (Relay1: Pump Kos, Relay2: Solar Pump, Relay3: Valve Boiler, Relay4: Valve Kos)
  2. (Name: Gon) Shelly Pro 4PM (Relay1: Pump Gon, Relay2: Valve Gon, Relay3: Valve Solar Bypass, Relay4: Empty not used)

I want when the below functions (Control logic) with scripts

  1. I want a variable with a name 'heat' that i can change it from true to false, so if this 'heat=true' or 'heat=false' then we will use this variable as a logic to control the (Name: kos) Relay3: Valve Boiler
  2. I want another variable with the name 'znx' that i can change it from true to false, so if this 'znx=true' or 'znx=false' then we will use this variable also as a logic to control the (Name: kos) Relay3: Valve Boiler
  3. Control logic when (Name: kos) Shelly 4PM (Relay3: Valve Boiler) is OFF and when (Name: t1t2t3) Shelly1 (T1) equal or greater than 8 Celsius than (Name: t4t5t6) Shelly1 (T4). Then to turn ON (Name: kos) Shelly 4PM (Relay2: Solar Pump). 

  4. When (Name: Kos) Shelly 4PM (Relay3: Valve Boiler) is ON and when (Name: t1t2t3) Shelly1 (T1) equal or greater than 8 Celsius than (Name: t1t2t3) Shelly1 (T2). Then to turn ON (Name: kos) Shelly 4PM (Relay2: Solar Pump). 
    Example:
    (Scenario a) Relay3: Valve Boiler is OFF and T1 is 67 and T2 is 60 then Relay2: Solar Pump switch OFF.  (Only if it is ON)
    (Scenario b) When Relay3: Valve Boiler is OFF and T1 is 68 and T2 is 60 then Relay2: Solar Pump switch ON. (Only if it is OFF)
  5. When (Name: kos) Shelly 4PM (Relay3: Valve Boiler) is OFF and when (Name: t4t5t6) Shelly1 (T5) equal or greater than 60 Celsius than switch ON Relay3: Valve Boiler. (Only if it is OFF)
  6. When (Name: kos) Shelly 4PM (Relay3: Valve Boiler) is ON and  when (Name: t1t2t3) Shelly1 (T3) equal or greater than 60 Celsius Then to turn ON (Name: kos) Shelly 4PM (Relay1: Pump Kos, Relay4: Valve Kos) Then after 10 minutes Turn OFF Relay4: Valve Kos and after 13 minutes Turn OFF Relay1: Pump Kos)
    Example: 
    (Scenario a) Relay3: Valve Boiler is ON and T3 is 59.9 Celsius then switch OFF Relay4: Valve Kos and Relay1: Pump Kos (Only if they are ON)
    (Scenario b) Relay3: Valve Boiler is ON and T3 is 60 Celsius then switch ON Relay4: Valve Kos and Relay1: Pump Kos (Only if they are OFF). Explanation lets say you Turn ON the Relay4: Valve Kos and Relay1: Pump Kos at 11:00 then at 10:10 you will Turn OFF Relay4: Valve Kos and at 10:13 you will Turn OFF Relay1: Pump Kos.

Tell if this is possible with this devices and if YES then make code of what i ask you and also make me step by step instructions how i will do it.
Notice that Shelly 1 (SHSW-1) is Gen1 and Shelly Pro 4PM V1 (SPSW-004PE16EU)