Solved! Since update endless feedback loop of a switching command between ESP EASY and Domoticz
Posted: 28 Jun 2019, 17:25
In our laundry drying room in the basement i have an automatic control of the fan with a sensor (BME280). This is done by a rule in ESP EASY, which turns on a fan automatically when the humidity is above 49%. This switch state of this fan is visible on Domoticz and the fan could be switched also over Domoticz manually. This worked so far as desired by me.
Today I've made an update to ESP EASY Mega 20190626. Now is there a feedback loop between ESP EASY and Domoticz. As soon as I switch on or off the fan manually via Domoticz, ESP EASY immediately returns this switching command as a new switching state to Domoticz and ESP EASY immediately returns this switching state as a new switching state to Domoticz and so on. Also, an on/off delay brought no improvement.
How do I get back the previous state of the controller where my manual command does not trigger an endless feedback loop?
Today I've made an update to ESP EASY Mega 20190626. Now is there a feedback loop between ESP EASY and Domoticz. As soon as I switch on or off the fan manually via Domoticz, ESP EASY immediately returns this switching command as a new switching state to Domoticz and ESP EASY immediately returns this switching state as a new switching state to Domoticz and so on. Also, an on/off delay brought no improvement.
How do I get back the previous state of the controller where my manual command does not trigger an endless feedback loop?
Code: Select all
On System#Boot do
PCFGPIO,1,0
PCFGPIO,2,0
PCFGPIO,3,0
PCFGPIO,4,0
PCFGPIO,5,0
PCFGPIO,6,0
PCFGPIO,7,0
PCFGPIO,8,0
timerSet,1,60
endon
On Rules#Timer=1 do
//Taupunkt aussen (Berechnung unter 50% Feuchte falsch!)
TaskValueSet,9,1,[LAussenTemp#Temp]-(100-[LAussenTemp#Feuchte])/5
//Taupunkt innen (Berechnung unter 50% Feuchte falsch!)
TaskValueSet,9,2,[HeizTFD#Temp]-(100-[HeizTFD#Feuchte])/5
//Lüfter an
if [HeizLueft#LuefterH]=0 and [HeizTFD#Feuchte]>48 and [Taupunkt#TaupAussen]<[Taupunkt#TaupInnen]
PCFGPIO,1,1
endif
//Lüfter aus
if [HeizLueft#LuefterH]=1 and [HeizTFD#Feuchte]<44
PCFGPIO,1,0
endif
if [HeizLueft#LuefterH]=1 and [Taupunkt#TaupAussen]>[Taupunkt#TaupInnen]
PCFGPIO,1,0
endif
timerSet,1,300
endon
Code: Select all
2019-06-28 16:25:42.289 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:42.779 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:43.290 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:43.812 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:43.281 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:43.803 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:44.445 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:44.894 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:44.436 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:44.885 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:45.382 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:45.887 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:45.373 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:45.879 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:46.500 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:46.492 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:47.211 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:47.685 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:47.202 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:47.676 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:48.183 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:48.695 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:48.174 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:48.686 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:49.309 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:49.786 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:49.297 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:49.777 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:50.290 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:50.785 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:50.281 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:50.776 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:51.855 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:51.846 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:52.338 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:52.792 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:52.329 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:52.783 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:53.322 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:53.803 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:53.313 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:53.798 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:54.517 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:54.988 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:54.508 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:54.979 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:55.507 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:55.985 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:55.498 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:55.976 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:56.488 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:56.949 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:56.479 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:56.940 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:57.410 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:57.930 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:57.401 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:57.921 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:58.395 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:58.880 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:58.386 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:58.870 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:59.410 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:59.883 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:25:59.406 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:25:59.878 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:26:00.806 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:26:00.797 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:26:01.296 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:26:01.758 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:26:01.287 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:26:01.749 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:26:02.284 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:26:02.774 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:26:02.275 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:26:02.765 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:26:03.284 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:26:03.757 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:26:03.275 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:26:03.748 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)
2019-06-28 16:26:04.287 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:26:04.779 (Heizung) Light/Switch (Lüfter Heizraum (>49% Feuchte))
2019-06-28 16:26:04.278 Status: User: Admin initiated a switch command (40/Lüfter Heizraum (>49% Feuchte)/Off)