I have difficulty to understand how the Onewire configuration is done.
My setup is basically working: I see the correct temperatures in the dashboard.
As I have several sensors, I would like to get them with a meaningful name…
So what exactly should be put in the configuration:
# Example configuration.yaml entry
sensor:
- platform: onewire
names:
some_id: your name
What is “some_id”?
What characters can I use for “your name”?
Is “your name” the same as the friendly_name from the customize section?
I’m guessing here but… some_id is the entity_id as seen in the states tab for each of your onewire sensors and ‘your name’ is the name that you want the sensor to have.
EDIT: from the component onewire sensor…
# Example configuration.yaml entry
sensor:
- platform: onewire
names:
some_id: your name
Configuration variables:
names array (Optional): ID and friendly name of your sensors.
sensor.282636f8010000_temperature 15.0 unit_of_measurement: °C
friendly_name: 28.2636F8010000 Temperature
sensor.287167f4040000_temperature 46.4 unit_of_measurement: °C
friendly_name: 28.7167F4040000 Temperature
sensor.288b76f4040000_temperature 58.8 unit_of_measurement: °C
friendly_name: 28.8B76F4040000 Temperature
sensor.28ca68f4040000_temperature 38.4 unit_of_measurement: °C
friendly_name: 28.CA68F4040000 Temperature
sensor.28eb0c21020000_temperature 16.1 unit_of_measurement: °C
friendly_name: 28.EB0C21020000 Temperature
sensor.28ff3c5d621403_temperature 40.5 unit_of_measurement: °C
friendly_name: 28.FF3C5D621403 Temperature
sensor.28ff667e641401_temperature 18.9 unit_of_measurement: °C
friendly_name: 28.FF667E641401 Temperature
b) Optional customize.yaml, as defined with configurator to get friendly UI names. If this is not defined, you have also “quite friendly” names from the defined ID-s above.
I have the 1-wire sensors connected to i2c adapter board and the only way to get the names section working was to use exactly the same names that appear in the file system, e.g.:
ls -1 /mnt/1wire/
10.2F1080000800
10.9E1280000800
10.BBFA7F000800
10.DFF27F000800
10.ECFB7F000800
10.F30580000800
alarm
bus.0
settings
simultaneous
statistics
structure
system
uncached