logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

ESP8266 with ESPEasy - summing flow from 3 meters on OLED

pabl0 1275 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18328108
    pabl0
    Level 10  
    Posts: 44
    Help: 1
    Rate: 1
    I have three water flow meters and an oled display hooked up to an ESP8266 from espeasy. I'm displaying the flow rate for each meter, and I'd also like to display the total. Do I need to harness 'rules' for this? Anyone have any suggestions?
  • ADVERTISEMENT
  • #2 18329980
    pabl0
    Level 10  
    Posts: 44
    Help: 1
    Rate: 1
    This I will answer for myself (and others)

    1) In Tool>Advanced select "Rules".
    2. add a "Generic - Dummy Device" named Oled_sum and in the Values section sum1
    3. in Rules add:
      On Clock#Time=All,**:** do
        TaskValueSet 6,1,[Flow1#Count]+[Flow2#Count]+[Flow3#Count]
      endon
    .
    4. in the display support add a new line:
    SUM  [Oled_sum#sum1]
    .
    5. be happy if it works :) .
ADVERTISEMENT