Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. return {
  2. active = true,
  3. on = {
  4. devices = {
  5. 'Pompa_Solar',
  6. 'Temperatura_Boiler_CWU',
  7. 'Temperatura_Solar'
  8. }
  9. },
  10. execute = function(domoticz, Pompa_Solar)
  11. if ((domoticz.devices('Temperatura_Solar').temperature ) > (domoticz.devices('Temperatura_Boiler_CWU').temperature +10)) then
  12. domoticz.devices('Pompa_Solar').switchOn()
  13. else
  14. domoticz.devices('Pompa_Solar').switchOff()
  15.  
  16. end
  17. end
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement