All, I am very confused as to what actually needs command_line: and what does not, can anyone point me in the right direction?.
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
# Text to speech
tts:
- platform: google_translate
http:
use_x_forwarded_for: true
trusted_proxies:
- IP
group: !include groups.yaml
influxdb:
host: IP
port: 8086
database: database
username: username
password: password
max_retries: 3
default_measurement: state
############### LINKS TO COMMON ITEMS ########################
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
#alert: !include alerts.yaml
########################## MQTT SETUP ########################
mqtt:
sensor:
- name: "Garage Temp Sensor"
state_topic: "garage/sensor/temperature"
unit_of_measurement: "°C"
device_class: "temperature"
- name: "Sump Level Sensor"
state_topic: "sump/sensor/avglevel"
unit_of_measurement: "%"
- name: "HotTub Water Temp Sensor"
state_topic: "HotTub/Sensor/TempWater"
unit_of_measurement: "°C"
device_class: "temperature"
- name: "HotTub Cabinet Temp Sensor"
state_topic: "HotTub/Sensor/TempOutside"
unit_of_measurement: "°C"
device_class: "temperature"
- name: "HotTub PCB Temp Sensor"
state_topic: "HotTub/Sensor/TempBoard"
unit_of_measurement: "°C"
device_class: "temperature"
- name: "Energy Monitor AB"
state_topic: "EngergyMonitor/PowerTotalABkwh"
unit_of_measurement: "kWh"
device_class: "energy"
unique_id: energy_monitor_ab
state_class: total
- name: "Energy Monitor Max Current A"
state_topic: "EngergyMonitor/IrmsAdjAMax"
unit_of_measurement: "A"
device_class: "current"
- name: "Energy Monitor Max Current B"
state_topic: "EngergyMonitor/IrmsAdjBMax"
unit_of_measurement: "A"
device_class: "current"
- name: "Water Meter"
state_topic: "watermeter/sensor/total"
unit_of_measurement: "L"
device_class: "water"
unique_id: water_meter
state_class: total
############################### ALERTS #########################
#name after alert must be lower case
alert:
simple_garage_after_dark:
name: Garage Door Status
message: Garage door opened
done_message: Garage door closed
entity_id: binary_sensor.garage_door_sensor
state: "on"
repeat: 1 # This will repeat every 5 minutes
can_acknowledge: false
skip_first: False
notifiers:
- mobile_app_RK_12_2
- gmail #This is the "name" of the notification
garage_temp_sensor:
name: Garage Low Temperature
entity_id: binary_sensor.garage_temp_low
state: "on"
repeat: 5
skip_first: False
message: The garage temperature is low
done_message: The garage temperature has returned to normal
notifiers:
- mobile_app_RK_12_2
- gmail
sump_level_sensor:
name: Sump High Level
entity_id: binary_sensor.sump_level_high
state: "on"
repeat: 1
skip_first: False
message: The sump level is high
done_message: The sump level has dropped
notifiers:
- mobile_app_RK_12_2
- gmail
hottub_water_temp_sensor:
name: Hot Tub Low Temperature
entity_id: binary_sensor.hot_tub_temp_low
state: "on"
repeat: 1
skip_first: False
message: Hot Tub Temperature is Low
done_message: Hot Tub Temperature has Returned to Normal
notifiers:
- mobile_app_RK_12_2
- gmail
##################### Notification Setup for GMAIL/TEXT ##################
notify:
- name: gmail
platform: smtp
server: smtp.gmail.com
port: 587
timeout: 15
sender: sender
encryption: starttls
username: email
password: pass
recipient:
- email
- phone#@msg.telus.com
sender_name: Home Assistant
########################### TEMPLATES #########################################
template:
- binary_sensor:
- name: "Garage Temp Low"
state: "{{ states('sensor.garage_temp_sensor') | float(0) <= 10.0 and is_state('input_boolean.pause_alerts', 'off') }}"
- binary_sensor:
- name: "Sump Level High"
state: "{{ states('sensor.sump_level_sensor') | float(0) >= 75.1 }}"
- binary_sensor:
- name: "Hot Tub Temp Low"
#state: "{{ states('sensor.hottub_water_temp_sensor') | float(0) <= 30.0 }}"
state: "{{ states('sensor.hottub_water_temp_sensor') | float(0) <= states('input_number.hot_tub_low_temp_alarm_setpoint') | float(0) }}"
###################### INPUT BOOLEANS ##############################################
input_boolean:
pause_alerts:
name: pause alerts
icon: mdi:toggle-switch
########################### Sensors ###################
sensor:
- platform: systemmonitor
resources:
- type: processor_use
- type: disk_use_percent
arg: "/"
- type: disk_free
arg: "/"
- type: memory_use_percent
- type: network_in
arg: eth0
- type: throughput_network_in
arg: eth0
- type: network_out
arg: eth0
- type: throughput_network_out
arg: eth0
- type: processor_temperature
- type: last_boot
# OPTIONAL CPU Raspberry Pi Temp
- platform: command_line
name: CPU Temp
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(2) }}'
###### Utility Meter #######
utility_meter:
daily_energy:
source: sensor.energy_monitor_ab
cycle: daily
periodically_resetting: True
monthly_energy:
source: sensor.energy_monitor_ab
cycle: monthly
daily_water:
source: sensor.water_meter
cycle: daily