rédiger en francais et traduit avec google.
write in french and translate with google.
Quand j'ai cette regle tout est OK
When I have this rule everything is OK
Code: Select all
on consigne_moins do
timerSet,4,1 //démarre un timer pour éviter des changements trop rapides
endon
on Rules#Timer=4 do
if [CONSIGNE#consigne]>=15.0
taskValueSet,5,1,[CONSIGNE#consigne]-0.5 //consigne - 0.5
else
taskValueSet,5,1,25
endif
SendToHTTP,192.168.1.145,6017,/json.htm?type=command¶m=setsetpoint&idx=69&setpoint=[CONSIGNE#consigne]
// event,maj_thermostat
//endon
//on maj_thermostat do
if [CONSIGNE#mode] = 1
config,task,THERMOSTAT,setLevel,0
elseif [CONSIGNE#mode] = 2
config,task,THERMOSTAT,setLevel,7
elseif [CONSIGNE#mode] = 3
config,task,THERMOSTAT,setLevel,[CONSIGNE#consigne]-2
elseif [CONSIGNE#mode] = 4
config,task,THERMOSTAT,setLevel,[CONSIGNE#consigne]
elseif [CONSIGNE#mode] = 5
config,task,THERMOSTAT,setLevel,[CONSIGNE#consigne]+2
endif
endon
When the "event, consignment_minus" command is executed, it is OK
Quand je la modifie comme ceci (suppression des signes commentaire)
When I edit it like this (remove comment signs)
Code: Select all
on consigne_moins do
timerSet,4,1 //démarre un timer pour éviter des changements trop rapides
endon
on Rules#Timer=4 do
if [CONSIGNE#consigne]>=15.0
taskValueSet,5,1,[CONSIGNE#consigne]-0.5 //consigne - 0.5
else
taskValueSet,5,1,25
endif
SendToHTTP,192.168.1.145,6017,/json.htm?type=command¶m=setsetpoint&idx=69&setpoint=[CONSIGNE#consigne]
event,maj_thermostat
endon
on maj_thermostat do
if [CONSIGNE#mode] = 1
config,task,THERMOSTAT,setLevel,0
elseif [CONSIGNE#mode] = 2
config,task,THERMOSTAT,setLevel,7
elseif [CONSIGNE#mode] = 3
config,task,THERMOSTAT,setLevel,[CONSIGNE#consigne]-2
elseif [CONSIGNE#mode] = 4
config,task,THERMOSTAT,setLevel,[CONSIGNE#consigne]
elseif [CONSIGNE#mode] = 5
config,task,THERMOSTAT,setLevel,[CONSIGNE#consigne]+2
endif
endon
When the "event, consignment_minus" command is performed, the Sonooff dual reboot and restarts in AP mode, I have this information on the serial port
Code: Select all
34712 : Info : WIFI : Disconnected! Reason: '(15) ' Connected for 11 s
34763 : Info : EVENT: WiFi#Disconnected
35630 : Info : WIFI : Start network scan
37816 : Info : IP : Static IP : 192.168.1.130 GW: 192.168.1.1 SN: 255.255.255.0 DNS: 192.168.1.1
37817 : Info : WIFI : Connecting SFR_2660 attempt #4
37830 : Info : WIFI : Scan finished, found: 7
37831 : Info : WIFI : Selected: SFR_2660 24:95:04:BA:26:64 Ch:1 (-73dBm) WPA/WPA2/PSK
38465 : Info : WD : Uptime 1 ConnectFailures 0 FreeMem 24608 WiFiStatus 6 ESPeasy internal wifi status: DISCONNECTED
Si j'execute avec le navigateur la commande "event,maj_thermostat" elle est exécutée normalement.
Le contrôle du Sonoff me permet de constater que sa config n'a pas changée à l'exception du mot de passe de connexion Wifi que je ne sais pas contrôler. Je le renseigne donc à nouveau. c'est après avoir renseigné le mdp Wifi, de très nombreuses fois, que le Sonoff se connecte au Wifi de la Box SFR.
Merci de votre aide
During a "" boot "command or a power on / off, the connection to Wifi is carried out normally.
If I run the "event, maj_thermostat" command with the browser, it is executed normally.
Checking the Sonoff allows me to see that its config has not changed except for the WiFi connection password which I cannot control. I therefore inform it again. it is after having informed the WiFi mdp, many times, that the Sonoff connects to the Wifi of the SFR Box.
Thank you for your help