As title.
Since I installed a PIR sensor and the BME280 I2C sensor HA chrome tab crash when I visit the history menu or even when I click on the pir sensor badge to show the history.
It seems that the chrome tab freezes and I need to close the tab…
Any idea on how to solve the problem?
tom_l
January 5, 2019, 7:16am
2
It might help if you post your configuration for the PIR and BME280 sensors.
history_graph:
smartostat_graph_furnance:
name: Smartostat grafico caldaia
entities:
- switch.room_furnace
hours_to_show: 24
refresh: 10
smartostat_graph_temp:
name: Smartostat grafico temperatura
entities:
- sensor.room_temp
hours_to_show: 24
refresh: 10
smartostat_graph_humidity:
name: Smartostat grafico umidita
entities:
- sensor.room_humidity
hours_to_show: 12
refresh: 30
smartostat_graph_pressure:
name: Smartostat grafico pressione
entities:
- sensor.room_pressure
hours_to_show: 12
refresh: 30
smartostat_graph_pir:
name: Smartostat grafico presenze
entities:
- binary_sensor.sr501pir
hours_to_show: 12
refresh: 30
rasp_cpu_temp:
name: Raspberry Stats
entities:
- sensor.raspberry_cpu_temp
- sensor.processor_use
- sensor.disk_use_percent_home
- sensor.memory_free
hours_to_show: 12
refresh: 10
done
tom_l
January 5, 2019, 10:15pm
4
Please read the blue banner at the top of the page and format your code.
done tom formatted, please help
tom_l
January 5, 2019, 10:42pm
6
That’s the config for your history graphs. It looks fine. Post the code for your sensors set up.
Also do you have any of the sensors excluded from either the recorder or history?
# Sensors
sensor:
- platform: command_line
name: Raspberry CPU Temp
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(1) }}'
- platform: systemmonitor
resources:
- type: disk_use_percent
arg: /home
- type: memory_free
- type: memory_use
- type: processor_use
- type: network_in
arg: eth0
- type: network_out
arg: eth0
- type: last_boot
- platform: mqtt
state_topic: 'tele/smartostat/SENSOR'
name: 'Room Temp' #BME280
unit_of_measurement: '°C'
value_template: '{{ value_json.BME280.Temperature }}'
retain: false
- platform: mqtt
state_topic: 'tele/smartostat/SENSOR'
name: 'Room Humidity'
unit_of_measurement: '%'
value_template: '{{ value_json.BME280.Humidity }}'
retain: false
- platform: mqtt
state_topic: 'tele/smartostat/SENSOR'
name: 'Room Pressure'
unit_of_measurement: 'hPa'
value_template: '{{ value_json.BME280.Pressure }}'
retain: false
- platform: min_max
name: "Average Room Temp"
type: "mean"
round_digits: 1
entity_ids:
- sensor.room_temp
no exclusion in the recorder neither in history
tom_l
January 6, 2019, 2:15am
8
Binary sensor config too.
binary_sensor:
- platform: mqtt
state_topic: "stat/smartostat/POWER2"
name: "SR501PIR"
gpbenton
(Graham)
January 6, 2019, 7:15am
10
How frequently are these sensors updated - I mean how frequently are messages sent?
tom_l
January 6, 2019, 8:26am
11
There’s nothing wrong with your config.
One thing you could try is to delete your home-assistant_v2.db and restart (so it is recreated). This will delete any history you have but it may solve the problem. It’s a shotgun approach - close your eyes, pull the trigger and hope you hit something - but it’s all I’ve got.
sblantipodi
(Perini Davide)
January 6, 2019, 12:13pm
13
Done it. It solves the problem for 24 hours than the log became big again and the problem reappear