auto outtemp = id(solar_out).state;
auto intemp = id(solar_in).state;
- if (isnan(outtemp) || isnan(intemp))
+ if (isnan(outtemp) || isnan(intemp) || outtemp == 0.0 || intemp == 0.0)
return;
// We consumed this reading pair.
address: 0xd4030497940a0e28
name: "Solar in"
id: solar_in
+ filters:
+ filter_out: 0.0
on_value:
then:
lambda: |-
- id(solar_in_fails) = 0;
- id(tell_domo_svalue)->execute(507, std::to_string(x));
- id(control_valve)->execute();
+ if (x != 0.0) {
+ id(solar_in_fails) = 0;
+ id(tell_domo_svalue)->execute(507, std::to_string(x));
+ id(control_valve)->execute();
+ }
- platform: dallasng
address: 0xa0031397941af528
name: "Solar out"
id: solar_out
+ filters:
+ filter_out: 0.0
on_value:
then:
- lambda: |-
- id(solar_out_fails) = 0;
- id(tell_domo_svalue)->execute(508, std::to_string(x));
- id(control_valve)->execute();
+ if (x != 0.0) {
+ id(solar_out_fails) = 0;
+ id(tell_domo_svalue)->execute(508, std::to_string(x));
+ id(control_valve)->execute();
+ }
+
+ - platform: dallasng
+ address: 0x39666b9c1e64ff28
+ name: "Shed temperature"
+ id: shed_temp
# - platform: dallasng
# address: 0xc603156332b8ff28