Hi all,
I did a bit of trawling and could not find answer but apologies if I missed something that should have been obvious.
I have an old raspberry pi 2 that I have connected to 12 or so temp sensors using 1-wire. At moment I have written a python script that polls every minute and updates dummy devices in domoticz with the values.
I am trying to replicate this in HASS with mixed results. This is what I have tried -
sensor:
- platform: template
sensors:
playroom:
friendly_name: "Playroom"
unit_of_measurement: '°C'
icon_template: "mdi:thermometer"
value_template: "{{ state_attr('value') }}"
hall:
friendly_name: "Hall"
unit_of_measurement: '°C'
icon_template: "mdi:thermometer"
value_template: "{{ state_attr('value') }}"
back_bedroom:
friendly_name: "Back bedroom"
unit_of_measurement: '°C'
icon_template: "mdi:thermometer"
value_template: "{{ state_attr('value') }}"
sun_room:
friendly_name: "Sun Room"
unit_of_measurement: '°C'
icon_template: "mdi:thermometer"
value_template: "{{ state_attr('value') }}"
[..]
I then use a python script to send the values to HAAS as I did for domoticz. I end up with :
Is this how it should look? Also can I assign entity_ids to them? Is there a way to show the “C” or some other way to make apparent it is a temp? And is there a way to color code based on temp ranges?
Thanks!