homeassistant/packages/inside.yaml

28 lines
899 B
YAML

# {"Time":"2020-12-08T02:09:02","SI7021":{"Temperature":21.5,"Humidity":39.1,"DewPoint":6.9,"Pressure":906.5},"PressureUnit":"hPa","TempUnit":"C"}
homeassistant:
customize:
sensor.bme_inside_temperature:
friendly_name: 'Inside Temperature'
sensor:
- platform: mqtt
name: "inside_temperature"
state_topic: "tele/inside/SENSOR"
qos: 0
unit_of_measurement: "F"
value_template: "{{ '%.1f'%(value_json.SI7021.Temperature * 9 / 5 + 32 | float) }}"
- platform: mqtt
name: "inside_dew_point_temperature"
state_topic: "tele/inside/SENSOR"
qos: 0
unit_of_measurement: "F"
value_template: "{{ '%.1f'%(value_json.SI7021.DewPoint * 9 / 5 + 32 | float) }}"
- platform: mqtt
name: "inside_humidity"
state_topic: "tele/inside/SENSOR"
qos: 0
unit_of_measurement: "%"
value_template: "{{ '%.1f'%(value_json.SI7021.Humidity | float) }}"