2021-01-01 11:00:49 -08:00
|
|
|
# {"Time":"2020-12-08T02:09:02","BME280":{"Temperature":21.5,"Humidity":39.1,"DewPoint":6.9,"Pressure":906.5},"PressureUnit":"hPa","TempUnit":"C"}
|
2021-01-21 10:40:53 -08:00
|
|
|
# homeassistant:
|
|
|
|
# customize:
|
|
|
|
# sensor.stone_room_temperature:
|
|
|
|
# friendly_name: 'Stone Room Temperature'
|
|
|
|
# sensor.stone_room_dew_point_temperature:
|
|
|
|
# friendly_name: 'Stone Room Dew Point Temperature'
|
|
|
|
# sensor.stone_room_humidity:
|
|
|
|
# friendly_name: 'Stone Room Humidity'
|
2021-01-01 11:00:49 -08:00
|
|
|
|
2021-01-21 10:40:53 -08:00
|
|
|
# input_number:
|
|
|
|
# stone_room_min_temp:
|
|
|
|
# name: 'Stone Room Minimum Set Temperature'
|
|
|
|
# min: 34
|
|
|
|
# max: 50
|
|
|
|
# step: 1
|
2021-01-01 11:00:49 -08:00
|
|
|
|
|
|
|
sensor:
|
|
|
|
- platform: mqtt
|
2021-01-21 10:40:53 -08:00
|
|
|
name: "Stone Room Temperature"
|
2021-01-01 11:00:49 -08:00
|
|
|
state_topic: "tele/stone/SENSOR"
|
|
|
|
qos: 0
|
|
|
|
unit_of_measurement: "F"
|
|
|
|
value_template: "{{ '%.1f'%(value_json.DHT12.Temperature * 9 / 5 + 32 | float) }}"
|
|
|
|
- platform: mqtt
|
2021-01-21 10:40:53 -08:00
|
|
|
name: "Stone Room Dew Point Temperature"
|
2021-01-01 11:00:49 -08:00
|
|
|
state_topic: "tele/stone/SENSOR"
|
|
|
|
qos: 0
|
|
|
|
unit_of_measurement: "F"
|
|
|
|
value_template: "{{ '%.1f'%(value_json.DHT12.DewPoint * 9 / 5 + 32 | float) }}"
|
|
|
|
- platform: mqtt
|
2021-01-21 10:40:53 -08:00
|
|
|
name: "Stone Room Humidity"
|
2021-01-01 11:00:49 -08:00
|
|
|
state_topic: "tele/stone/SENSOR"
|
|
|
|
qos: 0
|
|
|
|
unit_of_measurement: "%"
|
|
|
|
value_template: "{{ '%.1f'%(value_json.DHT12.Humidity | float) }}"
|
|
|
|
|
|
|
|
switch:
|
|
|
|
- platform: mqtt
|
2021-01-21 10:40:53 -08:00
|
|
|
name: "Stone Room Heater"
|
|
|
|
state_topic: "stat/stone/POWER"
|
|
|
|
command_topic: "cmnd/stone/POWER"
|
2021-01-01 11:00:49 -08:00
|
|
|
availability_topic: "tele/stone/LWT"
|
|
|
|
qos: 1
|
|
|
|
payload_on: "ON"
|
|
|
|
payload_off: "OFF"
|
|
|
|
payload_available: "Online"
|
|
|
|
payload_not_available: "Offline"
|
|
|
|
retain: false
|
|
|
|
|
|
|
|
|
2021-01-21 10:40:53 -08:00
|
|
|
climate:
|
|
|
|
- platform: generic_thermostat
|
|
|
|
name: "Stone Room Thermostat"
|
|
|
|
heater: switch.stone_room_heater
|
|
|
|
target_sensor: sensor.stone_room_temperature
|
|
|
|
min_temp: 35
|
|
|
|
max_temp: 50
|
|
|
|
ac_mode: false
|
|
|
|
# target_temp: 17
|
|
|
|
# cold_tolerance: 0.3
|
|
|
|
# hot_tolerance: 0
|
|
|
|
min_cycle_duration:
|
|
|
|
seconds: 5
|
|
|
|
keep_alive:
|
|
|
|
minutes: 3
|
|
|
|
# initial_hvac_mode: "on"
|
|
|
|
# away_temp: 16
|
|
|
|
precision: 0.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# automation:
|
|
|
|
# - alias: Stone Room Heating On
|
|
|
|
# trigger:
|
|
|
|
# platform: state
|
|
|
|
# entity_id: sensor.stone_room_temperature
|
|
|
|
# below: "{{ states('input_number.stone_room_min_temp') | int }}"
|
|
|
|
# # for:
|
|
|
|
# # minutes: 5
|
|
|
|
# action:
|
|
|
|
# - service: switch.turn_on
|
|
|
|
# entity_id: switch.stone_room_heating
|
|
|
|
# - service: notify.pushsafer
|
|
|
|
# data:
|
|
|
|
# title: "Stone Room Heating On"
|
|
|
|
# message: "Stone Room Heater Has Turned on"
|
|
|
|
# target: ["26583"]
|
|
|
|
# data:
|
|
|
|
# icon: "20"
|
|
|
|
# iconcolor: "#FF00FF"
|
|
|
|
# sound: "33"
|
|
|
|
# vibration: "0"
|
|
|
|
# url: "https://ha.238.kebler.net/"
|
|
|
|
# urltitle: "Open Home Assistant"
|
|
|
|
# time2live: "10"
|
|
|
|
# priority: "2"
|
|
|
|
# retry: "60"
|
|
|
|
# expire: "600"
|
|
|
|
# answer: "1"
|
|
|
|
|
|
|
|
# - alias: Stone Room Heating Off
|
|
|
|
# trigger:
|
|
|
|
# platform: state
|
|
|
|
# entity_id: sensor.stone_room_temperature
|
|
|
|
# above: "{{ states('input_number.stone_room_min_temp') + 3 | int }}"
|
|
|
|
# for:
|
|
|
|
# minutes: 5
|
|
|
|
# action:
|
|
|
|
# - service: switch.turn_off
|
|
|
|
# entity_id: switch.stone_room_heating
|
|
|
|
# - service: notify.pushsafer
|
|
|
|
# data:
|
|
|
|
# title: "Stone Room Heating Off"
|
|
|
|
# message: "Stone Room Heater Has Turned Off"
|
|
|
|
# target: ["26583"]
|
|
|
|
# data:
|
|
|
|
# icon: "20"
|
|
|
|
# iconcolor: "#FF00FF"
|
|
|
|
# sound: "33"
|
|
|
|
# vibration: "0"
|
|
|
|
# url: "https://ha.238.kebler.net/"
|
|
|
|
# urltitle: "Open Home Assistant"
|
|
|
|
# time2live: "10"
|
|
|
|
# priority: "2"
|
|
|
|
# retry: "60"
|
|
|
|
# expire: "600"
|
|
|
|
# answer: "1"
|