Hello, anybody already use this think?
I have a code, but only the flux part is working, the temperature is not uploading…
here is the és-home code:
sensor:
-
platform: pulse_counter
id: water_pulse
pin: GPIO5
internal: true
name: “Pulse Counter”
update_interval: 1s
filters:- lambda: |-
static float total_pulse = 0.0;
total_pulse += x * 1 / 60.0;
id(lifetime_counter).publish_state(total_pulse / 605);
return x ;
- lambda: |-
-
platform: template
id: lifetime_counter
name: “Consumo de Água”
unit_of_measurement: “L”
icon: “mdi:waves-arrow-right”
accuracy_decimals: 1 -
platform: template
name: “Fluxo de Vazão”
id: water_flow_rate
accuracy_decimals: 1
unit_of_measurement: “L/min”
icon: “mdi:water”
lambda: return (id(water_pulse).state / 605); -
platform: ntc
id: temperature_sensor
sensor: resistance_sensor
calibration:- 85.9570kOhm → 44.9°C
- 152.4984kOhm → 27.8°C
- 281.0050kOhm → 12.8°C
name: Temperatura da Água
filters: - median:
window_size: 7
send_every: 4
send_first_at: 3
unit_of_measurement: “°C”
accuracy_decimals: 1
device_class: temperature
state_class: measurement
if a take off the platform: ntc, the file upload to my esp8266, but if the npc part, it’s not!!
Somebody can help me??