kalpcc
(Kenneth Lawrence)
January 31, 2018, 8:28pm
1
Hi.
How du I make my new Temp/Humidity sensor to show up in my Temperature and Humidity group?
In costomize.yaml I entered:
sensor.humidity_158d0001e798bb:
icon: mdi:water-percent
friendly_name: Køkken Humidity
sensor.sensor.temperature_158d0001e798bb:
icon: mdi:thermometer-lines
friendly_name: Køkken Temperature
I think I need to add the xaiomi sensor to sensors under configuration.yaml, but i cant seem to google the result I need
for mqtt the answer is:
platform: mqtt
name: “Kontor Temp.”
state_topic: “tele/kontorseng/SENSOR”
value_template: “{{ (float(value_json.DS18B20.Temperature) - 1.8) }}”
unit_of_measurement: “°C”
Any one who knows the answer for Xaiomi Temperature and humidity sensor??
Regards
Kenneth Lawrence
Here is how you add them to a group: Group - Home Assistant
You do not have to do that for the xiaomi sensor
kalpcc
(Kenneth Lawrence)
January 31, 2018, 10:38pm
3
Thanks.
The Friendly_name is not changing.
In my customize.yaml file I added:
sensor.humidity_158d0001e798bb:
icon: mdi:water-percent
friendly_name: Kitchen Humidity
sensor.sensor.temperature_158d0001e798bb:
icon: mdi:thermometer-lines
friendly_name: Kitchen Temperature
I did not do customize !include customize.yaml in the configuration.yaml. It seems that nobudy does.
and in my groups.yaml file I added this:(the friendly names dont show up as an entity)
temperatur:
name: Temperatur and Humidity
entities:
- sensor.kontor_temp
- sensor.stue_temp
- sensor.temperature_158d0001e798bb
- sensor.humidity_158d0001e798bb
This is what came out in HA:
How do I change the Xaiomi friendly_name?
Petrica
(PetricaM)
February 1, 2018, 12:45pm
4
hi @kalpcc
You need to include reference to customize.yaml in configuration.yaml (there are 2 spaces in front of customize). Anyway, the temp sensor name, if included as posted, is wrong (sensor.sensor…)
customize: !include customize.yaml
If you just want to test, then add the following in configuration.yaml (you can then move customize to separate file/folder to clear out main config file) - need to pay attention to number of spaces before customize (4):
customize:
sensor.temperature_158d0001e798bb:
icon: mdi:thermometer-lines
friendly_name: Kitchen Temperature
sensor.humidity_158d0001e798bb:
icon: mdi:water-percent
friendly_name: Kitchen Humidity
Also, see:
kalpcc
(Kenneth Lawrence)
February 1, 2018, 1:33pm
5
Well, it didnt change the friendly_name
Here is what i wrote:
Text to speech
tts:
platform: google
customize:
sensor.humidity_158d0001e798bb:
friendly_name: Kitchen Humidity
sensor.temperature_158d0001e798bb:
friendly_name: Kitchen Temperature
mqtt:
broker: 127.0.0.1
port: 1883
client_id: home-assistant-1
username: xxxx
password: xxxxxxxx
This is the entities list
And this is the output in HA:
I think your customize should not be indented like that unless it’s a TTS config item.
It should be in line with tts:
eg…
tts:
platform: google
customize:
sensor.humidity_158d0001e798bb:
friendly_name: "Freezer Humidity"
icon: mdi:water-percent
kalpcc
(Kenneth Lawrence)
February 1, 2018, 3:01pm
8
Ok Thanks for the help and time!!
I ended up doing it from the HA UI, and it worked
Here is what i did.
deliting the costomize.yaml file i made. HA makes a new one. (I hade to do a chmod 0777 costumize.yaml afte HA was done making the costumizing,
adding the line to configuration.yaml
custumize: !include customize.yaml
going to the Configuration UI in HA:
making the change and save.
And this is the result:
And this is how the HA build costumize.yaml looks like:
1 Like