sensor:
+ - platform: template
+ id: hx711_90m_max
+ unit_of_measurement: kg
+ filters:
+ - max:
+ window_size: 90
+ send_every: 1
+ send_first_at: 1
+ on_value:
+ then:
+ lambda: |-
+ if (!isnan(x))
+ id(tell_domo_svalue)->execute(914, std::to_string(x));
+
- platform: hx711
dout_pin:
number: GPIO2 # Orange
pullup: true
clk_pin: GPIO1 # Yellow
gain: 128
- update_interval: 30s
+ update_interval: 60s
name: "HX711 value"
filters:
- calibrate_linear:
lambda: |-
if (!isnan(x))
id(tell_domo_svalue)->execute(524, std::to_string(x));
+ id(hx711_90m_max).publish_state(x - 50);