Advertisement
Rus_Ti

My current Home Assistant Configuration.yaml file

Nov 9th, 2021
1,457
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. # Configure a default setup of Home Assistant (frontend, api, etc)
  3. default_config:
  4. http:
  5.   ssl_certificate: /ssl/fullchain.pem
  6.   ssl_key: /ssl/privkey.pem
  7.  
  8. # Text to speech
  9. tts:
  10.   - platform: google_translate
  11.  
  12. group: !include groups.yaml
  13. automation: !include automations.yaml
  14. script: !include scripts.yaml
  15. scene: !include scenes.yaml
  16.  
  17. homeassistant:
  18.   customize: !include customize.yaml
  19.   customize_glob:
  20.     sensor.solaredge_solar_power:
  21.       state_class: measurement
  22.     sensor.solaredge_storage_power:
  23.       state_class: measurement
  24.     sensor.solaredge_grid_power:
  25.       state_class: total_increasing
  26.     sensor.solaredge_imported_power:
  27.       state_class: total_increasing
  28.     sensor.solaredge_exported_power:
  29.       state_class: total_increasing
  30.     sensor.solaredge_production_power:
  31.       state_class: total_increasing
  32.     sensor.solaredge_energy_today:
  33.       state_class: total_increasing
  34.     sensor.solaredge_imported_power_template:
  35.       state_class: total_increasing
  36.     sensor.solaredge_exported_power_template:
  37.       state_class: total_increasing
  38.     sensor.solaredge_production_power_template:
  39.       state_class: total_increasing
  40.  
  41.  
  42. #######################################
  43. # Location Trackers - via Google Maps #
  44. #######################################
  45. device_tracker:
  46.   - platform: google_maps
  47.     username: <REDACTED>@gmail.com
  48.   - platform: ping
  49.     hosts:
  50.       rusti_phone: <REDACTED>
  51.       shirl_phone: <REDACTED>
  52. ######################
  53. # Proximity Trackers #
  54. ######################
  55. proximity:
  56.   rusti_home:
  57.     zone: home
  58.     devices:
  59.      - device_tracker.google_maps_<REDACTED>
  60.     tolerance: 50
  61.     unit_of_measurement: m
  62.   shirl_home:
  63.     zone: home
  64.     devices:
  65.    - device_tracker.google_maps_<REDACTED>
  66.     tolerance: 50
  67.     unit_of_measurement: m
  68.   gaetan_home:
  69.     zone: mum_dad_s
  70.     devices:
  71.    - device_tracker.google_maps_<REDACTED>
  72.     tolerance: 50
  73.     unit_of_measurement: m
  74.  
  75. sensor:
  76. ############################
  77. # Solar Stats in kWh       #
  78. ############################
  79.   - platform: template
  80.     sensors:
  81.       solaredge_energy_this_year_template:
  82.         value_template: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}"
  83.         device_class: energy
  84.         unit_of_measurement: kWh
  85.  
  86.       solaredge_energy_this_month_template:
  87.         value_template: "{{ (states('sensor.solaredge_energy_this_month') | float / 1000) | round(2) }}"
  88.         device_class: energy
  89.         unit_of_measurement: kWh
  90.  
  91.       solaredge_energy_today_template:
  92.         value_template: "{{ (states('sensor.solaredge_energy_today') | float / 1000) | round(2) }}"
  93.         device_class: energy
  94.         unit_of_measurement: kWh
  95.  
  96.       solaredge_lifetime_energy_template:
  97.         value_template: "{{ (states('sensor.solaredge_lifetime_energy') | float / 1000000) | round(2) }}"
  98.         device_class: energy
  99.         unit_of_measurement: MWh
  100.  
  101.       solaredge_solar_power_template:
  102.         value_template: "{{ (states('sensor.solaredge_solar_power') | float / 1) | round(2) }}"
  103.         device_class: energy
  104.         unit_of_measurement: kW
  105.  
  106.       solaredge_grid_power_template:
  107.         value_template: "{{ (states('sensor.solaredge_grid_power') | float / 1) | round(2) }}"
  108.         device_class: energy
  109.         unit_of_measurement: kW
  110.        
  111.       solaredge_storage_power_template:
  112.         value_template: "{{ (states('sensor.solaredge_storage_power') | float / 1) | round(2) }}"
  113.         device_class: energy
  114.         unit_of_measurement: kW
  115.  
  116.       solaredge_current_power_template:
  117.         value_template: "{{ (states('sensor.solaredge_current_power') | float / 1000) | round(2) }}"
  118.         device_class: energy
  119.         unit_of_measurement: kWh
  120.  
  121.       solaredge_exported_power_template:
  122.         value_template: "{{ (states('sensor.solaredge_exported_power') | float / 1000) | round(2) }}"
  123.         device_class: energy
  124.         unit_of_measurement: kWh
  125.  
  126.       solaredge_imported_power_template:
  127.         value_template: "{{ (states('sensor.solaredge_imported_power') | float / 1000) | round(2) }}"
  128.         device_class: energy
  129.         unit_of_measurement: kWh
  130.  
  131.       solaredge_production_power_template:
  132.         value_template: "{{ (states('sensor.solaredge_production_power') | float / 1000) | round(2) }}"
  133.         device_class: energy
  134.         unit_of_measurement: kWh
  135.  
  136.  
  137. #############################
  138. # HVAC State Sensors (MQTT) #
  139. #############################
  140. #HVAC MODE
  141.   - platform: mqtt
  142.     unique_id: hvac_mode
  143.     name: "HVAC Mode"
  144.     state_topic: Rinnai/hvac/mode/get
  145.     # value_template: >
  146.    #        {{ states('sensor.hvac_mode') | capitalize }}
  147.  
  148. #HVAC MODE ICON
  149.   - platform: mqtt
  150.     unique_id: hvac_mode_icon
  151.     name: "HVAC Mode Icon"
  152.     state_topic: Rinnai/hvac/mode/get
  153.  
  154. #HVAC CURRENT TEMPERATURE
  155.   - platform: mqtt
  156.     unique_id: hvac_current_temperature
  157.     name: "HVAC Current Temperature"
  158.     state_topic: Rinnai/hvac/current_temperature/get
  159.  
  160. #HVAC SET TEMPERATURE
  161.   - platform: mqtt
  162.     unique_id: hvac_set_temperature
  163.     name: "HVAC Set Temperature"
  164.     state_topic: Rinnai/hvac/temperature/get
  165.  
  166. #HVAC FAN SPEED
  167.   - platform: mqtt
  168.     unique_id: hvac_fan_speed
  169.     name: "HVAC Fan Speed"
  170.     state_topic: Rinnai/hvac/fan_mode/get
  171.  
  172. #HVAC ZONE STATUS
  173.   - platform: mqtt
  174.     unique_id: hvac_zone_a
  175.     name: "HVAC Zone A Status"
  176.     state_topic: "Rinnai/hvac/action/get"
  177.     value_template: "{{ value_json.A }}"
  178.   - platform: mqtt
  179.     unique_id: hvac_zone_b
  180.     name: "HVAC Zone B Status"
  181.     state_topic: "Rinnai/hvac/action/get"
  182.     value_template: "{{ value_json.B }}"
  183.   - platform: mqtt
  184.     unique_id: hvac_zone_C
  185.     name: "HVAC Zone C Status"
  186.     state_topic: "Rinnai/hvac/action/get"
  187.     value_template: "{{ value_json.C }}"
  188.  
  189. #HVAC WIFI MODULE STATUS
  190.   - platform: mqtt
  191.     unique_id: hvac_wifimodule_status
  192.     name: "HVAC WiFi Module Status"
  193.     state_topic: Rinnai/connection/status/get
  194.  
  195.  
  196. switch:
  197. ############################
  198. # HVAC Switch MQTT Buttons #
  199. ############################
  200. #HVAC ON OFF
  201. - platform: mqtt
  202.   unique_id: hvac_on_off
  203.   name: "HVAC On Off"
  204.   state_topic: Rinnai/hvac/mode/get
  205.   #value_template: {% if value == "fan_only" or value=="heat" or value=="cool" %}on{% endif %}
  206.   command_topic: Rinnai/hvac/mode/set
  207.   payload_on: "heat"
  208.   payload_off: "off"
  209.   optimistic: false
  210.   qos: 0
  211.   retain: true
  212.  
  213. #HEAT MODE
  214. - platform: mqtt
  215.   unique_id: hvac_heat_mode
  216.   name: "HVAC Heat Mode"
  217.   state_topic: Rinnai/switch/heat/get
  218.   command_topic: Rinnai/switch/heat/set
  219.   payload_on: "on"
  220.   payload_off: "off"
  221.   optimistic: false
  222.   qos: 0
  223.   retain: true
  224.  
  225. #COOL MODE
  226. - platform: mqtt
  227.   unique_id: hvac_cool_mode
  228.   name: "HVAC Cool Mode"
  229.   state_topic: Rinnai/switch/cool/get
  230.   #value_template: "{{ value_json }}"
  231.   command_topic: Rinnai/switch/cool/set
  232.   payload_on: "on"
  233.   payload_off: "off"
  234.   optimistic: false
  235.   qos: 0
  236.   retain: true
  237.  
  238. #FAN MODE
  239. - platform: mqtt
  240.   unique_id: hvac_fan_mode
  241.   name: "HVAC Fan Mode"
  242.   state_topic: Rinnai/switch/fan/get
  243.   #value_template: "{{ value_json }}"
  244.   command_topic: Rinnai/switch/fan/set
  245.   payload_on: "on"
  246.   payload_off: "off"
  247.   optimistic: false
  248.   qos: 0
  249.   retain: true
  250.  
  251. #MANUAL MODE
  252. - platform: mqtt
  253.   unique_id: hvac_manual_mode
  254.   name: "HVAC Manual Mode"
  255.   state_topic: Rinnai/switch/manual/get
  256.   #value_template: "{{ value_json }}"
  257.   command_topic: Rinnai/switch/manual/set
  258.   payload_on: "on"
  259.   payload_off: "off"
  260.   optimistic: false
  261.   qos: 0
  262.   retain: true
  263.  
  264. #ZONE A
  265. - platform: mqtt
  266.   unique_id: hvac_zone_a_switch
  267.   name: "HVAC Zone A Switch"
  268.   state_topic: Rinnai/switch/zone/a/get
  269.   #value_template: "{{ value_json }}"
  270.   command_topic: Rinnai/switch/zone/a/set
  271.   payload_on: "on"
  272.   payload_off: "off"
  273.   optimistic: false
  274.   qos: 0
  275.   retain: true
  276.  
  277. #ZONE B
  278. - platform: mqtt
  279.   unique_id: hvac_zone_b_switch
  280.   name: "HVAC Zone B Switch"
  281.   state_topic: Rinnai/switch/zone/b/get
  282.   #value_template: "{{ value_json }}"
  283.   command_topic: Rinnai/switch/zone/b/set
  284.   payload_on: "on"
  285.   payload_off: "off"
  286.   optimistic: false
  287.   qos: 0
  288.   retain: true
  289.  
  290. #ZONE C
  291. - platform: mqtt
  292.   unique_id: hvac_zone_c_switch
  293.   name: "HVAC Zone C Switch"
  294.   state_topic: Rinnai/switch/zone/c/get
  295.   #value_template: "{{ value_json }}"
  296.   command_topic: Rinnai/switch/zone/c/set
  297.   payload_on: "on"
  298.   payload_off: "off"
  299.   optimistic: false
  300.   qos: 0
  301.   retain: true
  302.  
  303. binary_sensor:
  304. ############################
  305. # HVAC Binary Sensors MQTT #
  306. ############################
  307.   - platform: mqtt
  308.     unique_id: hvac_on_off_sensor
  309.     name: "HVAC On Off Sensor"
  310.     state_topic: Rinnai/hvac/mode/get
  311.     payload_on: "heat"
  312.     payload_off: "off"
  313.     qos: 0
  314.  
  315.   - platform: mqtt
  316.     unique_id: hvac_heat_mode_sensor
  317.     name: "HVAC Heat Mode Sensor"
  318.     state_topic: Rinnai/switch/heat/get
  319.     payload_on: "on"
  320.     payload_off: "off"
  321.     qos: 0
  322.  
  323.   - platform: mqtt
  324.     unique_id: hvac_cool_mode_sensor
  325.     name: "HVAC Cool Mode Sensor"
  326.     state_topic: Rinnai/switch/cool/get
  327.     payload_on: "on"
  328.     payload_off: "off"
  329.     qos: 0
  330.  
  331.   - platform: mqtt
  332.     unique_id: hvac_fan_mode_sensor
  333.     name: "HVAC Fan Mode Sensor"
  334.     state_topic: Rinnai/switch/fan/get
  335.     payload_on: "on"
  336.     payload_off: "off"
  337.     qos: 0
  338.  
  339.   - platform: mqtt
  340.     unique_id: hvac_zone_a_sensor
  341.     name: "HVAC Zone A Sensor"
  342.     state_topic: Rinnai/switch/zone/a/get
  343.     payload_on: "on"
  344.     payload_off: "off"
  345.     qos: 0
  346.  
  347.   - platform: mqtt
  348.     unique_id: hvac_zone_b_sensor
  349.     name: "HVAC Zone B Sensor"
  350.     state_topic: Rinnai/switch/zone/b/get
  351.     payload_on: "on"
  352.     payload_off: "off"
  353.     qos: 0
  354.  
  355.   - platform: mqtt
  356.     unique_id: hvac_zone_c_sensor
  357.     name: "HVAC Zone C Sensor"
  358.     state_topic: Rinnai/switch/zone/c/get
  359.     payload_on: "on"
  360.     payload_off: "off"
  361.     qos: 0
  362.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement