Recorder exclude: added time sensor & handy sensors

This commit is contained in:
Martin Bauer 2019-12-02 20:18:33 +01:00
parent 0391f03244
commit dd19d49d0d
1 changed files with 12 additions and 3 deletions

View File

@ -9,7 +9,7 @@ yaml = YAML()
yaml.preserve_quotes = True yaml.preserve_quotes = True
fritz_box_counter_sensors = [ sensors_to_ignore_in_logbook = [
'sensor.fritz_box_7490_bytes_received', 'sensor.fritz_box_7490_bytes_received',
'sensor.fritz_box_7490_bytes_sent', 'sensor.fritz_box_7490_bytes_sent',
#'sensor.fritz_box_7490_kbyte_sec_received', #'sensor.fritz_box_7490_kbyte_sec_received',
@ -18,6 +18,15 @@ fritz_box_counter_sensors = [
'sensor.fritz_box_7490_packets_sec_received', 'sensor.fritz_box_7490_packets_sec_received',
'sensor.fritz_box_7490_packets_sec_sent', 'sensor.fritz_box_7490_packets_sec_sent',
'sensor.fritz_box_7490_packets_sent', 'sensor.fritz_box_7490_packets_sent',
'sensor.martin_handy_availability_sensor',
'sensor.martin_handy_light_sensor',
'sensor.martin_handy_step_counter_sensor',
'sensor.date_time',
'sensor.date_time_iso',
'sensor.time',
'sensor.time_date',
] ]
@ -195,7 +204,7 @@ def logbook_config(all_devices):
sensor_excludes = ['Helligkeit', 'Betriebsstunden', 'Verbrauch', 'Bewegungsmelder'] sensor_excludes = ['Helligkeit', 'Betriebsstunden', 'Verbrauch', 'Bewegungsmelder']
exclude_list = [] exclude_list = []
exclude_list.extend(fritz_box_counter_sensors) exclude_list.extend(sensors_to_ignore_in_logbook)
exclude_list.extend(make_sensor_exclude_list(all_devices, sensor_excludes)) exclude_list.extend(make_sensor_exclude_list(all_devices, sensor_excludes))
return { return {
'logbook': { 'logbook': {
@ -210,7 +219,7 @@ def logbook_config(all_devices):
def recorder_config(all_devices): def recorder_config(all_devices):
recorder_excludes = ['Betriebsstunden', 'Verbrauch mA'] recorder_excludes = ['Betriebsstunden', 'Verbrauch mA']
exclude_list = ['sun.sun'] exclude_list = ['sun.sun']
exclude_list.extend(fritz_box_counter_sensors) exclude_list.extend(sensors_to_ignore_in_logbook)
exclude_list.extend(make_sensor_exclude_list(all_devices, recorder_excludes)) exclude_list.extend(make_sensor_exclude_list(all_devices, recorder_excludes))
return { return {
'recorder': { 'recorder': {