logo elektroda
logo elektroda
X
logo elektroda

HC-SR04 configuration in ESPeasy - unstable % conversion

ryshard 588 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20910795
    ryshard
    Level 15  
    Hello I have an Espeasy uploaded on my ESP8266, to this I have 4 temperature sensors connected (Stove, boiler, floor and outside temperature).
    I have added the HC-SR04 distance sensor to the coal tank to the cooker. The sensor works, it shows the distance. 100 cm empty, 20 cm full. I added the formula -1.25*%value%+125.00 in espeasy so that it converts to percentages for me. 100cm - 0%, 20cm - 100%. The only thing is that once it returns the value to domoticz in cm, without converting with the formula, and once converted, so I have bushes and do not know how much carbon is left, because I do not know if it is in % or cm. After restarting esp8266, it gives in cm, it does not use a formula. When I enter the configuration via the web and click a bit it starts to convert to %. Where should I look for the cause? Maybe the fact that the formula starts with "-" makes the esp stupid?
  • ADVERTISEMENT
  • #2 20914553
    xury
    Automation specialist
    I let go of Espeasy ages ago because of surprises like this.
    What you can do:
    - switch to Tasmot
    - send to MQTT broker without formula and then in nodered convert the message to match domoticz
    - send without formula to domotiicz add another dummy sensor and parse through dzvent's, lua python etc.
ADVERTISEMENT