Umbys
(Umberto)
June 28, 2019, 10:17am
1
I have recently reconfigured my raspberry pi 3, with python 3.7.3. I recompiled my configuration.yaml file with all the devices I had. When I verify the configuration, Home Assistant (Ver. 0.95.0) gives me this error:
Error loading /home/homeassistant/.homeassistant/configuration.yaml: The configuration file configuration.yaml does not contain a dictionary
What is missing from my configuration?
tom_l
June 28, 2019, 11:18am
2
Post your correctly formatted config or it’s difficult to help.
Umbys
(Umberto)
June 28, 2019, 12:21pm
4
Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
Uncomment this if you are using SSL/TLS, running in Docker container, etc.
http:
base_url: xxxxxxxxxxxxxxxxxxxx:xxxx
#########################################
mqtt:
broker: 127.0.0.1
port: xxxx
client_id: xxxxxxxxxxxxxxxxxxxx
keepalive: 60
discovery: false
discovery_prefix: xxxxxxxxxxxxxxxxxxxx
#########################################
Sensors
- Weather prediction
###################################################################################################################
###################################################################################################################
######### Configurazione Sonoff TH16 Rel ##########
Balcone Sala
platform: mqtt
name: “Luce Balcone Sala”
unique_id: “01”
command_topic: “cmnd/SONOFF_TH_FIN_SALA/POWER”
state_topic: “stat/SONOFF_TH_FIN_SALA/POWER”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
Balcone Cucina
platform: mqtt
name: “Luce Balcone Cucina”
unique_id: “02”
command_topic: “cmnd/SONOFF_TH_FIN_CUCINA/POWER”
state_topic: “stat/SONOFF_TH_FIN_CUCINA/POWER”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
Balcone Cameretta
platform: mqtt
name: “Luce Balcone Cameretta”
unique_id: “03”
command_topic: “cmnd/SONOFF_TH_FIN_CAMERETTA/POWER”
state_topic: “stat/SONOFF_TH_FIN_CAMERETTA/POWER”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
Balcone Camera
platform: mqtt
name: “Luce Balcone Camera”
unique_id: “04”
command_topic: “cmnd/SONOFF_TH_FIN_CAMERA/POWER”
state_topic: “stat/SONOFF_TH_FIN_CAMERA/POWER”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
Comando Caldaia Termosifoni
platform: mqtt
name: “Comando Termosifoni”
unique_id: “05”
command_topic: “cmnd/SONOFF_TH_FIN_CALDAIA/POWER”
state_topic: “stat/SONOFF_TH_FIN_CALDAIA/POWER”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
########## Configurazione Sonoff Dual R2 ###########
Serranda Sala - Apre
platform: mqtt
name: “Apri Serranda Sala”
unique_id: “06”
command_topic: “cmnd/SONOFF_SER_SALA/POWER1”
state_topic: “stat/SONOFF_SER_SALA/POWER1”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
Serranda Sala - Chiude
platform: mqtt
name: “Chiudi Serranda Sala”
unique_id: “07”
command_topic: “cmnd/SONOFF_SER_SALA/POWER2”
state_topic: “stat/SONOFF_SER_SALA/POWER2”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
Serranda Cucina - Apre
platform: mqtt
name: “Apri Serranda Cucina”
unique_id: “08”
command_topic: “cmnd/SONOFF_SER_CUCINA/POWER1”
state_topic: “stat/SONOFF_SER_CUCINA/POWER1”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
Serranda Cucina - Chiude
platform: mqtt
name: “Chiudi Serranda Cucina”
unique_id: “09”
command_topic: “cmnd/SONOFF_SER_CUCINA/POWER2”
state_topic: “stat/SONOFF_SER_CUCINA/POWER2”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
Configurazione Sonoff Ch4 Pro R2 CAMERETTA
CH1 - Apri Serranda DX Cameretta
platform: mqtt
name: “Apri Serranda DX Cameretta”
unique_id: “10”
command_topic: “cmnd/SONOFF_SER_CAMERETTA/POWER1”
state_topic: “stat/SONOFF_SER_CAMERETTA/POWER1”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
CH2 - Chiudi Serranda DX Cameretta
platform: mqtt
name: “Chiudi Serranda DX Cameretta”
unique_id: “11”
command_topic: “cmnd/SONOFF_SER_CAMERETTA/POWER2”
state_topic: “stat/SONOFF_SER_CAMERETTA/POWER2”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
CH3 - Apre Serranda SX Cameretta
platform: mqtt
name: “Apri Serranda SX Cameretta”
unique_id: “12”
command_topic: “cmnd/SONOFF_SER_CAMERETTA/POWER3”
state_topic: “stat/SONOFF_SER_CAMERETTA/POWER3”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
CH4 - Chiude Serranda SX Cameretta
platform: mqtt
name: “Chiudi Serranda SX Cameretta”
unique_id: “13”
command_topic: “cmnd/SONOFF_SER_CAMERETTA/POWER4”
state_topic: “stat/SONOFF_SER_CAMERETTA/POWER4”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
Configurazione Sonoff Ch4 Pro R2 CAMERA da LETTO
CH1 - Apre Serranda DX Camera
platform: mqtt
name: “Apri Serranda DX Camera”
unique_id: “14”
command_topic: “cmnd/SONOFF_SER_CAMERA/POWER1”
state_topic: “stat/SONOFF_SER_CAMERA/POWER1”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
CH2 - Chiude Serranda DX Camera
platform: mqtt
name: “Chiudi Serranda DX Camera”
unique_id: “15”
command_topic: “cmnd/SONOFF_SER_CAMERA/POWER2”
state_topic: “stat/SONOFF_SER_CAMERA/POWER2”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
CH3 - Apre Serranda SX Camera
platform: mqtt
name: “Apri Serranda SX Camera”
unique_id: “16”
command_topic: “cmnd/SONOFF_SER_CAMERA/POWER3”
state_topic: “stat/SONOFF_SER_CAMERA/POWER3”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
CH4 - Chiude Serranda SX Camera
platform: mqtt
name: “Chiudi Serranda SX Camera”
unique_id: “17”
command_topic: “cmnd/SONOFF_SER_CAMERA/POWER4”
state_topic: “stat/SONOFF_SER_CAMERA/POWER4”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
################# Sonoff POR R2 #######################
platform: mqtt
name: “Data aggiornamento”
state_topic: “tele/SONOFF_POW/SENSOR”
value_template: “{{value_json[‘ENERGY’].TotalStartTime }}”
qos: 1
unit_of_measurement : “Date”
platform: mqtt
name: “Assorbimento TOTALE”
state_topic: “tele/SONOFF_POW/SENSOR”
value_template: “{{value_json[‘ENERGY’].Total }}”
qos: 1
unit_of_measurement : “kWh”
platform: mqtt
name: “Assorbimento ieri”
state_topic: “tele/SONOFF_POW/SENSOR”
value_template: “{{value_json[‘ENERGY’].Yesterday }}”
qos: 1
unit_of_measurement : “kWh”
platform: mqtt
name: “Assorbimento oggi”
state_topic: “tele/SONOFF_POW/SENSOR”
value_template: “{{value_json[‘ENERGY’].Today }}”
unit_of_measurement: “kWh”
platform: mqtt
name: “Assorbimento da ultima lettura”
state_topic: “tele/SONOFF_POW/SENSOR”
value_template: “{{value_json[‘ENERGY’].Period }}”
unit_of_measurement: “kWh”
platform: mqtt
name: “Assorbimento istantaneo”
state_topic: “tele/SONOFF_POW/SENSOR”
value_template: “{{value_json[‘ENERGY’].Power }}”
unit_of_measurement: “Watt”
platform: mqtt
name: “Voltampere”
state_topic: “tele/SONOF_POW/SENSOR”
value_template: “{{value_json[‘ENERGY’].ApparentPower }}”
unit_of_measurement: “Watt”
platform: mqtt
name: “Voltampere reattivo”
state_topic: “tele/SONOFF_POW/SENSOR”
value_template: “{{value_json[‘ENERGY’].ReactivePower }}”
unit_of_measurement: “Watt”
platform: mqtt
name: “Voltaggio”
state_topic: “tele/SONOFF_POW/SENSOR”
value_template: “{{value_json[‘ENERGY’].Voltage }}”
unit_of_measurement: “Volt”
platform: mqtt
name: “Amperaggio”
state_topic: “tele/SONOFF_POW/SENSOR”
value_template: “{{value_json[‘ENERGY’].Current }}”
unit_of_measurement: “Ampere”
############## Sonoff Sensori Temperatura e Umidità ##############
platform: mqtt
name: “Temperatura Sala da Pranzo”
unique_id: “20”
state_topic: “tele/SONOFF_TH_FIN_SALA/SENSOR”
unit_of_measurement: ‘°C’
value_template: “{{ value_json.SI7021.Temperature }}”
platform: mqtt
name: “Umidita Sala da Pranzo”
unique_id: “21”
state_topic: “tele/SONOFF_TH_FIN_SALA/SENSOR”
unit_of_measurement: ‘%’
value_template: “{{ value_json.SI7021.Humidity }}”
platform: mqtt
name: “Temperatura Cucina”
unique_id: “22”
state_topic: “tele/SONOFF_TH_FIN_CUCINA/SENSOR”
unit_of_measurement: ‘°C’
value_template: “{{ value_json.SI7021.Temperature }}”
platform: mqtt
name: “Umidita Cucina”
unique_id: “23”
state_topic: “tele/SONOFF_TH_FIN_CUCINA/SENSOR”
unit_of_measurement: ‘%’
value_template: “{{ value_json.SI7021.Humidity }}”
platform: mqtt
name: “Temperatura Cameretta”
unique_id: “24”
state_topic: “tele/SONOFF_TH_FIN_CAMERETTA/SENSOR”
unit_of_measurement: ‘°C’
value_template: “{{ value_json.SI7021.Temperature }}”
platform: mqtt
name: “Umidita Cameretta”
unique_id: “25”
state_topic: “tele/SONOFF_TH_FIN_CAMERETTA/SENSOR”
unit_of_measurement: ‘%’
value_template: “{{ value_json.SI7021.Humidity }}”
platform: mqtt
name: “Temperatura Camera”
unique_id: “26”
state_topic: “tele/SONOFF_TH_FIN_CAMERA/SENSOR”
unit_of_measurement: ‘°C’
value_template: “{{ value_json.SI7021.Temperature }}”
platform: mqtt
name: “Umidita Camera”
unique_id: “27”
state_topic: “tele/SONOFF_TH_FIN_CAMERA/SENSOR”
unit_of_measurement: ‘%’
value_template: “{{ value_json.SI7021.Humidity }}”
platform: mqtt
name: “Temperatura Esterna”
unique_id: “28”
state_topic: “tele/SONOFF_TH_FIN_CALDAIA/SENSOR”
unit_of_measurement: ‘°C’
value_template: “{{ value_json.SI7021.Temperature }}”
platform: mqtt
name: “Umidita Esterna”
unique_id: “29”
state_topic: “tele/SONOFF_TH_FIN_CALDAIA/SENSOR”
unit_of_measurement: ‘%’
value_template: “{{ value_json.SI7021.Humidity }}”
########## Luci LED Armadio Cameretta #########
platform: flux_led
automatic_add: true
devices: 192.168.10.51
name: Luce Armadio Cameretta
###############################################
#############################################################################################################################
#############################################################################################################################
type: history-graph
title: Temperatura 24H
entities:
sensor.temperatura_esterna
sensor.temperatura_sala_da_pranzo
sensor.temperatura_cucina
sensor.temperatura_cameretta
sensor.temperatura_camera
hours_to_show: 24
refresh: 20
title: umidita 24H
entities:
sensor.umidita_esterna
sensor.umidita_sala_da_pranzo
sensor.umidita_cucina
sensor.umidita_cameretta
sensor.umidita_camera
hours_to_show: 24
refresh: 20
title: Temperatura Ultima Settimana
entities:
sensor.temperatura_esterna
sensor.temperatura_sala_da_pranzo
sensor.temperatura_cucina
sensor.temperatura_cameretta
sensor.temperatura_camera
hours_to_show: 168
refresh: 20
title: umidita Ultima Settimana
entities:
sensor.umidita_esterna
sensor.umidita_sala_da_pranzo
sensor.umidita_cucina
sensor.umidita_cameretta
sensor.umidita_camera
hours_to_show: 168
refresh: 20
title: Temperatura Ultimo Mese
entities:
sensor.temperatura_esterna
sensor.temperatura_sala_da_pranzo
sensor.temperatura_cucina
sensor.temperatura_cameretta
sensor.temperatura_camera
hours_to_show: 720
refresh: 20
title: umidita Ultimo Mese
entities:
sensor.umidita_esterna
sensor.umidita_sala_da_pranzo
sensor.umidita_cucina
sensor.umidita_cameretta
sensor.umidita_camera
hours_to_show: 720
refresh: 20
title: Temperatura Ultimo Anno
entities:
sensor.temperatura_esterna
sensor.temperatura_sala_da_pranzo
sensor.temperatura_cucina
sensor.temperatura_cameretta
sensor.temperatura_camera
hours_to_show: 8760
refresh: 20
title: umidita Ultimo Anno
entities:
sensor.umidita_esterna
sensor.umidita_sala_da_pranzo
sensor.umidita_cucina
sensor.umidita_cameretta
sensor.umidita_camera
hours_to_show: 8760
refresh: 20
#######################################################################################################################
#######################################################################################################################
Tasmota
entity: sensor.tasmota_current_version
name: Tasmota Current Version
icon: mdi:alpha-s-box-outline
entity: sensor.tasmota_earliest_installed_version
name: Tasmota Earliest Installed Version
icon: mdi:alpha-s-box-outline
########## Configurazione Sensori Rasbyan ##########
sensor:
platform: systemmonitor
resources:
type: disk_use_percent
arg: /home
type: memory_free
type: disk_use_percent
arg: ./home
type: disk_use
arg: /home
type: disk_free
arg: /home
type: memory_use_percent
type: memory_use
type: memory_free
type: swap_use_percent
type: swap_use
type: swap_free
type: load_1m
type: load_5m
type: load_15m
type: network_in
arg: eth0
type: network_out
arg: eth0
type: packets_in
arg: eth0
type: packets_out
arg: eth0
type: ipv4_address
arg: eth0
type: processor_use
type: process
arg: octave-cli
type: last_boot
Sensori Raspberry
Ultimo Riavvio
platform: uptime
name: Time Online
unit_of_measurement: hours
Termometro Processore Raspberry
platform: command_line
name: CPU Temperature
friendly_name: ‘CPU’
command: “cat /sys/class/thermal/thermal_zone0/temp”
unit_of_measurement: “°C”
scan_interval: 120
value_template: ‘{{ value | multiply(0.001) }}’
Ultima versione di HA disponibile
Versione di HA installata
platform: command_line
name: Versione HA Installata
command: “head -5 /home/homeassistant/.homeassistant/.HA_VERSION”
scan_interval: 21600 # ogni 6 ore
########## Servizio Meteo ##########
platform: yweather
forecast: 1
name: Oggi
monitored_conditions:
weather
weather_current
temp_min
temp_max
wind_speed
pressure
visibility
humidity
temperature
platform: yweather
forecast: 2
name: Domani
monitored_conditions:
weather
weather_current
temp_min
temp_max
wind_speed
pressure
visibility
humidity
temperature
Ora e Data
platform: worldclock
time_zone: Europe/Rome
platform: time_date
display_options:
######## BROCHER MQTT ########
mqtt:
broker: xxx.xxx.xxx.xxx
######### File di Configrazione ###########
#automation: !include automations.yaml
#group: !include groups.yaml
#script: !include scripts.yaml
#graph: !include graph.yaml
#device: !include device.yaml
Thank you in advance.
123
(Taras)
June 28, 2019, 1:30pm
6
You copied the configuration well but the result is not formatted (making it difficult to read and check for any errors).
To format it, edit your post and add three back-quotes ``` on a separate line before the entire configuration. Then go to the end of the configuration and add another three back-quotes on a separate line. Save the post and now the configuration will appear formatted.
Umbys
(Umberto)
June 28, 2019, 1:52pm
7
# Configure a default setup of Home Assistant (frontend, api, etc)
# default_config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
- http:
base_url: xxxxxxxxxxxxxxxxxxxx:xxxx
#########################################
- mqtt:
broker: 127.0.0.1
port: xxxx
client_id: xxxxxxxxxxxxxxxxxxxx
keepalive: 60
discovery: false
discovery_prefix: xxxxxxxxxxxxxxxxxxxx
#########################################
# Sensors
- sensor:
# - Weather prediction
- platform: yr
###################################################
######### Configurazione Sonoff TH16 Rel ##########
### Balcone Sala
- platform: mqtt
name: "Luce Balcone Sala"
unique_id: "01"
command_topic: "cmnd/SONOFF_TH_FIN_SALA/POWER"
state_topic: "stat/SONOFF_TH_FIN_SALA/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
### Balcone Cucina
- platform: mqtt
name: "Luce Balcone Cucina"
unique_id: "02"
command_topic: "cmnd/SONOFF_TH_FIN_CUCINA/POWER"
state_topic: "stat/SONOFF_TH_FIN_CUCINA/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
### Balcone Cameretta
- platform: mqtt
name: "Luce Balcone Cameretta"
unique_id: "03"
command_topic: "cmnd/SONOFF_TH_FIN_CAMERETTA/POWER"
state_topic: "stat/SONOFF_TH_FIN_CAMERETTA/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
### Balcone Camera
- platform: mqtt
name: "Luce Balcone Camera"
unique_id: "04"
command_topic: "cmnd/SONOFF_TH_FIN_CAMERA/POWER"
state_topic: "stat/SONOFF_TH_FIN_CAMERA/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
### Comando Caldaia Termosifoni
- platform: mqtt
name: "Comando Termosifoni"
unique_id: "05"
command_topic: "cmnd/SONOFF_TH_FIN_CALDAIA/POWER"
state_topic: "stat/SONOFF_TH_FIN_CALDAIA/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
########## Configurazione Sonoff Dual R2 ###########
### Serranda Sala - Apre
- platform: mqtt
name: "Apri Serranda Sala"
unique_id: "06"
command_topic: "cmnd/SONOFF_SER_SALA/POWER1"
state_topic: "stat/SONOFF_SER_SALA/POWER1"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
### Serranda Sala - Chiude
- platform: mqtt
name: "Chiudi Serranda Sala"
unique_id: "07"
command_topic: "cmnd/SONOFF_SER_SALA/POWER2"
state_topic: "stat/SONOFF_SER_SALA/POWER2"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
### Serranda Cucina - Apre
- platform: mqtt
name: "Apri Serranda Cucina"
unique_id: "08"
command_topic: "cmnd/SONOFF_SER_CUCINA/POWER1"
state_topic: "stat/SONOFF_SER_CUCINA/POWER1"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
### Serranda Cucina - Chiude
- platform: mqtt
name: "Chiudi Serranda Cucina"
unique_id: "09"
command_topic: "cmnd/SONOFF_SER_CUCINA/POWER2"
state_topic: "stat/SONOFF_SER_CUCINA/POWER2"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
##### Configurazione Sonoff Ch4 Pro R2 CAMERETTA #######
### CH1 - Apri Serranda DX Cameretta
- platform: mqtt
name: "Apri Serranda DX Cameretta"
unique_id: "10"
command_topic: "cmnd/SONOFF_SER_CAMERETTA/POWER1"
state_topic: "stat/SONOFF_SER_CAMERETTA/POWER1"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
### CH2 - Chiudi Serranda DX Cameretta
- platform: mqtt
name: "Chiudi Serranda DX Cameretta"
unique_id: "11"
command_topic: "cmnd/SONOFF_SER_CAMERETTA/POWER2"
state_topic: "stat/SONOFF_SER_CAMERETTA/POWER2"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
### CH3 - Apre Serranda SX Cameretta
- platform: mqtt
name: "Apri Serranda SX Cameretta"
unique_id: "12"
command_topic: "cmnd/SONOFF_SER_CAMERETTA/POWER3"
state_topic: "stat/SONOFF_SER_CAMERETTA/POWER3"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
### CH4 - Chiude Serranda SX Cameretta
- platform: mqtt
name: "Chiudi Serranda SX Cameretta"
unique_id: "13"
command_topic: "cmnd/SONOFF_SER_CAMERETTA/POWER4"
state_topic: "stat/SONOFF_SER_CAMERETTA/POWER4"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
##### Configurazione Sonoff Ch4 Pro R2 CAMERA da LETTO #####
### CH1 - Apre Serranda DX Camera
- platform: mqtt
name: "Apri Serranda DX Camera"
unique_id: "14"
command_topic: "cmnd/SONOFF_SER_CAMERA/POWER1"
state_topic: "stat/SONOFF_SER_CAMERA/POWER1"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
### CH2 - Chiude Serranda DX Camera
- platform: mqtt
name: "Chiudi Serranda DX Camera"
unique_id: "15"
command_topic: "cmnd/SONOFF_SER_CAMERA/POWER2"
state_topic: "stat/SONOFF_SER_CAMERA/POWER2"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
### CH3 - Apre Serranda SX Camera
- platform: mqtt
name: "Apri Serranda SX Camera"
unique_id: "16"
command_topic: "cmnd/SONOFF_SER_CAMERA/POWER3"
state_topic: "stat/SONOFF_SER_CAMERA/POWER3"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
### CH4 - Chiude Serranda SX Camera
- platform: mqtt
name: "Chiudi Serranda SX Camera"
unique_id: "17"
command_topic: "cmnd/SONOFF_SER_CAMERA/POWER4"
state_topic: "stat/SONOFF_SER_CAMERA/POWER4"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
################# Sonoff POR R2 #######################
- platform: mqtt
name: "Data aggiornamento"
state_topic: "tele/SONOFF_POW/SENSOR"
value_template: "{{value_json['ENERGY'].TotalStartTime }}"
qos: 1
unit_of_measurement : "Date"
- platform: mqtt
name: "Assorbimento TOTALE"
state_topic: "tele/SONOFF_POW/SENSOR"
value_template: "{{value_json['ENERGY'].Total }}"
qos: 1
unit_of_measurement : "kWh"
- platform: mqtt
name: "Assorbimento ieri"
state_topic: "tele/SONOFF_POW/SENSOR"
value_template: "{{value_json['ENERGY'].Yesterday }}"
qos: 1
unit_of_measurement : "kWh"
- platform: mqtt
name: "Assorbimento oggi"
state_topic: "tele/SONOFF_POW/SENSOR"
value_template: "{{value_json['ENERGY'].Today }}"
unit_of_measurement: "kWh"
- platform: mqtt
name: "Assorbimento da ultima lettura"
state_topic: "tele/SONOFF_POW/SENSOR"
value_template: "{{value_json['ENERGY'].Period }}"
unit_of_measurement: "kWh"
- platform: mqtt
name: "Assorbimento istantaneo"
state_topic: "tele/SONOFF_POW/SENSOR"
value_template: "{{value_json['ENERGY'].Power }}"
unit_of_measurement: "Watt"
- platform: mqtt
name: "Voltampere"
state_topic: "tele/SONOF_POW/SENSOR"
value_template: "{{value_json['ENERGY'].ApparentPower }}"
unit_of_measurement: "Watt"
- platform: mqtt
name: "Voltampere reattivo"
state_topic: "tele/SONOFF_POW/SENSOR"
value_template: "{{value_json['ENERGY'].ReactivePower }}"
unit_of_measurement: "Watt"
- platform: mqtt
name: "Voltaggio"
state_topic: "tele/SONOFF_POW/SENSOR"
value_template: "{{value_json['ENERGY'].Voltage }}"
unit_of_measurement: "Volt"
- platform: mqtt
name: "Amperaggio"
state_topic: "tele/SONOFF_POW/SENSOR"
value_template: "{{value_json['ENERGY'].Current }}"
unit_of_measurement: "Ampere"
############## Sonoff Sensori Temperatura e Umidità ##############
- platform: mqtt
name: "Temperatura Sala da Pranzo"
unique_id: "20"
state_topic: "tele/SONOFF_TH_FIN_SALA/SENSOR"
unit_of_measurement: '°C'
value_template: "{{ value_json.SI7021.Temperature }}"
- platform: mqtt
name: "Umidita Sala da Pranzo"
unique_id: "21"
state_topic: "tele/SONOFF_TH_FIN_SALA/SENSOR"
unit_of_measurement: '%'
value_template: "{{ value_json.SI7021.Humidity }}"
- platform: mqtt
name: "Temperatura Cucina"
unique_id: "22"
state_topic: "tele/SONOFF_TH_FIN_CUCINA/SENSOR"
unit_of_measurement: '°C'
value_template: "{{ value_json.SI7021.Temperature }}"
- platform: mqtt
name: "Umidita Cucina"
unique_id: "23"
state_topic: "tele/SONOFF_TH_FIN_CUCINA/SENSOR"
unit_of_measurement: '%'
value_template: "{{ value_json.SI7021.Humidity }}"
- platform: mqtt
name: "Temperatura Cameretta"
unique_id: "24"
state_topic: "tele/SONOFF_TH_FIN_CAMERETTA/SENSOR"
unit_of_measurement: '°C'
value_template: "{{ value_json.SI7021.Temperature }}"
- platform: mqtt
name: "Umidita Cameretta"
unique_id: "25"
state_topic: "tele/SONOFF_TH_FIN_CAMERETTA/SENSOR"
unit_of_measurement: '%'
value_template: "{{ value_json.SI7021.Humidity }}"
- platform: mqtt
name: "Temperatura Camera"
unique_id: "26"
state_topic: "tele/SONOFF_TH_FIN_CAMERA/SENSOR"
unit_of_measurement: '°C'
value_template: "{{ value_json.SI7021.Temperature }}"
- platform: mqtt
name: "Umidita Camera"
unique_id: "27"
state_topic: "tele/SONOFF_TH_FIN_CAMERA/SENSOR"
unit_of_measurement: '%'
value_template: "{{ value_json.SI7021.Humidity }}"
- platform: mqtt
name: "Temperatura Esterna"
unique_id: "28"
state_topic: "tele/SONOFF_TH_FIN_CALDAIA/SENSOR"
unit_of_measurement: '°C'
value_template: "{{ value_json.SI7021.Temperature }}"
- platform: mqtt
name: "Umidita Esterna"
unique_id: "29"
state_topic: "tele/SONOFF_TH_FIN_CALDAIA/SENSOR"
unit_of_measurement: '%'
value_template: "{{ value_json.SI7021.Humidity }}"
########## Luci LED Armadio Cameretta #########
- platform: flux_led
automatic_add: true
devices: 192.168.10.51
name: Luce Armadio Cameretta
###############################################
- type: history-graph
title: Temperatura 24H
entities:
- sensor.temperatura_esterna
- sensor.temperatura_sala_da_pranzo
- sensor.temperatura_cucina
- sensor.temperatura_cameretta
- sensor.temperatura_camera
hours_to_show: 24
refresh: 20
title: umidita 24H
entities:
- sensor.umidita_esterna
- sensor.umidita_sala_da_pranzo
- sensor.umidita_cucina
- sensor.umidita_cameretta
- sensor.umidita_camera
hours_to_show: 24
refresh: 20
title: Temperatura Ultima Settimana
entities:
- sensor.temperatura_esterna
- sensor.temperatura_sala_da_pranzo
- sensor.temperatura_cucina
- sensor.temperatura_cameretta
- sensor.temperatura_camera
hours_to_show: 168
refresh: 20
title: umidita Ultima Settimana
entities:
- sensor.umidita_esterna
- sensor.umidita_sala_da_pranzo
- sensor.umidita_cucina
- sensor.umidita_cameretta
- sensor.umidita_camera
hours_to_show: 168
refresh: 20
title: Temperatura Ultimo Mese
entities:
- sensor.temperatura_esterna
- sensor.temperatura_sala_da_pranzo
- sensor.temperatura_cucina
- sensor.temperatura_cameretta
- sensor.temperatura_camera
hours_to_show: 720
refresh: 20
title: umidita Ultimo Mese
entities:
- sensor.umidita_esterna
- sensor.umidita_sala_da_pranzo
- sensor.umidita_cucina
- sensor.umidita_cameretta
- sensor.umidita_camera
hours_to_show: 720
refresh: 20
title: Temperatura Ultimo Anno
entities:
- sensor.temperatura_esterna
- sensor.temperatura_sala_da_pranzo
- sensor.temperatura_cucina
- sensor.temperatura_cameretta
- sensor.temperatura_camera
hours_to_show: 8760
refresh: 20
title: umidita Ultimo Anno
entities:
- sensor.umidita_esterna
- sensor.umidita_sala_da_pranzo
- sensor.umidita_cucina
- sensor.umidita_cameretta
- sensor.umidita_camera
hours_to_show: 8760
refresh: 20
##########################
##### Tasmota #####
- entity: sensor.tasmota_current_version
name: Tasmota Current Version
icon: mdi:alpha-s-box-outline
- entity: sensor.tasmota_earliest_installed_version
name: Tasmota Earliest Installed Version
icon: mdi:alpha-s-box-outline
########## Configurazione Sensori Rasbyan ##########
# sensor:
- platform: systemmonitor
resources:
- type: disk_use_percent
arg: /home
- type: memory_free
- type: disk_use_percent
arg: ./home
- type: disk_use
arg: /home
- type: disk_free
arg: /home
- type: memory_use_percent
- type: memory_use
- type: memory_free
- type: swap_use_percent
- type: swap_use
- type: swap_free
- type: load_1m
- type: load_5m
- type: load_15m
- type: network_in
- arg: eth0
- type: network_out
arg: eth0
- type: packets_in
arg: eth0
- type: packets_out
arg: eth0
- type: ipv4_address
arg: eth0
- type: processor_use
- type: process
arg: octave-cli
- type: last_boot
##### Sensori Raspberry #####
# Ultimo Riavvio
- platform: uptime
name: Time Online
unit_of_measurement: hours
# Termometro Processore Raspberry
- platform: command_line
name: CPU Temperature
friendly_name: 'CPU'
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
scan_interval: 120
value_template: '{{ value | multiply(0.001) }}'
# Ultima versione di HA disponibile
- platform: rest
name: Versione HA Corrente
resource: https://pypi.python.org/pypi/homeassistant/json
value_template: '{{ value_json.info.version }}'
scan_interval: 21600 # ogni 6 ore
# Versione di HA installata ######
- platform: command_line
name: Versione HA Installata
command: "head -5 /home/homeassistant/.homeassistant/.HA_VERSION"
scan_interval: 21600 # ogni 6 ore
########## Servizio Meteo ##########
- platform: yweather
forecast: 1
name: Oggi
monitored_conditions:
- weather
- weather_current
- temp_min
- temp_max
- wind_speed
- pressure
- visibility
- humidity
- temperature
- platform: yweather
forecast: 2
name: Domani
monitored_conditions:
- weather
- weather_current
- temp_min
- temp_max
- wind_speed
- pressure
- visibility
- humidity
- temperature
###### Ora e Data ######
- platform: worldclock
time_zone: Europe/Rome
- platform: time_date
display_options:
- 'time'
- 'date'
- 'time_utc'
######## BROCHER MQTT ########
- mqtt:
broker: xxx.xxx.xxx.xxx
######### File di Configrazione ###########
#automation: !include automations.yaml
#group: !include groups.yaml
#script: !include scripts.yaml
#graph: !include graph.yaml
#device: !include device.yaml
Umbys
(Umberto)
June 28, 2019, 1:58pm
8
should be OK.
however I found the problem …
when I insert the graphs, the value in the “entities:” field is missing.
then the line with “title: xxxxxxx” should be formatted like this “- title: xxxxxxx”
Many thanks to everyone for their interest.
123
(Taras)
June 28, 2019, 2:08pm
9
I’ve never used History-Graph but the way it is shown in your configuration doesn’t look anything like it is described in the documentation’s example:
https://www.home-assistant.io/components/history_graph/#full-example
finity
June 30, 2019, 2:47am
10
And in reality that entire confguration.yaml file looks completely screwed up.
It has elements of a regular configuration.yaml file but all of the top level keys are entered as list entries. The sensor section has the indentations screwed up and the Sonoff switches are listed under the (screwed up) sensor section. And there is no “switch:” entry to define the sonoff switches that are listed. And i may be mistaked isn’t the flux_led a light component? Where is the “light:” key that defines it that way?
And the history-graphs are lovelace cards so I’m not even sure why they are in that file.
And every history-graph card after the first one is missing the “-type: history-graph”
I could be wrong but I don’t see how the OP says that it “should be OK”. As far as I can tell there’s no way that it will work with what was posted as the “configuration.yaml” file.
123
(Taras)
June 30, 2019, 12:08pm
11
I get the feeling it’s an amalgamation of several files, just for posting purposes.
Otherwise, I agree because, for example, the domain sections are commented out (# sensors:
) which produces a config file that wouldn’t pass Config Check.
finity
June 30, 2019, 12:52pm
12
Well, if that’s the case then that sucks too.
It’s hard to help someone when you ask for them to post a specific thing and then they do something else entirely.