time:
- platform: sntp
# ...
on_time:
- seconds: 0
minutes: 0
hours: 1
days_of_week: MON-SUN
then:
- take your readings
Like this? Sorry, haven’t used this code snipped before.
time:
- platform: sntp
# ...
on_time:
- seconds: 0
minutes: 0
hours: 1
days_of_week: MON-SUN
then:
sensor:
- platform: hx711
name: "CO2 Gewicht"
dout_pin: GPIO4
clk_pin: GPIO5
gain: 128
update_interval: 24h
unit_of_measurement: "kg"
icon: mdi:CO2
accuracy_decimals: 1
filters:
- calibrate_linear:
- -226659 -> 0
- -98208 -> 6.100
device_class: weight
No way. You can’t create a component inside another component.
Time is one component, sensor is another component.
Your sensor is missing id, set that first
In time component you can set:
then:
- component.update: id_of_my_component
and
in sensor component set
update_interval: never