Je possède un Wemos D1 mini connecté à un BMP280. Je cherche à afficher sous Domoticz uniquement la valeur de pression.
J'ai donc crée un capteur virtuel Baro uniquement sous Domoticz et utilisé la rule ci-dessous sous ESP EASY :
Code : Tout sélectionner
On System#Boot do //When the ESP boots, do
timerSet,1,60 //Set Timer 1 for the next event in 60 seconds
endon
On Rules#Timer=1 do
SendToHTTP,192.168.0.10,8084,/json.htm?type=command¶m=udevice&idx=72&nvalue=0&svalue=[Barometer#Pressure]
timerSet,1,60 //Resets the Timer 1 for another 60 seconds
endon
-- Comment: Where Barometer is the name of the device and #Temperature and #Pressure are the valuenames
-- Above will send updates every 4 minutes, hench the timer setUne idée ?