From c9f4c6469e5149b47dbb4577561be9e1a16db7ce Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Sat, 22 Jun 2024 14:14:08 +0200 Subject: [PATCH] Update dallas config to new format in 2024.06 --- bathroomheater.yaml | 7 ++++--- heating.yaml | 11 ++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/bathroomheater.yaml b/bathroomheater.yaml index b41bfe1..017efee 100644 --- a/bathroomheater.yaml +++ b/bathroomheater.yaml @@ -14,11 +14,12 @@ packages: device_base: !include templates/esp8266.yaml sensor: !include templates/esp8266-vcc.yaml -dallas: -- pin: D1 +one_wire: +- platform: gpio + pin: D1 sensor: -- platform: dallas +- platform: dallas_temp address: 0x0401212E565C7428 id: bathroom_heater_temperature diff --git a/heating.yaml b/heating.yaml index ffe7177..6b9ba06 100644 --- a/heating.yaml +++ b/heating.yaml @@ -84,23 +84,24 @@ display: it.circle(112, 16, 12); } -dallas: -- pin: GPIO27 +one_wire: +- platform: gpio + pin: GPIO27 sensor: -- platform: dallas +- platform: dallas_temp address: 0x133c2cf648f40728 id: boiler_temperature name: "Boiler temperature" filters: - offset: 0.5 -- platform: dallas +- platform: dallas_temp address: 0x4845b7211864ff28 id: hot_water_temperature name: "Hot water temperature" -- platform: dallas +- platform: dallas_temp address: 0x6a0316643959ff28 id: floor_temperature name: "Floor temperature"