homeassistant/packages/outside.yaml

58 lines
1.7 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_outside_temperature:
friendly_name: 'Outside Temperature'
sensor:
- platform: mqtt
name: "bme_outside_temperature"
state_topic: "tele/outside/SENSOR"
qos: 0
unit_of_measurement: "F"
value_template: "{{ value_json.BME280.Temperature * 9 / 5 + 32 }}"
- platform: mqtt
name: "bme_outside_dew_point_temperature"
state_topic: "tele/outside/SENSOR"
qos: 0
unit_of_measurement: "F"
value_template: "{{ value_json.BME280.DewPoint * 9 / 5 + 32 }}"
- platform: mqtt
name: "bme_outside_humidity"
state_topic: "tele/outside/SENSOR"
qos: 0
unit_of_measurement: "%"
value_template: "{{ value_json.BME280.Humidity }}"
- platform: mqtt
name: "bme_outside_barometric_pressure"
state_topic: "tele/outside/SENSOR"
qos: 0
unit_of_measurement: "inHg"
value_template: "{{ value_json.BME280.Pressure / 33.86 }}"
switch:
- platform: mqtt
name: "Outside North Circuit 1"
state_topic: "stat/outside/POWER1"
command_topic: "cmnd/outside/POWER1"
availability_topic: "tele/outside/LWT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: false
- platform: mqtt
name: "Outside North Circuit 2"
state_topic: "stat/outside/POWER2"
command_topic: "cmnd/outside/POWER2"
availability_topic: "tele/outside/LWT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: false