Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Friendly Naming 1-Wire devices [SOLVED]

$
0
0

@stretch wrote:

I have 3x DS18B20 connected to my RPi 4. Home Assistant is in a Docker. Once I added platform: onewire to configuration.yaml and rebooted Home Assistant, they were detected automatically and appear on the home screen.


But I cannot add a friendly name to them. In the guide here, it mentions to add the device id and name to configuration.yaml
sensor:
  - platform: onewire
    names:
      GENERATED_ID: FRIENDLY_NAME

If I list the devices:

ls /sys/bus/w1/devices
28-000005dc1dff  28-000005dcfc5c  28-000005dd046b  w1_bus_master1

What I have tried

sensor:
  - platform: onewire
    names:
      sensor.28.000005dd046b_temperature: FRIENDLY_NAME1
      sensor.28.000005dcfc5c_temperature: FRIENDLY_NAME2
      sensor.28.000005dc1dff_temperature: FRIENDLY_NAME3

and

sensor:
  - platform: onewire
    names:
      sensor.28-000005dd046b_temperature: FRIENDLY_NAME1
      sensor.28-000005dcfc5c_temperature: FRIENDLY_NAME2
      sensor.28-000005dc1dff_temperature: FRIENDLY_NAME3

but neither will create a friendly name. What am I doing wrong? Must be something simple. I am new to Home Assistant.

EDIT: Figured it out:

sensor:
  - platform: onewire
    names:
      28-000005dd046b: FRIENDLY_NAME1
      28-000005dcfc5c: FRIENDLY_NAME2
      28-000005dc1dff: FRIENDLY_NAME3

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>