Hi Guys,
i’m gettting errors while uploading some code to a WEMOS mini for a watermeter.
It keeps saying i’m missing some platforms. Can someone help me out here. Thanks in advance.
LOGS:
INFO Reading configuration /config/esphome/esphome-web-55b508.yaml…
Failed configtime.pulse_counter: [source /config/esphome/esphome-web-55b508.yaml:77]
Platform not found: ‘time.pulse_counter’.
platform: pulse_counter
pin: D2
id: watermeter_pulse
name: Watermeter pulse
state_class: measurement
update_interval: 1s
unit_of_measurement: L
accuracy_decimals: 1
filters:
lambda: return x * ((60.0 / 1000.0) * 1000.0);
total:
id: sensor_pulse_meter_total
name: Watermeter Totaal
icon: mdi:cube-outline
state_class: total_increasing
unit_of_measurement: L
accuracy_decimals: 3
filters:
- multiply: 0.001
time.template: [source /config/esphome/esphome-web-55b508.yaml:101]Platform not found: ‘time.template’.
platform: template
id: watermeter_total
name: Watermeter stand
state_class: total_increasing
icon: mdi:water
update_interval: 1s
unit_of_measurement: m³
accuracy_decimals: 3
lambda: |-
if (id(watermeter_pulse).state >= 1) {
id(totalWaterUsage) += 0.001;
}
return id(totalWaterUsage);
time.uptime: [source /config/esphome/esphome-web-55b508.yaml:117]Platform not found: ‘time.uptime’.
platform: uptime
id: S0tool_uptime
time.template: [source /config/esphome/esphome-web-55b508.yaml:120]Platform not found: ‘time.template’.
platform: template
id: S0tool_uptime_timestamp
name: online sinds
device_class: timestamp
accuracy_decimals: 0
update_interval: never
lambda: |-
static float timestamp = (
id(time_homeassistant).utcnow().timestamp - id(S0tool_uptime).state
);
return timestamp;