Hi Guys,
Can someone see what is incorrect with the below? it will not compile.
compiled up to - pin: D7 and I got the address, after adding the other lines it refuses
Hi Guys,
Can someone see what is incorrect with the below? it will not compile.
compiled up to - pin: D7 and I got the address, after adding the other lines it refuses
Where did that code come from?! The dallas
section is smack in the middle of the sensor
section. Pull out the dallas:
and the - pin: D7
, and put them before the sensor:
declaration. Example from one of my units, to show how it should be laid out with other sensors:
dallas:
- pin: D7
update_interval: 60s
sensor:
- platform: pulse_counter
pin: D5
unit_of_measurement: 'kW'
name: 'Power Meter House'
filters:
- multiply: 0.06
id: house_power
device_class: power
- platform: total_daily_energy
name: "Total Daily Energy"
power_id: house_power
accuracy_decimals: 1
device_class: energy
- platform: dallas
address: 0xD201192706EC6E28
name: "Outside temperature 1"
filters:
sliding_window_moving_average:
window_size: 10
send_every: 2
device_class: temperature
Thanks so much