homeassistant/packages/inside.yaml

34 lines
1.1 KiB
YAML

# {"Time":"2020-12-08T02:09:02","BME280":{"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: "bme_inside_temperature"
state_topic: "temp/inside/SENSOR"
qos: 0
unit_of_measurement: "F"
value_template: "{{ value_json.BME280.Temperature * 9 / 5 + 32 | round(1) }}"
- platform: mqtt
name: "bme_inside_dew_point_temperature"
state_topic: "temp/inside/SENSOR"
qos: 0
unit_of_measurement: "F"
value_template: "{{ value_json.BME280.DewPoint * 9 / 5 + 32 | round(1) }}"
- platform: mqtt
name: "bme_inside_humidity"
state_topic: "temp/inside/SENSOR"
qos: 0
unit_of_measurement: "%"
value_template: "{{ value_json.BME280.Humidity | round(1) }}"
- platform: mqtt
name: "bme_inside_barometric_pressure"
state_topic: "temp/inside/SENSOR"
qos: 0
unit_of_measurement: "inHg"
value_template: "{{ value_json.BME280.Pressure / 33.86 | round(2) }}"