home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.05k stars 29.71k forks source link

Home Assistant Lovelace UI becomes Unresponsive No automation works after a few days #32300

Closed matthewcky2k closed 3 years ago

matthewcky2k commented 4 years ago

The problem

Environment

Problem-relevant configuration.yaml

Traceback/Error logs

Additional information

springstan commented 4 years ago

Please fill out the issue template, you can find it by clicking on New Issue and then selecting Report a bug with Home Assistant. Copy and paste the provided template into this already created issue, click preview to take a look at the empty template and then fill out as much as you can. Any additional information can be helpful!

Thanks for understanding :)

matthewcky2k commented 4 years ago

i did that but it seems when i pressed submit it deleted most of the content, will try again

matthewcky2k commented 4 years ago

The problem

Home assistant UI becomes unresponsive after a few days and no automatons work, this has been happening since release 103 or 102

Environment

Problem-relevant configuration.yaml

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: redacted
  longitude: redacted
  elevation: redacted
  # C for Celcius, F for Fahrenheit
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Europe/redacted

  customize: !include customize.yaml

  customize_domain:
    light:
      assumed_state: false
    switch:
      state_color: true
  auth_providers:
   - type: homeassistant
   # uncomment this to enable backwards compatible API password support
   - type: legacy_api_password
     api_password: redacted
   - type: trusted_networks
     trusted_networks:
         - 127.0.0.1
  auth_mfa_modules:
    - type: totp

  packages: !include_dir_named packages
group:
  default_view:
    view: yes
    name: Home
    entities:
     - alert.kitchen_flood
     - alert.back_door_open
     - alert.master_bathroom_flood
     - switch.Livingroom_switch
     - switch.Aux_switch
     - media_player.kodi_lounge
     - media_player.kodi_bedroom
     - media_player.kodi_man_cave
     - sun.sun
     - person.matthew
     - person.sam
     - sensor.gas_usage
     - sensor.power_usage
     - sensor.netatmo_outdoor_module_temperature
     - updater.updater
     - group.lights
     - group.downstairs_lights
     - group.upstairs_lights
     - group.master_bed_lights
  Guest holiday Mode:
    name: Guest Holiday Mode
    view: no
    entities:
       - input_boolean.guest_mode
       - input_boolean.on_holiday
  Automation:
    name: Automations
    view: yes
    entities:
       - group.automations_boolean_1
       - group.dehumidifier_automations
       - group.automations_boolean_2
       - group.automations_boolean_3
       - group.presence_automations
       - group.security_automations
       - group.time_automations
       - group.climate_automations
       - group.guest_holiday_mode
  House Mode:
    name: House Mode
    view: no
    entities:
       - input_select.house_mode
  sensors:
    name: Sensors
    view: yes
    entities:
      - group.home_sensors
      - group.hallway_sensor
      - group.power_usage_sensors
      - group.top_floor_sensors
      - group.front_door_bell
      - group.back_door_bell
      - group.first_floor_landing_sensor
      - group.kitchen_sensor
      - group.master_bathroom_sensor
      - group.front_hall_sensor
      - group.living_room_sensor
      - group.master_bedroom_sensor
      - group.man_cave_sensor
      - group.dining_room_sensor
      - group.top_floor_landing_sensor
      - group.guest_bedroom_sensor
      - group.average_sensors
      - group.battery_levels
  Appliances:
    name: Appliances
    view: yes
    entities:
      - group.washing_machine
      - group.dishwasher
      - group.fridge_freezer
      - group.vacuum
      - switch.drying_rack_switch
      - switch.iron_switch
  Appliances Input Select:
    name: Appliances Manual Status
    view: no
    entities:
      - input_select.dishwasher_status
      - input_select.washing_machine_status
  Appliance Sensors:
    name: Appliance Sensors
    view: no
    entities:
      - sensor.dishwasher_voltage
      - sensor.washing_machine_voltage
      - sensor.dishwasher_current
      - sensor.washing_machine_current
      - sensor.dishwasher_power_factor
      - sensor.washing_machine_power_factor
  Flood Sensors:
    name: Flood Sensors
    view: no
    icon: mdi:water
    entities:
      - sensor.template_kitchen_flood_status
      - sensor.template_master_bathroom_status
      - sensor.kitchen_flood_sensor_temperature
      - sensor.master_bed_bath_flood_sensor_temperature
  people:
    name: people
    view: no
    entities:
      - person.matthew
      - person.sam
      - device_tracker.harrietsiphone_2
  devices:
    name: devices
    view: no
    entities:
      - device_tracker.pc192168023_3 
  Hallway Sensor:
    name: Hallway Sensor
    view: no
    icon: mdi:radiobox-marked
    entities:
      - binary_sensor.hallway_sensor_sensor
      - sensor.template_hallway_motion_sensor
      - sensor.hallway_sensor_luminance
      - sensor.hallway_sensor_relative_humidity
      - sensor.hallway_sensor_temperature
      - sensor.hallway_sensor_ultraviolet
  First Floor Landing Sensor:
    name: First Floor Landing Sensor
    view: no
    icon: mdi:radiobox-marked
    entities:
      - binary_sensor.first_floor_landing_sensor_sensor
      - sensor.template_first_floor_motion_sensor
      - sensor.first_floor_landing_sensor_luminance
      - sensor.first_floor_landing_sensor_relative_humidity
      - sensor.first_floor_landing_sensor_temperature
      - sensor.first_floor_landing_sensor_ultraviolet
  Kitchen Sensor:
    name: Kitchen Sensor
    view: no
    icon: mdi:radiobox-marked
    entities:
      - binary_sensor.kitchen_sensor_sensor
      - sensor.template_kitchen_motion_sensor
      - sensor.kitchen_sensor_luminance
      - sensor.kitchen_sensor_relative_humidity
      - sensor.kitchen_sensor_temperature
      - sensor.kitchen_sensor_ultraviolet
  Living Room Sensor:
    name: Living Room Sensor
    view: no
    icon: mdi:radiobox-marked
    entities:
      - binary_sensor.living_room_sensor_sensor
      - sensor.template_living_room_motion_sensor
      - sensor.living_room_sensor_luminance
      - sensor.living_room_sensor_relative_humidity
      - sensor.living_room_sensor_temperature
      - sensor.living_room_sensor_ultraviolet
  Master Bedroom Sensor:
    name: Master Bedroom Sensor
    view: no
    icon: mdi:radiobox-marked
    entities:
      - binary_sensor.master_bedroom_sensor_sensor
      - sensor.template_master_bedroom_motion_sensor
      - sensor.master_bedroom_sensor_luminance
      - sensor.master_bedroom_sensor_relative_humidity
      - sensor.master_bedroom_sensor_temperature
      - sensor.master_bedroom_sensor_ultraviolet
  Home Sensors:
    name: Home Sensors
    view: no
    icon: mdi:radiobox-marked
    entities:
      - sensor.lights_time_on_yesterday
      - sensor.mold_indicator
      - sensor.mold_indicator_2
      - sensor.mold_indicator_3
      - sensor.mold_indicator_4
      - sensor.mold_indicator_5
      - sensor.netatmo_living_room_noise
      - sensor.netatmo_bedroom_temperature
      - sensor.netatmo_guest_room_temperature
      - sensor.netatmo_living_room_temperature
      - sensor.netatmo_man_cave_temperature
      - sensor.netatmo_guest_room_humidity
      - sensor.netatmo_bedroom_humidity
      - sensor.netatmo_man_cave_humidity
      - sensor.netatmo_living_room_humidity
      - sensor.netatmo_guest_room_co2
      - sensor.netatmo_bedroom_co2
      - sensor.netatmo_man_cave_co2
      - sensor.netatmo_living_room_co2
      - sensor.down_stairs_bathroom_temperature
      - sensor.top_floor_bathroom_temperature
      - sensor.kitchen_flood_sensor_temperature
      - sensor.master_bed_bath_flood_sensor_temperature
      - sensor.water_tank_flood_sensor_temperature
      - sensor.plex
  Average Sensors:
    name: Averages
    view: no
    icon: mdi:radiobox-marked
    entities:
      - sensor.average_indoor_co2
      - sensor.average_indoor_temp
      - sensor.average_indoor_humidity
      - sensor.average_lux
      - sensor.average_downstairs_temp
      - sensor.average_upstairs_temp
      - sensor.average_upstairs_humidity
      - sensor.average_downstairs_humidity
  Washing Machine:
    name: Washing Machine
    view: no
    icon: mdi:washing-machine
    entities:
      - sensor.washing_machine_status
      - binary_sensor.washing_machine_door_sensor
      - sensor.washing_machine_power
      - sensor.template_kitchen_flood_status
      - switch.washing_machine_switch
      - sensor.washing_machine_energy
  Dishwasher:
    name: Dishwasher
    view: no
    icon: mdi:washing-machine
    entities:
      - sensor.dishwasher_status
      - sensor.dishwasher_power
      - binary_sensor.dishwasher_door_sensor
      - sensor.template_kitchen_flood_status
      - switch.dishwasher_switch
      - sensor.dishwasher_energy
  Fridge Freezer:
    name: Fridge Freezer
    view: no
    icon: mdi:fridge-filled
    entities:
      - binary_sensor.freezer_door_sensor
      - binary_sensor.fridge_door_sensor
  Weather Sensors:
    name: Weather Sensors
    view: no
    icon: mdi:weather-lightning-rainy
    entities:
      - sensor.season_icons
      - sensor.netatmo_rain_gauge_rain
      - sensor.netatmo_rain_gauge_sum_rain_1
      - sensor.netatmo_rain_gauge_sum_rain_24
      - sensor.netatmo_wind_gauge_strength
      - sensor.netatmo_outdoor_module_temperature
      - sensor.netatmo_outdoor_module_humidity
      - sensor.netatmo_wind_gauge_gust_strength
      - sensor.netatmo_wind_gauge_angle
      - sensor.netatmo_living_room_pressure
      - sensor.netatmo_outdoor_module_max_temp
      - sensor.netatmo_outdoor_module_min_temp
      - sensor.dark_sky_cloud_coverage
      - sensor.dark_sky_precip
  Weather:
    name: Weather 
    view: yes
    entities:
      - group.weather_forecast
      - group.weather_sensors
  Automations Boolean 1:
    name: Light Automations
    view: no
    icon: mdi:lightbulb-on
    entities:
      - input_boolean.auto_dim_bedroom_on
      - input_boolean.auto_dim_lounge_on 
      - input_boolean.auto_dim_man_cave_on
      - input_boolean.auto_lights_when_raining_on
      - input_boolean.auto_downstairs_light
      - input_boolean.auto_first_floor_light
      - input_boolean.auto_top_floor_light
      - input_boolean.auto_man_cave_light
      - input_boolean.auto_kitchen_light
      - input_boolean.auto_lights_off
      - input_boolean.auto_living_room_light
      - input_boolean.auto_walk_in_wardrobe_light_off
      - input_boolean.auto_walk_in_wardrobe_light_on    
      - input_boolean.lights_on_at_sunset      
  Automations Boolean 2:
    name: Lock Automations
    view: no
    icon: mdi:lock
    entities:
      - input_boolean.auto_unlock_front_door
      - input_boolean.auto_unlock_back_door
      - input_boolean.auto_light_on_door_unlock
  Automations Boolean 3:
    name: Light Motion Automations
    view: no
    icon: mdi:lightbulb-on
    entities:
      - input_boolean.auto_downstairs_light
      - input_boolean.auto_first_floor_light
      - input_boolean.auto_top_floor_light
      - input_boolean.auto_kitchen_light
      - input_boolean.auto_man_cave_light
      - input_boolean.auto_master_bath_light
      - input_boolean.auto_lights_off
      - input_boolean.auto_master_bath_light_off
      - input_boolean.auto_dining_room_light 
  Power Usage Sensors:
    name: Power Usage Sensors
    view: no
    icon: mdi:flash
    entities:
     - sensor.gas_usage
     - sensor.power_usage
     - sensor.down_stairs_bathroom_power
     - sensor.master_bed_overhead_power
     - sensor.living_room_overhead_power
     - sensor.guest_bed_overhead_power
     - sensor.dining_room_overhead_power
     - sensor.guest_bed_top_power
     - sensor.walk_in_wardrobe_power
     - sensor.master_bed_bathroom_power
     - sensor.kitchen_power
     - sensor.guest_bathroom_power
     - sensor.man_cave_power
     - sensor.top_landing_power
     - sensor.first_floor_landing_power
     - sensor.top_floor_bathroom_power
  Lights:
    name: Lights
    view: no
    icon: mdi:lightbulb
    entities:
     - light.living_room_lamp
     - light.matthew_bed_lamp
     - light.sam_bed_lamp
     - light.dining_room_lamps
     - light.guest_bedroom_lamp
     - light.man_cave_lamp
     - light.master_bed_overhead_level
     - light.living_room_overhead_level
     - switch.down_stairs_bathroom_switch
     - switch.guest_bed_overhead_switch
     - switch.top_landing_switch_2
     - light.dining_room_overhead_level
     - switch.guest_bed_top_switch_2
     - switch.walk_in_wardrobe_switch
     - switch.first_floor_landing_switch
     - switch.front_hall_switch
     - switch.guest_bathroom_switch
     - switch.kitchen_switch_2
     - switch.kitchen_switch_3
     - switch.kitchen_switch
     - switch.rear_hall_switch_2
     - switch.rear_hall_switch_3
     - switch.master_bed_bathroom_switch
     - light.man_cave_level
     - switch.top_floor_bathroom_switch
     - light.dining_room_lamp
     - light.lounge_sofa_backlight
     - light.poster_backlight
     - light.man_cave_backlight
     - switch.christmas_lights
     - switch.christmas_tree_switch
  Downstairs Lights:
    name: Downstairs Lights
    view: no
    icon: mdi:lightbulb
    entities:
     - light.living_room_overhead_level
     - switch.down_stairs_bathroom_switch
     - light.dining_room_overhead_level
     - light.living_room_lamp
     - light.lounge_sofa_backlight
     - light.poster_backlight
     - light.dining_room_lamp
     - switch.front_hall_switch
     - switch.kitchen_switch_2
     - switch.kitchen_switch_3
     - switch.kitchen_switch
     - switch.rear_hall_switch_2
     - switch.rear_hall_switch_3
  Upstairs Lights:
    name: Upstairs Lights
    view: no
    icon: mdi:lightbulb
    entities:
     - switch.guest_bed_top_switch_2
     - light.master_bed_overhead_level
     - switch.guest_bed_overhead_switch
     - switch.top_landing_switch_2
     - light.guest_bedroom_lamp
     - light.matthew_bed_lamp
     - light.sam_bed_lamp
     - switch.walk_in_wardrobe_switch
     - switch.first_floor_landing_switch
     - switch.guest_bathroom_switch
     - switch.master_bed_bathroom_switch
     - light.man_cave_level
     - switch.top_floor_bathroom_switch
     - light.man_cave_backlight
  1st Floor Lights:
    name: 1st Floor Lights
    view: no
    icon: mdi:lightbulb
    entities:
     - light.master_bed_overhead_level
     - switch.guest_bed_overhead_switch
     - light.guest_bedroom_lamp
     - light.matthew_bed_lamp
     - light.sam_bed_lamp
     - switch.walk_in_wardrobe_switch
     - switch.first_floor_landing_switch
     - switch.guest_bathroom_switch
     - switch.master_bed_bathroom_switch
  Top Floor Lights:
    name: Top Floor Lights
    view: no
    icon: mdi:lightbulb
    entities:
     - light.man_cave_level
     - switch.top_floor_bathroom_switch
     - switch.top_landing_switch_2
     - switch.guest_bed_top_switch_2 
     - light.man_cave_backlight     
  Master Bed Lights:
    name: Master Bed Lights
    view: no
    icon: mdi:lightbulb
    entities: 
     - light.master_bed_overhead_level
     - light.matthew_bed_lamp
     - light.sam_bed_lamp
     - switch.walk_in_wardrobe_switch
     - switch.master_bed_bathroom_switch
  Man Cave Sensors:
    name: Man Cave Sensors
    view: no
    icon: mdi:radiobox-marked
    entities:
      - sensor.mold_indicator
      - sensor.average_man_cave_temp
      - sensor.netatmo_man_cave_humidity
      - sensor.netatmo_man_cave_co2
  Front Door Bell:
    name: Front Door Bell
    view: no
    icon: mdi:bell-ring
    entities:
      - binary_sensor.ring_front_door_ding
      - binary_sensor.ring_front_door_motion
      - sensor.ring_front_door_last_activity
      - sensor.ring_front_door_battery
      - sensor.ring_front_door_volume
      - sensor.ring_front_door_wifi_signal_strength
  Back Door Bell:
    name: Back Door Bell
    view: no
    icon: mdi:bell-ring
    entities:
      - binary_sensor.ring_back_door_ding
      - binary_sensor.ring_back_door_motion
      - sensor.ring_back_door_last_activity
      - sensor.ring_back_door_battery
      - sensor.ring_back_door_volume
      - sensor.ring_back_door_wifi_signal_strength
  Back Door:
    name: Back Door
    view: no
    icon: mdi:bell-ring
    entities:
    #  - sensor.template_back_door
      - sensor.ring_back_door_last_activity
      - binary_sensor.back_door_sensor_sensor
      - lock.back_door_locked
      - sensor.template_back_door_unlock_status
      - camera.back_door
      - sensor.back_door_lock_battery_level
  Front Door:
    name: Front Door
    view: no
    icon: mdi:bell-ring
    entities:
     # - sensor.template_front_door
      - sensor.ring_front_door_last_activity
      - binary_sensor.front_door_sensor_sensor
      - lock.front_door_locked
      - camera.front_door
      - sensor.front_door_lock_battery_level
      - sensor.front_lock_unlock_status
  Lights 2:
    name: Lights
    view: yes
    icon: mdi:lightbulb
    entities:
     - group.lights
     - group.downstairs_lights
     - group.upstairs_lights
  1st Floor:
    name: 1st Floor
    view: yes
    entities:
     - group.1st_floor_lights
     - media_player.kodi_bedroom
     - group.master_bed_lights
     - media_player.master_bed_tv
     - switch.aux_switch
     - group.master_bedroom
  Top Floor:
    name: Top Floor
    view: yes
    entities:
     - group.top_floor_lights
     - group.man_cave
  Man Cave:
    name: Man Cave
    view: no
    entities:
     - sensor.man_cave_remote
     - sensor.man_cave_tv_time_today
     - sensor.man_cave_tv_time_this_week
     - switch.man_cave_switch
     - media_player.kodi_man_cave
     - media_player.man_cave_tv
     - sensor.average_man_cave_humidity
     - sensor.average_man_cave_temp
     - media_player.man_cave_speaker
  down stairs:
    name: Downstairs
    view: yes
    entities:
     - group.downstairs_lights
     - group.living_room
     - media_player.kodi_lounge
     - media_player.living_room_avr
     - media_player.living_room_tv
     - switch.livingroom_switch
     - group.living_room_lights
     - group.dining_room
  Master Bathroom Sensor:
    name: Master Bathroom Sensor
    view: no
    entities:
     - binary_sensor.master_bathroom_sensor_sensor
     - sensor.template_master_bath_motion_sensor
     - sensor.master_bathroom_sensor_luminance
     - sensor.master_bathroom_sensor_relative_humidity
     - sensor.master_bathroom_sensor_temperature
     - sensor.master_bathroom_sensor_ultraviolet
  zwave:
    name: zwave
    view: yes
    entities:
     - zwave.walk_in_wardrobe
     - zwave.aeotec_zw090_zstick_gen5
     - zwave.back_door
     - zwave.back_door_sensor
     - zwave.down_stairs_bathroom
     - zwave.dining_room_overhead
     - zwave.first_floor_landing
     - zwave.first_floor_landing_sensor
     - zwave.front_hall
     - zwave.guest_bathroom
     - zwave.guest_bed_overhead
     - zwave.guest_bed_top
     - zwave.hallway_sensor
     - zwave.kitchen
     - zwave.kitchen_flood_sensor
     - zwave.kitchen_sensor
     - zwave.living_room_overhead
     - zwave.man_cave
     - zwave.master_bathroom_sensor
     - zwave.master_bed_bathroom
     - zwave.master_bed_overhead
     - zwave.rear_hall
     - zwave.top_floor_bathroom
     - zwave.top_landing
     - zwave.walk_in_wardrobe
     - zwave.walk_in_wardrobe_sensor
     - zwave.front_hall_sensor
     - zwave.front_door_sensor
     - zwave.front_door
     - zwave.living_room_sensor
     - zwave.master_bedroom_sensor
     - zwave.man_cave_sensor
     - zwave.dining_room_sensor
     - zwave.washing_machine
     - zwave.dishwasher
     - zwave.washing_machine_door
     - zwave.master_bed_bath_flood_sensor
     - zwave.dishwasher_door
     - zwave.fridge_door
     - zwave.freezer_door
     - zwave.water_tank_flood_sensor
     - zwave.top_floor_landing_sensor
     - zwave.guest_bedroom_sensor
     - zwave.living_room_door_sensor
  walk in wardrobe:
    name: Walk In Wardrobe
    view: no
    entities:
    # - sensor.template_walk_in_wardrobe_door
     - binary_sensor.walk_in_wardrobe_sensor_sensor
     - switch.walk_in_wardrobe_switch
  Master Bedroom:
    name: Master Bedroom
    view: no
    entities:
    # - sensor.template_walk_in_wardrobe_door
     - sensor.bedroom_tv_time_today
     - sensor.bedroom_tv_time_this_week
     - binary_sensor.walk_in_wardrobe_sensor_sensor
     - switch.aux_switch
     - sensor.average_master_bed_temp
     - sensor.average_master_bed_humidity 
  climate:
    name: Climate
    view: yes
    entities:
     - group.heating
     - group.hot_water
  hot water:
    name: Hot Water
    view: no
    entities:
     - water_heater.dhw
  Heating:
    name: Heating
    view: no
    icon: mdi:radiator
    entities:
     - sensor.season_icons
     - sensor.evohome_current_mode
     - climate.ql_home
     - climate.dining_room
     - climate.guest_bed
     - climate.guest_bed_upper
     - climate.hall
     - climate.kitchen
     - climate.living_room
     - climate.man_cave
     - climate.master_bed
     - climate.rear_hall
  input boolean security:
    name: Security System
    view: no
    icon: mdi:security-home
    entities:
     - sensor.template_security_system
     - input_boolean.security_system     
  Security:
    name: Security
    view: yes
    entities:
      - group.front_door
      - group.back_door
      - group.input_boolean_security
      - alert.motion_detected_absence
      - alert.kitchen_flood
      - alert.back_door_open
      - alert.front_door_open
      - alert.door_issue
      - group.security_events
      - group.occupancy
  Security Events:
    name: Security Events
    view: no
    entities:
     - sensor.template_back_door_status
     - sensor.template_front_door_status     
     - sensor.template_motion_detected
  Front Hall Sensor:
    name: Front Hall Sensor
    view: no
    entities: 
     - binary_sensor.front_hall_sensor_sensor
     - sensor.template_front_hall_motion_sensor
     - sensor.front_hall_sensor_luminance
     - sensor.front_hall_sensor_relative_humidity
     - sensor.front_hall_sensor_temperature
     - sensor.front_hall_sensor_ultraviolet
  Man Cave Sensor:
    name: Man Cave Sensor
    view: no
    entities: 
     - binary_sensor.man_cave_sensor_sensor
     - sensor.template_man_cave_motion_sensor
     - sensor.man_cave_sensor_luminance
     - sensor.man_cave_sensor_relative_humidity
     - sensor.man_cave_sensor_temperature
     - sensor.man_cave_sensor_ultraviolet
  Dining Room Sensor:
    name: Dining Room Sensor
    view: no
    entities: 
     - binary_sensor.dining_room_sensor_sensor
     - sensor.template_dining_room_motion_sensor
     - sensor.dining_room_sensor_luminance
     - sensor.dining_room_sensor_relative_humidity
     - sensor.dining_room_sensor_temperature
     - sensor.dining_room_sensor_ultraviolet
  Top Floor Landing Sensor:
    name: Top Floor Landing Sensor
    view: no
    entities: 
     - binary_sensor.top_floor_landing_sensor_sensor
     - sensor.template_top_floor_landing_motion_sensor
     - sensor.top_floor_landing_sensor_luminance
     - sensor.top_floor_landing_sensor_relative_humidity
     - sensor.top_floor_landing_sensor_temperature
     - sensor.top_floor_landing_sensor_ultraviolet
  Guest Bedroom Sensor:
    name: Guest Bedroom Sensor
    view: no
    entities: 
     - binary_sensor.guest_bedroom_sensor_sensor
     - sensor.template_guest_bedroom_motion_sensor
     - sensor.guest_bedroom_sensor_luminance
     - sensor.guest_bedroom_sensor_relative_humidity
     - sensor.guest_bedroom_sensor_temperature
     - sensor.guest_bedroom_sensor_ultraviolet
  Presence Automations:
    name: Presence Automations
    view: no
    entities: 
     - automation.evohome_economy_disable_arriving_home_or_close_proximity
     - automation.evohome_economy_enable_absence
     - automation.turn_off_lights_if_no_one_home
     - automation.send_message_when_sam_leaves_home
     - automation.send_message_when_sam_arrives_home
     - automation.turn_on_eco_mode_if_no_one_home_by_1810
     - automation.greet_guests_when_arriving_home
  Dehumidifier Automations:
    name: Dehumidifier Automations
    view: no
    entities: 
     - automation.dehumidifier_off_below_60
     - automation.dehumidifier_on_when_gone_to_bed
     - automation.check_dehumidifier_tank_notification
     - automation.dehumidifier_off_when_watching_tv
     - automation.dehumidifier_on_if_no_one_home
     - automation.dehumidifier_on_critical_mold_humidity
  Security Automations:
    name: Security Automations
    view: no
    entities: 
     - automation.notify_on_back_door_unlock
     - automation.deactivate_security_system
     - automation.activate_security_system_on_absence
     - automation.someone_is_at_the_front_door_pause
     - automation.announce_rain
     - automation.greet_matthew_when_arriving_home
  Time Automations:
    name: Time Automations
    view: no
    entities: 
     - automation.bedroom_light_off_at_820
     - automation.bedroom_light_on_at_730
     - automation.bedroom_light_on_at_10pm
     - automation.lock_all_at_midnight
     - automation.all_lights_off_at_1am
     - automation.lights_left_on
     - automation.downstairs_bathroom_light_left_on
  Climate Automations:
    name: Climate Automations
    view: no
    entities: 
     - automation.evohome_economy_disable_on_temperature_drop
     - automation.evohome_economy_enable_on_temperature_rise
     - input_boolean.summer_mode
     - automation.bedroom_fan_auto_on
     - automation.bedroom_fan_auto_off
     - automation.turn_on_away_mode_in_livingroom_if_no_motion_detected
  Living Room TV:
    name: Living Room TV
    control: hidden
    view: no
    entities:
     - sensor.living_room_remote
  Living Room Lights:
    name: Living Room Lights
    view: no
    entities:
     - light.living_room_colour
     - light.living_room_lampsofa
     - light.living_room_overhead_level
     - light.living_room_lamp
     - light.lounge_sofa_backlight
     - light.poster_backlight
  Living Room Sunset Lights:
    name: Living Room Sunset Lights
    view: no
    entities:
     - light.living_room_lamp
     - light.lounge_sofa_backlight
  Living Room:
    name: Living Room
    view: no
    entities:
     - binary_sensor.living_room_door_sensor_sensor
     - sensor.living_room_remote
     - sensor.lounge_tv_time_today
     - sensor.lounge_tv_time_this_week
     - sensor.average_living_room_temp
     - switch.livingroom_switch
     - switch.christmas_tree_switch
     - switch.christmas_lights
     - sensor.average_living_room_humidity
  Dining Room:
    name: Dining Room
    view: no
    entities:
     - light.dining_room_lamp
     - light.dining_room_overhead_level
     - sensor.dining_room_sensor_temperature
     - sensor.dining_room_remote
  Music:
    name: Music
    view: yes
    entities:
     - group.music_options
     - media_player.lounge
     - media_player.kitchen
     - media_player.bedroom
  System View:
    name: System
    view: yes
    entities:
     - group.system
     - group.transmission
     - group.NAS
     - group.UPS
  System:
    name: System
    view: no
    control: hidden
    entities: 
     - sensor.current_version
     - sensor.processor_use
     - sensor.memory_free
     - sensor.load_15m
     - sensor.disk_free_home
     - sensor.disk_use_percent_home
     - sensor.disk_free_root
     - sensor.disk_use_percent_root
     - sensor.memory_use_percent
     - sensor.last_boot
     - sensor.speedtest_download
     - sensor.speedtest_upload
     - sensor.speedtest_ping
     - sensor.home_luckins_im_cert
     - sensor.uptime
     - automation.heal_zwave_at_4am
     - automation.zwave_low_battery_notification
     - sensor.matthew_tracking_source_type
     - sensor.sam_tracking_source_type
     - sensor.matthews_phone_current_access_point
     - sensor.sams_phone_current_access_point
  NAS:
    name: NAS
    view: no
    control: hidden
    entities: 
     - sensor.cpu_load_total
     - sensor.memory_usage_real
     - sensor.network_down
     - sensor.network_up
     - sensor.volume_used_volume_1
     - sensor.status_volume_1
  UPS:
    name: UPS
    view: no
    control: hidden
    entities: 
     - sensor.ups_status
     - sensor.ups_load
     - sensor.ups_input_voltage
     - sensor.ups_battery_charge
     - sensor.ups_battery_runtime
  Stats View:
    name: Statistics
    view: yes
    control: hidden
    entities: 
     - group.stats
  Stats:
    name: Statistics
    view: no
    control: hidden
    entities: 
     - proximity.matthew_distance_to_home
     - proximity.sam_distance_to_home
     - sensor.closest_to_home
     - sensor.matthew_time_at_home_this_week
     - sensor.sam_time_at_home_this_week
     - sensor.matthew_time_at_work_this_week
     - sensor.sam_time_at_work_this_week
     - sensor.lounge_tv_time_today
     - sensor.lounge_tv_time_this_week
     - sensor.bedroom_tv_time_today
     - sensor.bedroom_tv_time_this_week
     - sensor.man_cave_tv_time_today
     - sensor.man_cave_tv_time_this_week
  Vacuum:
    name: Vacuum
    view: no
    control: hidden
    entities:
     - vacuum.ql_robot_vac
     - sensor.robot_vac_battery_level
     - input_boolean.auto_vacuum
  Occupancy:
    name: Occupancy
    view: no
    entities:
     - sensor.last_motion
     - sensor.people_home
     - sensor.template_first_floor_landing_occupancy_sensor
     - sensor.template_front_hall_occupancy_sensor
     - sensor.template_hallway_occupancy_sensor
     - sensor.template_master_bathroom_occupancy_sensor
     - sensor.template_kitchen_occupancy_sensor
     - sensor.template_living_room_occupancy_sensor
     - sensor.template_master_bedroom_occupancy_sensor
     - sensor.template_man_cave_occupancy_sensor
     - sensor.template_dining_room_occupancy_sensor
     - sensor.template_top_floor_landing_occupancy_sensor
     - sensor.template_guest_bedroom_occupancy_sensor
  Transmission:
    name: Torrents
    view: no
    entities:
     - sensor.transmission_active_torrents
     - sensor.transmission_down_speed
     - sensor.transmission_status
     - sensor.transmission_up_speed
     - switch.transmission
     - binary_sensor.passthepopcorn
     - binary_sensor.broadcasthenet
     - binary_sensor.iptorrents
     - binary_sensor.redacted
  Battery Levels:
    name: Battery Levels
    view: no
    entities:
     - sensor.dining_room_sensor_battery_level
     - sensor.back_door_sensor_battery_level
     - sensor.dishwasher_door_battery_level
     - sensor.first_floor_landing_sensor_battery_level
     - sensor.freezer_door_battery_level
     - sensor.fridge_door_battery_level
     - sensor.front_door_sensor_battery_level
     - sensor.front_hall_sensor_battery_level
     - sensor.guest_bedroom_sensor_battery_level
     - sensor.hallway_sensor_battery_level
     - sensor.kitchen_flood_sensor_battery_level
     - sensor.kitchen_sensor_battery_level
     - sensor.living_room_door_sensor_battery_level
     - sensor.living_room_sensor_battery_level
     - sensor.man_cave_sensor_battery_level
     - sensor.master_bathroom_sensor_battery_level
     - sensor.master_bedroom_sensor_battery_level
     - sensor.top_floor_landing_sensor_battery_level
     - sensor.walk_in_wardrobe_sensor_battery_level
     - sensor.washing_machine_door_battery_level
     - sensor.water_tank_flood_sensor_battery_level
     - sensor.master_bathroom_flood_sensor_battery_level
     - sensor.netatmo_bedroom_battery
     - sensor.netatmo_man_cave_battery
     - sensor.netatmo_guest_room_battery
     - sensor.netatmo_outdoor_module_battery
     - sensor.netatmo_rain_gauge_battery
     - sensor.netatmo_wind_gauge_battery
  Music Options:
    name: Music Options
    view: no
    entities:
     - input_boolean.follow_music
     - input_select.music_controller
     - automation.make_kitchen_sonos_master
  weather forecast:
    name: Forecast
    view: no
    entities:
     - weather.dark_sky
     - sensor.dark_sky_summary
     - sensor.dark_sky_minutely_summary
     - sensor.dark_sky_hourly_summary
     - sensor.dark_sky_daily_summary
  Evohome:
    name: Beta Control
    view: no
    entities:
     - climate.ql_home
     - climate.dining_room_2
     - climate.guest_bed_2
     - climate.guest_bed_upper_2
     - climate.hall_2
     - climate.kitchen_2
     - climate.living_room_2
     - climate.man_cave_2
     - climate.master_bed_2
     - climate.rear_hall_2
  Alexa:
    name: Alexa
    view: yes
    entities:
     - media_player.living_room
     - media_player.kitchen_spot
     - media_player.master_bed
     - media_player.hallway_dot
     - media_player.1st_floor
     - group.alexatts
  Alexatts:
    name: Alexa TTS
    view: no
    entities:
     - input_number.alexa_volume
     - input_text.alexa_tts
     - input_select.alexa
  Christmas:
    name: Christmas
    view: no
    entities:
     - switch.christmas_lights
     - switch.christmas_tree_switch

# View all events in a logbook
logbook: 
  include:
    domains:
      - light
      - switch
      - media_player
      - sun
      - automation
      - device_tracker

logger:
  default: info
  logs:
       homeassistant.components.evohome: debug
       custom_components.climate.evohome: debug
       homeassistant.components.automation: info
       homeassistant.components.switch.orvibo: error
       custom_components.evohome_cc: debug
       custom_components.climate.evohome_cc: debug
       custom_components.water_heater.evohome_cc: debug

# Enables the frontend
frontend:
  javascript_version: auto
  themes:  !include_dir_merge_named themes/
  extra_html_url:
    - /local/custom_ui/state-card-custom-ui.html
  extra_html_url_es5:
    - /local/custom_ui/state-card-custom-ui-es5.html

hacs:
  token: redacted

mobile_app:

discovery:

cloud:
  alexa:
    filter:
      include_domains:
        - lock
      include_entities:
        - media_player.master_bed_tv
        - media_player.kodi_lounge
        - media_player.kodi_bedroom
        - light.living_room_lamp
        - light.matthew_bed_lamp
        - light.sam_bed_lamp
        - light.dining_room_lamps
        - light.guest_bedroom_lamp
        - light.man_cave_lamp
        - light.master_bed_overhead_level
        - light.living_room_overhead_level
        - switch.down_stairs_bathroom_switch
        - switch.guest_bed_overhead_switch
        - switch.top_landing_switch_2
        - light.dining_room_overhead_level
        - switch.guest_bed_top_switch_2
        - switch.walk_in_wardrobe_switch
        - switch.first_floor_landing_switch
        - switch.front_hall_switch
        - switch.guest_bathroom_switch
        - switch.kitchen_switch_2
        - switch.kitchen_switch_3
        - switch.kitchen_switch
        - switch.rear_hall_switch_2
        - switch.rear_hall_switch_3
        - switch.master_bed_bathroom_switch
        - light.man_cave_level
        - switch.top_floor_bathroom_switch
        - light.dining_room_lamp
        - light.lounge_sofa_backlight
        - light.poster_backlight
        - switch.iron_switch
        - switch.aux_switch
        - switch.drying_rack_switch
        - switch.christmas_lights
        - switch.christmas_tree_switch
        - switch.livingroom_switch
        - light.living_room_colour
        - input_boolean.guest_mode
        - input_boolean.robot_vacuum
        - input_boolean.follow_music
        - group.living_room_lights
        - group.downstairs_lights
        - group.1st_floor_lights
        - group.top_floor_lights
        - sensor.netatmo_outdoor_module_temperature
        - switch.man_cave_switch
        - group.christmas
        - light.man_cave_backlight
        - switch.man_cave_pc
    entity_config:
      media_player.master_bed_tv:
        display_categories: TV
      light.matthew_bed_lamp:
        name: Matthews Lamp
      light.sam_bed_lamp:
        name: Sams Lamp
      sensor.netatmo_outdoor_module_temperature:
        name: Outdoor Temperature
        display_categories: TEMPERATURE_SENSOR
      switch.down_stairs_bathroom_switch:
        display_categories: LIGHT
      switch.guest_bed_overhead_switch:
        display_categories: LIGHT
      switch.top_landing_switch_2:
        display_categories: LIGHT
      switch.guest_bed_top_switch_2:
        display_categories: LIGHT
      switch.walk_in_wardrobe_switch:
        display_categories: LIGHT
      switch.first_floor_landing_switch:
        display_categories: LIGHT
      switch.front_hall_switch:
        display_categories: LIGHT
      switch.guest_bathroom_switch:
        display_categories: LIGHT
      switch.kitchen_switch_2:
        display_categories: LIGHT
      switch.kitchen_switch_3:
        display_categories: LIGHT
      switch.kitchen_switch:
        display_categories: LIGHT
      switch.rear_hall_switch_2:
        display_categories: LIGHT
      switch.rear_hall_switch_3:
        display_categories: LIGHT
      switch.master_bed_bathroom_switch:
        display_categories: LIGHT
      switch.top_floor_bathroom_switch:
        display_categories: LIGHT

config:

# Enables support for tracking state changes over time.
history:

# Allows you to issue voice commands from the frontend
conversation:

# Track the sun
sun:

# Checks for available updates
updater:

map:

system_health:

zone:
  - name: Work-S
    latitude: 54.178399
    longitude: -4.477652
    radius: 250
    icon: mdi:school

  - name: Work-M
    latitude: 54.149347
    longitude: -4.477368
    radius: 50 
    icon: mdi:office-building

  - name: Sams Parents
    latitude: 54.072920
    longitude: -4.657396
    icon: mdi:home

  - name: Matthews Parents
    latitude: 54.183077
    longitude: -4.464495
    icon: mdi:home

  - name: Cox Residence
    latitude: 54.160613
    longitude: -4.487735
    radius: 50
    icon: mdi:home

proximity:
  matthew_distance_to_home: 
    devices:
      - person.matthew
    tolerance: 50
    unit_of_measurement: m
  sam_distance_to_home: 
    devices:
      - person.sam
    tolerance: 50
    unit_of_measurement: m
  people_distance_to_home: 
    devices:
      - person.sam
      - person.matthew
    tolerance: 50
    unit_of_measurement: m

recorder:
  purge_interval: 1
  purge_keep_days: 7
  # db_url: redacted
  exclude:
    domains:
      - weblink
      - updater
    entities:
     - sensor.last_boot

emulated_hue:
  type: alexa
  exposed_domains:
    - light
    - switch

mqtt:
  broker: 192.168.0.126

tradfri:
  host: 192.168.0.230

customizer:
  custom_ui: local

alexa: !include alexa.yaml

zwave: 
  usb_path: /dev/ttyUSB-ZStick-5G
  autoheal: false

remote:
  - platform: harmony
    name: Lounge
    host: 192.168.0.135
remote 2:
  - platform: harmony
    name: Man Cave
    host: 192.168.0.137

#climate:
  #platform: honeywell
  #username: Redacted: redacted
  #password: redacted
  #away_temperature: 16
  #scan_interval: 400

evohome:
  username: redacted
  password: redacted
  scan_interval: 360

vacuum:
  platform: xiaomi_miio
  host: 192.168.0.170
  token: redacted
  name: QL Robot Vac

weather:
  - platform: darksky
    api_key: redacted
    mode: daily

ffmpeg:

tplink:

#google:
  #client_id: redacted
  #client_secret: redacted

tts:
  - platform: google_translate
    service_name: google_say
    language: 'en'
    time_memory: 7200

alexa_media:
  accounts:
    - email: redacted
      password: redacted
      url: amazon.co.uk
      scan_interval: 3600

plex:
  host: 192.168.0.113
  port: 32400
  token: redacted

unifi:
  controllers:
    - host: 192.168.0.126
      site: Default
      detection_time: 300
device_tracker:
  - platform: google_maps
    username: redacted
    max_gps_accuracy: 100
notify:
notify 2:
  platform: kodi
  name: Kodi_Lounge
  host: 192.168.0.63
  port: 80
  username: kodi
  password: redacted
notify 3:
  platform: kodi
  name: Kodi_Bedroom
  host: 192.168.0.64
  port: 80
  username: kodi
  password: redacted
notify 4:
  platform: kodi
  name: Kodi_Man_Cave
  host: 192.168.0.65
  port: 80
  username: kodi
  password: redacted
notify 5:
  - name: WebPush
    platform: html5
    vapid_pub_key: redacted
    vapid_prv_key: redacted
    vapid_email: redacted
notify 6:
  - platform: webostv
    host: 192.168.0.147
    name: Man Cave TV
notify 7:
  - platform: alexa_media
    name: alexa_media
ifttt:
  key: redacted
media_player 1:
  platform: kodi
  host: 192.168.0.63
  port: 80
  name: Kodi Lounge
  username: kodi
  password: redacted
media_player 2:
  platform: kodi
  host: 192.168.0.64
  port: 80
  name: Kodi Bedroom
  username: kodi
  password: redacted
media_player 3:
  platform: kodi
  host: 192.168.0.65
  port: 80
  name: Kodi Man Cave
  username: kodi
  password: redacted
media_player 4:
  platform: braviatv_psk
  name: Master Bed TV
  host: 192.168.0.154
  psk: sony
  mac: FC:F1:52:D8:2C:83
media_player 5:
  platform: braviatv_psk
  name: Living Room TV
  host: 192.168.0.132
  psk: sony
  mac: 70:26:05:FA:A4:64
  amp: True
  android: True

webostv:
  name: Man Cave TV
  host: 192.168.0.147

http:
  ssl_certificate: /root/.homeassistant/redacted.crt
  ssl_key: /root/.homeassistant/redacted.txt
  ip_ban_enabled: True
  login_attempts_threshold: 5
  base_url: redacted:8123

panel_custom:
  - name: zwavegraph2
    sidebar_title: ZWave Graph
    sidebar_icon: mdi:access-point-network
    url_path: zwave

#transmission:
#  host: 192.168.0.126
#  username: redacted
#  password: redacted
#  turtle_mode: True
#  monitored_conditions:
#     - 'current_status'
#     - 'download_speed'
#     - 'upload_speed'
#     - 'active_torrents'
#     - 'total_torrents'
#     - 'completed_torrents'

speedtestdotnet:
  scan_interval:
    hours: 12

person:
  - name: Matthew
    id: matthew4589
    user_id: redacted
    device_trackers:
      - redacted
      - redacted
  - name: Sam
    id: sam3459
    user_id: redacted
    device_trackers:
      - redacted
      - redacted
light: 
  - name: Guest Bedroom Lamp
    command_topic: milight/0x3A50/rgbw/2
    state_topic: milight/states/0x3A50/rgbw/2
    <<: &MILIGHT_PARAMSRGB
      platform: mqtt
      schema: json
      rgb: true
      brightness: true
      effect: true
      effect_list:
        - white_mode
        - night_mode
        - 0
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
  - name: spare
    command_topic: milight/0x3A50/rgbw/1
    state_topic: milight/states/0x3A50/rgbw/1
    <<: *MILIGHT_PARAMSRGB
  - name: Man Cave Lamp
    command_topic: milight/0x3A50/rgbw/3
    state_topic: milight/states/0x3A50/rgbw/3
    <<: *MILIGHT_PARAMSRGB
  - name: Poster Backlight
    command_topic: milight/0x3A50/rgbw/4
    state_topic: milight/states/0x3A50/rgbw/4
    <<: *MILIGHT_PARAMSRGB
  - name: Matthew Bed Lamp
    command_topic: milight/0x3A50/cct/3
    state_topic: milight/states/0x3A50/cct/3
    <<: &MILIGHT_PARAMSCCT
      platform: mqtt
      schema: json
      color_temp: true
      brightness: true
  - name: Sam Bed Lamp
    command_topic: milight/0x3A50/cct/4
    state_topic: milight/states/0x3A50/cct/4
    <<: *MILIGHT_PARAMSCCT
  - name: Lounge Sofa Backlight
    command_topic: milight/0x3A50/fut089/1
    state_topic: milight/states/0x3A50/fut089/1
    <<: &MILIGHT_PARAMSRGBCCT
      platform: mqtt
      schema: json
      color_temp: true
      rgb: true
      brightness: true
      hs: true
      effect: true
      effect_list:
        - white_mode
        - night_mode
        - 0
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
  - name: Living Room Lamp
    command_topic: milight/0x3A50/fut089/2
    state_topic: milight/states/0x3A50/fut089/2
    <<: *MILIGHT_PARAMSRGBCCT
  - name: Man Cave Backlight
    command_topic: milight/0x3A50/fut089/3
    state_topic: milight/states/0x3A50/fut089/3
    <<: *MILIGHT_PARAMSRGBCCT
light 2:
  - platform: group
    name: Living Room Colour
    entities:
     - light.living_room_lamp
     - light.lounge_sofa_backlight
     - light.poster_backlight
light 3:
  - platform: group
    name: Living Room Lamp-Sofa
    entities:
     - light.living_room_lamp
     - light.lounge_sofa_backlight
#netatmo:
  #api_key: 56bb082867e48262b1e3c308
  #secret_key: lpedyzscDC09oqHe0yBxVJXAVNEFA
  #username: redacted
  #password: redacted

google_assistant:
  project_id: assistant-redacted  service_account: !include Assistant-9f902fe09b0a.json
  secure_devices_pin: 'redacted'
  expose_by_default: false
  exposed_domains:
    - switch
    - light
    - lock
    - vacuum
  entity_config:
    switch.guest_bed_top_switch:
      expose: false
    switch.guest_bed_top_switch_3:
      expose: false
    light.man_cave_step_size:
      expose: false
    switch.top_landing_switch:
      expose: false
    switch.top_landing_switch_3:
      expose: false
    switch.rear_hall_switch:
      expose: false
    group.living_room_lights:
      expose: true
    light.dining_room_overhead_step_size:
      expose: false
    light.living_room_overhead_step_size:
      expose: false
    light.master_bed_overhead_step_size:
      expose: false
    switch.dining_room_overhead_switch:
      expose: false
    switch.living_room_overhead_switch:
      expose: false
    switch.master_bed_overhead_switch:
      expose: false
    switch.dishwasher_switch: 
      expose: false
    switch.washing_machine_switch:
      expose: false

ios:

switch:
  platform: orvibo
  discovery: false
  switches:
  - host: 192.168.0.140
    name: Livingroom_switch
  - host: 192.168.0.136
    name: Aux_switch
  - host: 192.168.0.139
    name: Christmas_tree_switch
  - host: 192.168.0.138
    name: Man_cave_switch
  - host: 192.168.0.243
    name: Drying_Rack_switch
  - host: 192.168.0.242
    name: Iron_switch
  - host: 192.168.0.235
    name: Christmas_Lights    

input_select:
  dishwasher_status:
    name: Dishwasher Status
    options:
      - Dirty
      - Running
      - Drying
      - Clean
      - Idle
    initial: Dirty
  washing_machine_status:
    name: Washing Machine Status
    options:
      - Idle
      - Running
      - Drying
      - Finishing
      - Clean
    initial: Idle
  house_mode:
    name: House Mode
    options:
      - Full Auto
      - Partial Auto
      - Manual Only
    initial: Partial Auto
  music_controller:
    name: Music Controller
    options:
      - lounge
      - kitchen
      - bedroom
    initial: lounge
  alexa:
    name: Alexa
    options:
      - None
      - Hallway
      - Living Room
      - Kitchen
      - Master Bedroom
      - 1st Floor
      - Man Cave
    initial: None
    icon: mdi:target

input_number:
  alexa_volume:
    name: Alexa Volume
    initial: 4
    min: 1
    max: 10
    step: 1 

input_text:
  alexa_tts:
    name: Alexa TTS
    initial: Hello

scene:
  - name: Livingroom Normal
    entities:
        light.living_room_lamp:
            state: on
            transition: 3
            brightness_pct: 60
        light.lounge_sofa_backlight:
            state: on
            transition: 3
            brightness_pct: 80
  - name: Livingroom Normal 2
    entities:
        light.living_room_overhead_level:
            state: on
            transition: 10
            brightness_pct: 30
  - name: Livingroom Playing media
    entities:
        light.living_room_lamp:
            state: on
            transition: 3
            brightness_pct: 5
        light.lounge_sofa_backlight:
            state: on
            transition: 3
            brightness_pct: 10
  - name: Livingroom Playing media 2
    entities:
        light.living_room_overhead_level:
            state: off
            transition: 10
  - name: Bedroom Normal
    entities:
        light.matthew_bed_lamp:
            state: on
            transition: 2
            brightness_pct: 60
        light.sam_bed_lamp:
            state: on
            transition: 2
            brightness_pct: 60
  - name: Bedroom Playing media
    entities:
        light.matthew_bed_lamp:
            state: on
            transition: 2
            brightness_pct: 2
        light.sam_bed_lamp:
            state: on
            transition: 2
            brightness_pct: 2
  - name: Man Cave Normal
    entities:
        light.man_cave_lamp:
            state: on
            transition: 2
            brightness_pct: 80
        light.man_cave_level:
            state: on
            transition: 4
            brightness_pct: 50
        light.man_cave_backlight:
            state: on
            transition: 4
            brightness_pct: 50
  - name: Man Cave Playing media
    entities:
        light.man_cave_lamp:
            state: on
            transition: 2
            brightness_pct: 10
        light.man_cave_level:
            state: on
            transition: 2
            brightness_pct: 5
        light.man_cave_backlight:
            state: on
            transition: 4
            brightness_pct: 5
  - name: Man Cave Normal 2
    entities:
        light.man_cave_lamp:
            state: on
            transition: 2
            brightness_pct: 80
        light.man_cave_level:
            state: on
            transition: 4
            brightness_pct: 50
        light.man_cave_backlight:
            state: on
            transition: 4
            brightness_pct: 50
  - name: Man Cave Playing media 2
    entities:
        light.man_cave_lamp:
            state: off
            transition: 2
        light.man_cave_level:
            state: off
            transition: 2
        light.man_cave_backlight:
            state: off
            transition: 4
#Kodi media playing autolights
automation: !include automations.yaml
script: !include scripts.yaml
input_boolean:
     alarm_on:
       name: Bedroom light on at 7:30
       icon: mdi:lamp
     auto_dim_lounge_on:
       name: Auto Dim Lounge
       icon: mdi:lightbulb-on-outline
     auto_dim_bedroom_on:
       name: Auto Dim Bedroom
       icon: mdi:lightbulb-on-outline
     auto_dim_man_cave_on:
       name: Auto Dim Man Cave
       icon: mdi:lightbulb-on-outline
     auto_lights_when_raining_on:
       name: Auto Lights When Raining
       icon: mdi:weather-rainy  
     auto_unlock_back_door:
       name: Auto Unlock Back Door
       icon: mdi:lock-open-outline
     auto_unlock_front_door:
       name: Auto Unlock Front Door
       icon: mdi:lock-open-outline
     auto_downstairs_light:
       name: Auto Downstairs Lights
       icon: mdi:lightbulb-on-outline
     auto_light_on_door_unlock:
       name: Auto Lights on door Unlock
       icon: mdi:lightbulb-on-outline
     auto_first_floor_light:
       name: Auto First Floor Lights
       icon: mdi:lightbulb-on-outline
     auto_top_floor_light:
       name: Auto Top Floor Lights
       icon: mdi:lightbulb-on-outline
     auto_man_cave_light:
       name: Auto Man Cave Lights
       icon: mdi:lightbulb-on-outline
     auto_dining_room_light:
       name: Auto Dining Room Lights
       icon: mdi:lightbulb-on-outline
     auto_living_room_light:
       name: Auto Living Room Lights
       icon: mdi:lightbulb-on-outline
     auto_kitchen_light:
       name: Auto Kitchen Lights
       icon: mdi:lightbulb-on-outline
     auto_lights_off:
       name: Auto Turn off Lights
       icon: mdi:lightbulb-on-outline
     auto_master_bath_light:
       name: Auto Master Bath Lights
       icon: mdi:lightbulb-on-outline
     auto_master_bath_light_off:
       name: Auto Master Bath Light Off
       icon: mdi:lightbulb-on-outline
     auto_walk_in_wardrobe_light_off:
       name: Auto Walk In Wardrobe Light Off
       icon: mdi:lightbulb-on-outline
     auto_walk_in_wardrobe_light_on:
       name: Auto Walk In Wardrobe Light On
       icon: mdi:lightbulb-on-outline
     motion_detected:
       name: motion detected
       icon: mdi:run
     back_door_status:
       name: back door status
       icon: mdi:glassdoor
     front_door_status:
       name: back door status
       icon: mdi:glassdoor
     security_system:
       name: Security System
       icon: mdi:security-home 
     lights_on_at_sunset:
       name: Lights on at Sunset
       icon: mdi:weather-sunset
     summer_mode:
       name: Summer Mode
       icon: mdi:weather-sunny
     guest_mode:
       name: Guest Mode
       icon: mdi:account-multiple-plus
     washing_machine_done:
       name: Washing Machine Done
       icon: mdi:account-multiple-plus
     auto_vacuum:
       name: Automatic Vacuuming
       icon: mdi:google-circles-group
     deadbolt_jammed:
       name: Deadbolf Jammed
       icon: mdi:lock
     robot_vacuum:
       name: Robot_Vacuum
       icon: mdi:google-circles-group
     on_holiday:
       name: On Holiday
       icon: mdi:beach
     follow_music:
       name: Follow Music
       icon: mdi:music-circle
alert:
  door_issue:
    name: One of the locks has Jammed
    entity_id: input_boolean.deadbolt_jammed
    message: One of the locks has Jammed!  Front Door {{ states('sensor.template_front_door_status')}} Back Door {{ states('sensor.template_back_door_status')}}
    done_message: Locks No longer Jammed
    state: 'on'
    repeat: 1
    can_acknowledge: True
    notifiers: webpush_matthewsnote10plus
  kitchen_flood:
    name: Flood detected in kitchen!
    entity_id: sensor.kitchen_flood_sensor_flood
    done_message: Flood no longer detected in kitchen!
    state: '2'
    repeat: 1
    can_acknowledge: True
    notifiers: webpush_matthewsnote10plus
  master_bathroom_flood:
    name: Flood detected in Master Bed Bathroom!
    entity_id: sensor.master_bed_bath_flood_sensor_flood
    done_message: Flood no longer detected in Master Bed Bathroom!
    state: '2'
    repeat: 1
    can_acknowledge: True
    notifiers: webpush_matthewsnote10plus
  back_door_open:
    name: Back Door Open!
    entity_id: input_boolean.back_door_status
    state: 'on'
    repeat: 3
    can_acknowledge: True
    notifiers: webpush_matthewsnote10plus
  motion_detected_absence:
    name: Motion Detected!
    entity_id: input_boolean.motion_detected
    state: 'on'
    repeat: 3
    can_acknowledge: True
    notifiers: webpush_matthewsnote10plus
  front_door_open:
    name: Front Door Open!
    entity_id: input_boolean.front_door_status
    state: 'on'
    repeat: 3
    can_acknowledge: True
    notifiers: webpush_matthewsnote10plus
  washing_machine_done:
    name: Washing Machine Done Empty it!
    entity_id: input_boolean.washing_machine_done
    state: 'on'
    repeat: 3
    can_acknowledge: True
    notifiers: webpush_matthewsnote10plus
  water_tank_flood:
    name: Flood detected near Water Tank!
    entity_id: sensor.water_tank_flood_sensor_flood
    done_message: Flood no longer detected near Water Tank!
    state: '2'
    repeat: 1
    can_acknowledge: True
    notifiers: webpush_matthewsnote10plus
sensor:
  platform: netatmo
  modules:
      - Living Room
      - Outdoor module
      - Bedroom
      - Man Cave
      - Guest Room
      - Rain Gauge
      - Wind Gauge
sensor 2:
  platform: darksky
  api_key: redacted
  monitored_conditions:
    - summary
    - icon
    - nearest_storm_distance
    - nearest_storm_bearing
    - precip_type
    - precip_intensity
    - precip_probability
    - temperature
    - apparent_temperature
    - dew_point
    - wind_speed
    - wind_bearing
    - cloud_cover
    - humidity
    - pressure
    - visibility
    - ozone
    - minutely_summary
    - hourly_summary
    - daily_summary
sensor 3:
  platform: loopenergy
  electricity:
    electricity_serial: redacted
    electricity_secret: redacted
  gas:
    gas_serial: redacted
    gas_secret: redacted
    gas_type: metric
sensor 4:
  platform: mold_indicator
  indoor_temp_sensor: sensor.average_man_cave_temp
  indoor_humidity_sensor: sensor.average_man_cave_humidity
  outdoor_temp_sensor: sensor.netatmo_outdoor_module_temperature
  calibration_factor: 1.15
sensor 5:
  platform: mold_indicator
  indoor_temp_sensor: sensor.average_master_bed_temp
  indoor_humidity_sensor: sensor.average_master_bed_humidity
  outdoor_temp_sensor: sensor.netatmo_outdoor_module_temperature
  calibration_factor: 1.15
sensor 6:
  platform: mold_indicator
  indoor_temp_sensor: sensor.average_living_room_temp
  indoor_humidity_sensor: sensor.average_living_room_humidity
  outdoor_temp_sensor: sensor.netatmo_outdoor_module_temperature
  calibration_factor: 1.15
sensor 8:
  platform: template
  sensors:
    template_back_door:
        value_template: >-
          {%- if is_state("binary_sensor.back_door_sensor_sensor", "on") -%}
            {%- if is_state("sensor.back_door_sensor_burglar", "0") -%}
              Tampered
            {%- else -%}
              Open
            {%- endif %}
          {%- else -%}
            Closed
          {%- endif %}
        friendly_name: 'Back Door'
sensor 9:
  platform: template
  sensors:
    template_walk_in_wardrobe_door:
        value_template: >-
          {%- if is_state("sensor.walk_in_wardrobe_sensor_access_control", "22") -%}
            {%- if is_state("sensor.walk_in_wardrobe_sensor_burglar", "0") -%}
              Tampered
            {%- else -%}
              Open
            {%- endif %}
          {%- else -%}
            Closed
          {%- endif %}
        friendly_name: 'Walk In Wardrobe Door'
sensor 10:
  platform: template
  sensors:
    template_hallway_motion_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.hallway_sensor_sensor", "on") -%}
            {%- if is_state("sensor.hallway_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Motion'
        icon_template: '{% if is_state("binary_sensor.hallway_sensor_sensor", "on") %}mdi:run-fast{%- elif is_state("hallway_sensor_burglar", "3") -%}mdi:vibrate{% else %}mdi:run{% endif %}'
sensor 11:
  platform: template
  sensors:
    template_kitchen_motion_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.kitchen_sensor_sensor", "on") -%}
            {%- if is_state("sensor.kitchen_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Motion'
        icon_template: '{% if is_state("binary_sensor.kitchen_sensor_sensor", "on") %}mdi:run-fast{%- elif is_state("sensor.kitchen_sensor_burglar", "3") -%}mdi:vibrate{% else %}mdi:run{% endif %}'
sensor 12:
  platform: template
  sensors:
    template_first_floor_motion_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.first_floor_landing_sensor_sensor", "on") -%}
            {%- if is_state("sensor.first_floor_landing_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Motion'
        icon_template: '{% if is_state("binary_sensor.first_floor_landing_sensor_sensor", "on") %}mdi:run-fast{%- elif is_state("sensor.first_floor_landing_sensor_burglar", "3") -%}mdi:vibrate{% else %}mdi:run{% endif %}'
sensor 13:
  platform: template
  sensors:
    template_master_bath_motion_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.master_bathroom_sensor_sensor", "on") -%}
            {%- if is_state("sensor.master_bathroom_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Motion'
        icon_template: '{% if is_state("binary_sensor.master_bathroom_sensor_sensor", "on") %}mdi:run-fast{%- elif is_state("sensor.master_bathroom_sensor_burglar", "3") -%}mdi:vibrate{% else %}mdi:run{% endif %}'
sensor 14:
  platform: template
  sensors:
    template_security_system:
        value_template: >-
          {%- if is_state("input_boolean.security_system", "on") -%}
            {%- if is_state("input_boolean.security_system", "unknown") -%}
              Tampered
            {%- else -%}
              Armed
            {%- endif %}
          {%- else -%}
            Disarmed
          {%- endif %}
        friendly_name: 'Security System'
sensor 15:
  platform: template
  sensors:
    template_motion_detected:
        value_template: >-
          {%- if is_state("input_boolean.motion_detected", "on") -%}
            {%- if is_state("input_boolean.motion_detected", "unknown") -%}
              Tampered
            {%- else -%}
              Motion Detected!
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Motion Detected'
sensor 16:
  platform: template
  sensors:
      template_back_door_status:
          value_template: '{{ states.lock.back_door_locked.attributes.lock_status }}'
          friendly_name: 'Back Door'
sensor 17:
  platform: template
  sensors:
    template_front_hall_motion_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.front_hall_sensor_sensor", "on") -%}
            {%- if is_state("sensor.front_hall_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Motion'
        icon_template: '{% if is_state("binary_sensor.front_hall_sensor_sensor", "on") %}mdi:run-fast{%- elif is_state("sensor.front_hall_sensor_burglar", "3") -%}mdi:vibrate{% else %}mdi:run{% endif %}'
sensor 18:
  platform: template
  sensors:
    template_front_door:
        value_template: >-
          {%- if is_state("binary_sensor.front_door_sensor_sensor", "on") -%}
            {%- if is_state("sensor.front_door_sensor_burglar", "0") -%}
              Tampered
            {%- else -%}
              Open
            {%- endif %}
          {%- else -%}
            Closed
          {%- endif %}
        friendly_name: 'Front Door'
sensor 19:
  platform: template
  sensors:
      template_front_door_status:
          value_template: '{{ states.lock.front_door_locked.attributes.lock_status }}'
          friendly_name: 'Front Door'
sensor 20:
  platform: template
  sensors:
      template_back_door_unlock_status:
          value_template: >-
               {% if is_state('sensor.back_door_alarm_level', '1') and is_state('sensor.back_door_alarm_type', '19') %} Matthew 
               {% elif is_state('sensor.back_door_alarm_level', '2') and is_state('sensor.back_door_alarm_type', '19') %} Sam 
               {% elif is_state('sensor.back_door_alarm_level', '3') and is_state('sensor.back_door_alarm_type', '19') %} Guest 1 
               {% elif is_state('sensor.back_door_alarm_level', '4') and is_state('sensor.back_door_alarm_type', '19') %} Guest 2 
               {% elif is_state('sensor.back_door_alarm_level', '5') and is_state('sensor.back_door_alarm_type', '19') %} Guest 3 
               {% elif is_state('sensor.back_door_alarm_level', '5') and is_state('sensor.back_door_alarm_type', '19') %} Guest 3 
               {% elif is_state('sensor.back_door_alarm_level', '1') and is_state('sensor.back_door_alarm_type', '25') %} Home Assistant
               {% else %}
                   Unknown: {{states.lock.back_door_locked.attributes.lock_status}}
               {% endif %}
          friendly_name: 'Last Unlocked by'
sensor 21:
  - platform: template
    sensors:
      living_room_remote:
        value_template: '{{ states.remote.lounge.attributes.current_activity }}'
        friendly_name: 'Remote'
sensor 23:
  - platform: systemmonitor
    resources:
      - type: disk_free
        arg: /home
      - type: disk_use_percent
        arg: /home
      - type: disk_free
        arg: /root
      - type: disk_use_percent
        arg: /root          
      - type: memory_free
      - type: processor_use
      - type: load_15m
      - type: memory_use_percent
      - type: last_boot
sensor 24:
  platform: template
  sensors:
    template_front_hall_occupancy_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.front_hall_sensor_sensor", "on") -%}
            {%- if is_state("sensor.master_bathroom_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Front Hall'
        icon_template: '{% if is_state("binary_sensor.front_hall_sensor_sensor", "on") %}mdi:home-variant{% else %}mdi:home-outline{% endif %}'
sensor 25:
  platform: template
  sensors:
    template_hallway_occupancy_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.hallway_sensor_sensor", "on") -%}
            {%- if is_state("sensor.hallway_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Rear Hallway'
        icon_template: '{% if is_state("binary_sensor.hallway_sensor_sensor", "on") %}mdi:home-variant{% else %}mdi:home-outline{% endif %}'
sensor 26:
  platform: template
  sensors:
    template_kitchen_occupancy_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.kitchen_sensor_sensor", "on") -%}
            {%- if is_state("sensor.kitchen_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Kitchen'
        icon_template: '{% if is_state("binary_sensor.kitchen_sensor_sensor", "on") %}mdi:home-variant{% else %}mdi:home-outline{% endif %}'
sensor 27:
  platform: template
  sensors:
    template_first_floor_landing_occupancy_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.first_floor_landing_sensor_sensor", "on") -%}
            {%- if is_state("sensor.first_floor_landing_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'First Floor Landing'
        icon_template: '{% if is_state("binary_sensor.first_floor_landing_sensor_sensor", "on") %}mdi:home-variant{% else %}mdi:home-outline{% endif %}'
sensor 28:
  platform: template
  sensors:
    template_master_bathroom_occupancy_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.master_bathroom_sensor_sensor", "on") -%}
            {%- if is_state("sensor.master_bathroom_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Master Bathroom'
        icon_template: '{% if is_state("binary_sensor.master_bathroom_sensor_sensor", "on") %}mdi:home-variant{% else %}mdi:home-outline{% endif %}'
sensor 29:
  platform: template
  sensors:
    template_living_room_motion_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.living_room_sensor_sensor", "on") -%}
            {%- if is_state("sensor.living_room_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Motion'
        icon_template: '{% if is_state("binary_sensor.living_room_sensor_sensor", "on") %}mdi:run-fast{%- elif is_state("sensor.living_room_sensor_burglar", "3") -%}mdi:vibrate{% else %}mdi:run{% endif %}'
sensor 30:
  platform: template
  sensors:
    template_master_bedroom_motion_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.master_bedroom_sensor_sensor", "on") -%}
            {%- if is_state("sensor.master_bedroom_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Motion'
        icon_template: '{% if is_state("binary_sensor.master_bedroom_sensor_sensor", "on") %}mdi:run-fast{%- elif is_state("sensor.master_bedroom_sensor_burglar", "3") -%}mdi:vibrate{% else %}mdi:run{% endif %}'
sensor 31:
  platform: template
  sensors:
    template_master_bedroom_occupancy_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.master_bedroom_sensor_sensor", "on") -%}
            {%- if is_state("sensor.master_bedroom_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Master Bedroom'
        icon_template: '{% if is_state("binary_sensor.master_bedroom_sensor_sensor", "on") %}mdi:home-variant{% else %}mdi:home-outline{% endif %}'
sensor 32:
  platform: template
  sensors:
    template_living_room_occupancy_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.living_room_sensor_sensor", "on") -%}
            {%- if is_state("sensor.living_room_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Living Room'
        icon_template: '{% if is_state("binary_sensor.living_room_sensor_sensor", "on") %}mdi:home-variant{% else %}mdi:home-outline{% endif %}'
sensor 33:
  platform: mold_indicator
  indoor_temp_sensor: sensor.master_bathroom_sensor_temperature
  indoor_humidity_sensor: sensor.master_bathroom_sensor_relative_humidity
  outdoor_temp_sensor: sensor.netatmo_outdoor_module_temperature
  calibration_factor: 1.15
sensor 34:
  platform: mold_indicator
  indoor_temp_sensor: sensor.kitchen_sensor_temperature
  indoor_humidity_sensor: sensor.kitchen_sensor_relative_humidity
  outdoor_temp_sensor: sensor.netatmo_outdoor_module_temperature
  calibration_factor: 1.15
sensor 35: 
  platform: min_max
  type: mean
  name: Average Indoor Temp
  entity_ids:
      - sensor.kitchen_sensor_temperature
      - sensor.living_room_sensor_temperature
      - sensor.master_bedroom_sensor_temperature
      - sensor.master_bathroom_sensor_temperature
      - sensor.netatmo_guest_room_temperature
      - sensor.netatmo_man_cave_temperature
      - sensor.hallway_sensor_temperature
      - sensor.front_hall_sensor_temperature
      - sensor.first_floor_landing_sensor_temperature
      - sensor.dining_room_sensor_temperature
      - sensor.man_cave_sensor_temperature
      - sensor.guest_bedroom_sensor_temperature
sensor 36: 
  platform: min_max
  type: mean
  name: Average Indoor Humidity
  entity_ids:
      - sensor.kitchen_sensor_relative_humidity
      - sensor.living_room_sensor_relative_humidity
      - sensor.master_bathroom_sensor_relative_humidity
      - sensor.master_bedroom_sensor_relative_humidity
      - sensor.netatmo_guest_room_humidity
      - sensor.netatmo_man_cave_humidity
      - sensor.hallway_sensor_relative_humidity
      - sensor.front_hall_sensor_relative_humidity
      - sensor.first_floor_landing_sensor_relative_humidity
      - sensor.man_cave_sensor_relative_humidity
      - sensor.dining_room_sensor_relative_humidity
      - sensor.top_floor_landing_sensor_humidy
      - sensor.guest_bedroom_sensor_humidity
sensor 37: 
  platform: min_max
  type: mean
  name: Average Lux
  entity_ids:
      - sensor.kitchen_sensor_luminance
      - sensor.front_hall_sensor_luminance
      - sensor.hallway_sensor_luminance
      - sensor.first_floor_landing_sensor_luminance
      - sensor.master_bathroom_sensor_luminance
      - sensor.master_bedroom_sensor_luminance
      - sensor.living_room_sensor_luminance
      - sensor.dining_room_sensor_luminance
      - sensor.man_cave_sensor_luminance
      - sensor.top_floor_landing_sensor_luminance
      - sensor.guest_bedroom_sensor_luminance
sensor 38:
  platform: template
  sensors:
    template_dining_room_motion_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.dining_room_sensor_sensor", "on") -%}
            {%- if is_state("sensor.dining_room_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Motion'
        icon_template: '{% if is_state("binary_sensor.dining_room_sensor_sensor", "on") %}mdi:run-fast{%- elif is_state("sensor.dining_room_sensor_burglar", "3") -%}mdi:vibrate{% else %}mdi:run{% endif %}'
sensor 39:
  platform: template
  sensors:
    template_man_cave_motion_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.man_cave_sensor_sensor", "on") -%}
            {%- if is_state("sensor.man_cave_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Motion'
        icon_template: '{% if is_state("binary_sensor.man_cave_sensor_sensor", "on") %}mdi:run-fast{%- elif is_state("sensor.man_cave_sensor_burglar", "3") -%}mdi:vibrate{% else %}mdi:run{% endif %}'
sensor 40:
  platform: template
  sensors:
    template_man_cave_occupancy_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.man_cave_sensor_sensor", "on") -%}
            {%- if is_state("sensor.man_cave_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Man Cave'
        icon_template: '{% if is_state("binary_sensor.man_cave_sensor_sensor", "on") %}mdi:home-variant{% else %}mdi:home-outline{% endif %}'
sensor 41:
  platform: template
  sensors:
    template_dining_room_occupancy_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.dining_room_sensor_sensor", "on") -%}
            {%- if is_state("sensor.dining_room_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Dining Room'
        icon_template: '{% if is_state("binary_sensor.dining_room_sensor_sensor", "on") %}mdi:home-variant{% else %}mdi:home-outline{% endif %}'
sensor 42:
  platform: template
  sensors:
    template_washing_machine_door_status:
        value_template: >-
          {%- if is_state("sensor.washing_machine_door_access_control", "22") -%}
            {%- if is_state("sensor.washing_machine_door_burglar", "0") -%}
              Tampered
            {%- else -%}
              Open
            {%- endif %}
          {%- else -%}
            Closed
          {%- endif %}
        friendly_name: 'Washing Machine Door'
sensor 43:
  platform: template
  sensors:
    template_kitchen_flood_status:
        value_template: >-
          {%- if is_state("sensor.kitchen_flood_sensor_flood", "2") -%}
            {%- if is_state("sensor.kitchen_flood_sensor_burglar", "0") -%}
              Tampered
            {%- else -%}
              Water Detected
            {%- endif %}
          {%- else -%}
            Dry
          {%- endif %}
        friendly_name: 'Kitchen Flood Sensor'
sensor 44:
    platform: template
    sensors:
      washing_machine_status:
        value_template: '{{ states.input_select.washing_machine_status.state}}'
        friendly_name: 'Washing Machine Status'
      dishwasher_status:
        value_template: '{{ states.input_select.dishwasher_status.state}}'
        friendly_name: 'Dishwasher Status'
sensor 45:
  - platform: statistics
    entity_id: sensor.dishwasher_power
  - platform: statistics
    entity_id: sensor.washing_machine_power
sensor 46:
  platform: template
  sensors:
    template_master_bathroom_status:
        value_template: >-
          {%- if is_state("sensor.master_bed_bath_flood_sensor_flood", "2") -%}
            {%- if is_state("sensor.master_bed_bath_flood_sensor_burglar", "0") -%}
              Tampered
            {%- else -%}
              Water Detected
            {%- endif %}
          {%- else -%}
            Dry
          {%- endif %}
        friendly_name: 'Master Bath Flood Sensor'
sensor 47:
    platform: template
    sensors:
      people_home:
        value_template: >-
         {%- if is_state("person.matthew", "home")
          or is_state("person.sam", "home")
          or is_state("sensor.template_dining_room_occupancy_sensor", "yes")
          or is_state("sensor.template_living_room_occupancy_sensor", "yes")
          or is_state("sensor.template_man_cave_occupancy_sensor", "yes")
          or is_state("sensor.template_master_bedroom_occupancy_sensor", "yes")
          or is_state("sensor.template_master_bathroom_occupancy_sensor", "yes")
          or is_state("sensor.template_first_floor_landing_occupancy_sensor", "yes")
          or is_state("sensor.template_kitchen_occupancy_sensor", "yes")
          or is_state("sensor.template_hallway_occupancy_sensor", "yes")
          or is_state("sensor.template_front_hall_occupancy_sensor", "yes")
          or is_state("sensor.template_top_floor_landing_occupancy_sensor", "yes")
          or is_state("sensor.template_guest_bedroom_occupancy_sensor", "yes")
              -%}
          Yes
          {%- else -%}
          No
          {%- endif %}
        entity_id:
          - person.matthew
          - person.sam
          - sensor.template_dining_room_occupancy_sensor
          - sensor.template_living_room_occupancy_sensor
          - sensor.template_man_cave_occupancy_sensor
          - sensor.template_master_bedroom_occupancy_sensor
          - sensor.template_master_bathroom_occupancy_sensor
          - sensor.template_first_floor_landing_occupancy_sensor
          - sensor.template_kitchen_occupancy_sensor
          - sensor.template_hallway_occupancy_sensor
          - sensor.template_front_hall_occupancy_sensor
          - sensor.template_top_floor_landing_occupancy_sensor
          - sensor.template_guest_bedroom_occupancy_sensor
        friendly_name: People Home
        icon_template: '{% if is_state("sensor.people_home", "Yes") %}mdi:home-variant{% else %}mdi:home-outline{% endif %}'
sensor 48:
  platform: template
  sensors:
    template_top_floor_landing_occupancy_sensor:
        value_template: >-
          {%- if is_state("sensor.top_floor_landing_sensor_burglar", "8") -%}
            {%- if is_state("sensor.top_floor_landing_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Top Floor Landing'
        icon_template: '{% if is_state("sensor.top_floor_landing_sensor_burglar", "8") %}mdi:home-variant{% else %}mdi:home-outline{% endif %}'
sensor 49:
  platform: template
  sensors:
    template_water_tank_status:
        value_template: >-
          {%- if is_state("sensor.water_tank_flood_sensor_flood", "2") -%}
            {%- if is_state("sensor.water_tank_flood_sensor_burglar", "0") -%}
              Tampered
            {%- else -%}
              Water Detected
            {%- endif %}
          {%- else -%}
            Dry
          {%- endif %}
        friendly_name: 'Water Tank Flood Sensor'
sensor 50:
  platform: template
  sensors:
    template_top_floor_landing_motion_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.top_floor_landing_sensor_sensor", "on") -%}
            {%- if is_state("sensor.top_floor_landing_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Motion'
        icon_template: '{% if is_state("binary_sensor.top_floor_landing_sensor_sensor", "on") %}mdi:run-fast{%- elif is_state("sensor.top_floor_landing_sensor_burglar", "3") -%}mdi:vibrate{% else %}mdi:run{% endif %}'
sensor 51:
  platform: version
sensor 52:
  platform: template
  sensors:
    template_guest_bedroom_occupancy_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.guest_bedroom_sensor_sensor", "on") -%}
            {%- if is_state("sensor.guest_bedroom_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Guest Bedroom'
        icon_template: '{% if is_state("binary_sensor.guest_bedroom_sensor_sensor", "on") %}mdi:home-variant{% else %}mdi:home-outline{% endif %}'
sensor 53:
  platform: template
  sensors:
    template_guest_bedroom_motion_sensor:
        value_template: >-
          {%- if is_state("binary_sensor.guest_bedroom_sensor_sensor", "on") -%}
            {%- if is_state("sensor.guest_bedroom_sensor_burglar", "3") -%}
              Tampered
            {%- else -%}
              Yes
            {%- endif %}
          {%- else -%}
            No
          {%- endif %}
        friendly_name: 'Motion'
        icon_template: '{% if is_state("binary_sensor.guest_bedroom_sensor_sensor", "on") %}mdi:run-fast{%- elif is_state("sensor.guest_bedroom_sensor_burglar", "3") -%}mdi:vibrate{% else %}mdi:run{% endif %}'
sensor 54: 
  platform: min_max
  type: mean
  name: Average Living Room Temp
  entity_ids:
      - sensor.living_room_sensor_temperature
      - sensor.netatmo_living_room_temperature
      - sensor.living_room_thermostat_temperature
sensor 55: 
  platform: min_max
  type: mean
  name: Average Master Bed Temp
  entity_ids:
      - sensor.master_bedroom_sensor_temperature
      - sensor.netatmo_bedroom_temperature
      - sensor.master_bed_thermostat_temperature
sensor 56: 
  platform: min_max
  type: mean
  name: Average Downstairs Temp
  entity_ids:
      - sensor.kitchen_sensor_temperature
      - sensor.living_room_sensor_temperature
      - sensor.hallway_sensor_temperature
      - sensor.front_hall_sensor_temperature
      - sensor.dining_room_sensor_temperature
sensor 57: 
  platform: min_max
  type: mean
  name: Average Upstairs Temp
  entity_ids:
      - sensor.first_floor_landing_sensor_temperature
      - sensor.master_bedroom_sensor_temperature
      - sensor.master_bathroom_sensor_temperature
      - sensor.netatmo_guest_room_temperature
      - sensor.guest_bedroom_sensor_temperature
      - sensor.netatmo_man_cave_temperature
sensor 58:
  platform: season
  type: meteorological 
sensor 59:
  platform: template
  sensors:
    living_room_thermostat_temperature:
        value_template: >-
         {{ states.climate.living_room.attributes.current_temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Living Room Thermostat Temp'
sensor 60:
  platform: template
  sensors:
    master_bed_thermostat_temperature:
        value_template: >-
         {{ states.climate.master_bed.attributes.current_temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Master Bed Thermostat Temp'
sensor 61:
  platform: template
  sensors:
    season_icons:
        value_template: >-
         {{ states('sensor.season') }}
        friendly_name: 'Season'
        icon_template: '{% if is_state("sensor.season", "summer") %}mdi:weather-sunny{%- elif is_state("sensor.season", "autumn") -%}mdi:leaf{%- elif is_state("sensor.season", "winter") -%}mdi:snowflake{%- elif is_state("sensor.season", "spring") -%}mdi:flower{% else %}mdi:image-filter-vintage{% endif %}'
sensor 62: 
  platform: min_max
  type: mean
  name: Average Downstairs Humidity
  entity_ids:
      - sensor.kitchen_sensor_relative_humidity
      - sensor.living_room_sensor_relative_humidity
      - sensor.hallway_sensor_relative_humidity
      - sensor.front_hall_sensor_relative_humidity
      - sensor.dining_room_sensor_relative_humidity
      - sensor.top_floor_landing_sensor_humidy
      - sensor.guest_bedroom_sensor_humidity
      - sensor.netatmo_living_room_humidity  
sensor 63: 
  platform: min_max
  type: mean
  name: Average Upstairs Humidity
  entity_ids:
      - sensor.master_bathroom_sensor_relative_humidity
      - sensor.master_bedroom_sensor_relative_humidity
      - sensor.netatmo_guest_room_humidity
      - sensor.netatmo_man_cave_humidity
      - sensor.first_floor_landing_sensor_relative_humidity
      - sensor.man_cave_sensor_relative_humidity
      - sensor.top_floor_landing_sensor_humidy
      - sensor.guest_bedroom_sensor_humidity
sensor 64: 
  platform: min_max
  type: mean
  name: Average Living Room Humidity
  entity_ids:
      - sensor.living_room_sensor_relative_humidity
      - sensor.netatmo_living_room_humidity 
sensor 65: 
  platform: min_max
  type: mean
  name: Average Master Bed Humidity
  entity_ids:
      - sensor.master_bedroom_sensor_relative_humidity
      - sensor.netatmo_bedroom_humidity
sensor 66:
  platform: template
  sensors:
    robot_vac_battery_level:
        value_template: >-
         {{ states.vacuum.ql_robot_vac.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Battery Level'
sensor 67:
  platform: template
  sensors:
    robot_vac_status:
        value_template: >-
         {{ states('vacuum.ql_robot_vac') }}
        friendly_name: 'Status'
sensor 68:
  platform: uptime
sensor 69:
  platform: template
  sensors:
    man_cave_thermostat_temperature:
        value_template: >-
         {{ states.climate.man_cave.attributes.current_temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Man Cave Thermostat Temp'
sensor 70: 
  platform: min_max
  type: mean
  name: Average Man Cave Temp
  entity_ids:
      - sensor.man_cave_sensor_temperature
      - sensor.netatmo_man_cave_temperature
      - sensor.man_cave_thermostat_temperature
sensor 71:
  platform: template
  sensors:
    front_door_lock_battery_level:
        value_template: >-
         {{ states.zwave.front_door.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Lock Battery Level'
sensor 72:
  platform: template
  sensors:
    back_door_lock_battery_level:
        value_template: >-
         {{ states.zwave.back_door.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Lock Battery Level'
sensor 73:
  - platform: template
    sensors:
      man_cave_remote:
        value_template: '{{ states.remote.man_cave.attributes.current_activity }}'
        friendly_name: 'Remote'
sensor 74: 
  platform: min_max
  type: mean
  name: Average Man Cave Humidity
  entity_ids:
      - sensor.man_cave_sensor_relative_humidity
      - sensor.netatmo_man_cave_humidity
sensor 75:
  platform: template
  sensors:
    last_motion:
      friendly_name: 'Last Motion'
      value_template: >
       {%- set sensors = [states.sensor.template_dining_room_occupancy_sensor, states.sensor.template_living_room_occupancy_sensor, states.sensor.template_man_cave_occupancy_sensor, states.sensor.template_master_bedroom_occupancy_sensor, states.sensor.template_master_bathroom_occupancy_sensor, states.sensor.template_first_floor_landing_occupancy_sensor, states.sensor.template_kitchen_occupancy_sensor, states.sensor.template_hallway_occupancy_sensor, states.sensor.template_front_hall_occupancy_sensor, states.sensor.template_top_floor_landing_occupancy_sensor, states.sensor.template_guest_bedroom_occupancy_sensor] %}
       {% for sensor in sensors %}
         {% if as_timestamp(sensor.last_changed) == as_timestamp(sensors | map(attribute='last_changed') | max) %}
           {{ sensor.name }}
         {% endif %}
       {% endfor %}
sensor 77:
  platform: template
  sensors:
    front_lock_unlock_status:
        friendly_name: 'Last Unlocked by'
        value_template: > 
         {% if is_state('sensor.front_door_alarm_level', '1') and is_state('sensor.front_door_alarm_type', '144') %} Matthews Tag 
         {% elif is_state('sensor.front_door_alarm_level', '2') and is_state('sensor.front_door_alarm_type', '144') %} Sams Tag 
         {% elif is_state('sensor.front_door_alarm_level', '3') and is_state('sensor.front_door_alarm_type', '144') %} Sams Card
         {% elif is_state('sensor.front_door_alarm_level', '4') and is_state('sensor.front_door_alarm_type', '144') %} Guest Card or Tag
         {% elif is_state('sensor.front_door_alarm_level', '5') and is_state('sensor.front_door_alarm_type', '144') %} Guest Card or Tag
         {% elif is_state('sensor.front_door_alarm_level', '1') and is_state('sensor.front_door_alarm_type', '16') %} Bluetooth
         {% elif is_state('sensor.front_door_alarm_level', '1') and is_state('sensor.front_door_alarm_type', '25') %} Home Assistant
         {% else %}
           Unknown: {{states.lock.front_door_locked.attributes.lock_status}}
         {% endif %}
sensor 78:
  platform: template
  sensors:
    back_door_sensor_battery_level:
        value_template: >-
         {{ states.zwave.back_door_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Back Door Sensor'
sensor 79:
  platform: template
  sensors:
    dining_room_sensor_battery_level:
        value_template: >-
         {{ states.zwave.dining_room_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Dining Room Sensor'
sensor 80:
  platform: template
  sensors:
    dishwasher_door_battery_level:
        value_template: >-
         {{ states.zwave.dishwasher_door.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Dishwasher Door Sensor'
sensor 81:
  platform: template
  sensors:
    first_floor_landing_sensor_battery_level:
        value_template: >-
         {{ states.zwave.first_floor_landing_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'First Floor Landing Sensor'
sensor 82:
  platform: template
  sensors:
    freezer_door_battery_level:
        value_template: >-
         {{ states.zwave.freezer_door.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Freezer Door' 
sensor 83:
  platform: template
  sensors:
    fridge_door_battery_level:
        value_template: >-
         {{ states.zwave.fridge_door.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Fridge Door'
sensor 84:
  platform: template
  sensors:
    front_door_sensor_battery_level:
        value_template: >-
         {{ states.zwave.front_door_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Front Door Sensor'
sensor 85:
  platform: template
  sensors:
    front_hall_sensor_battery_level:
        value_template: >-
         {{ states.zwave.front_hall_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Front Hall Sensor'
sensor 86:
  platform: template
  sensors:
    guest_bedroom_sensor_battery_level:
        value_template: >-
         {{ states.zwave.guest_bedroom_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Guest Bedroom Sensor'
sensor 87:
  platform: template
  sensors:
    rear_hallway_sensor_battery_level:
        value_template: >-
         {{ states.zwave.hallway_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Rear Hallway Sensor'
sensor 88:
  platform: template
  sensors:
    kitchen_flood_sensor_battery_level:
        value_template: >-
         {{ states.zwave.kitchen_flood_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Kitchen Flood Sensor'
sensor 89:
  platform: template
  sensors:
    kitchen_sensor_battery_level:
        value_template: >-
         {{ states.zwave.kitchen_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Kitchen Sensor'
sensor 90:
  platform: template
  sensors:
    living_room_door_sensor_battery_level:
        value_template: >-
         {{ states.zwave.living_room_door_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Living Room Door Sensor'
sensor 91:
  platform: template
  sensors:
    living_room_sensor_battery_level:
        value_template: >-
         {{ states.zwave.living_room_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Living Room Sensor'
sensor 92:
  platform: template
  sensors:
    man_cave_sensor_battery_level:
        value_template: >-
         {{ states.zwave.man_cave_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Man Cave Sensor'
sensor 93:
  platform: template
  sensors:
    master_bathroom_sensor_battery_level:
        value_template: >-
         {{ states.zwave.master_bathroom_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Master Bathroom Sensor'
sensor 94:
  platform: template
  sensors:
    master_bedroom_sensor_battery_level:
        value_template: >-
         {{ states.zwave.master_bedroom_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Master Bedroom Sensor'
sensor 95:
  platform: template
  sensors:
    top_floor_landing_sensor_battery_level:
        value_template: >-
         {{ states.zwave.top_floor_landing_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Top Floor Landing Sensor'
sensor 96:
  platform: template
  sensors:
    walk_in_wardrobe_sensor_battery_level:
        value_template: >-
         {{ states.zwave.walk_in_wardrobe_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Walk in Wardrobe Sensor'
sensor 97:
  platform: template
  sensors:
    washing_machine_door_battery_level:
        value_template: >-
         {{ states.zwave.washing_machine_door.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Washing Machine Door'
sensor 98:
  platform: template
  sensors:
    water_tank_flood_sensor_battery_level:
        value_template: >-
         {{ states.zwave.water_tank_flood_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Water Tank Flood Sensor'
sensor 99:
  platform: template
  sensors:
    master_bathroom_flood_sensor_battery_level:
        value_template: >-
         {{ states.zwave.master_bed_bath_flood_sensor.attributes.battery_level }} 
        unit_of_measurement: '%'
        device_class: battery
        friendly_name: 'Master Bed Flood Sensor'
sensor 101:
  platform: template
  sensors:
    matthews_phone_current_access_point:
        value_template: >-
         {% if is_state_attr('redacted','ap_mac','f0:9f:c2:30:df:ad') and is_state ('person.matthew','home') %}
           Lounge
         {% elif is_state_attr('redacted','ap_mac','f0:9f:c2:7c:ef:68') and is_state ('person.matthew','home') %}
           Hallway
         {% elif is_state_attr('redacted','ap_mac','f0:9f:c2:33:e5:52') and is_state ('person.matthew','home') %}
          1st Floor
         {% elif is_state_attr('redacted','ap_mac','fc:ec:da:b6:0c:77') and is_state ('person.matthew','home') %}
          Man Cave
          {% else %}
            Unknown or Away
          {% endif %}
        friendly_name: 'Matthews Phone AP'
        entity_id:
           - person.matthew
           - redacted
sensor 102:
  platform: template
  sensors:
    sams_phone_current_access_point:
        value_template: >-
         {% if is_state_attr('redacted','ap_mac','f0:9f:c2:30:df:ad') and is_state ('person.sam','home') %}
           Lounge
         {% elif is_state_attr('redacted','ap_mac','f0:9f:c2:7c:ef:68') and is_state ('person.sam','home') %}
           Hallway
         {% elif is_state_attr('redacted','ap_mac','f0:9f:c2:33:e5:52') and is_state ('person.sam','home') %}
          1st Floor
         {% elif is_state_attr('redacted','ap_mac','fc:ec:da:b6:0c:77') and is_state ('person.sam','home') %}
          Man Cave
          {% else %}
            Unknown or Away
          {% endif %}
        friendly_name: 'Sams Phone AP'
        entity_id:
           - person.sam
           - redacted
sensor 103: 
  platform: min_max
  type: mean
  name: Average Indoor Co2
  entity_ids:
      - sensor.netatmo_guest_room_co2
      - sensor.netatmo_man_cave_co2
      - sensor.netatmo_living_room_co2
      - sensor.netatmo_bedroom_co2
sensor 104:
  platform: template
  sensors:
    evohome_current_mode:
        value_template: >-
         {% if state_attr('climate.ql_home', 'status').system_mode_status.mode == "Auto" %}
           Following Schedule
         {% elif state_attr('climate.ql_home', 'status').system_mode_status.mode == "AutoWithEco" %}
           Economy
         {% elif state_attr('climate.ql_home', 'status').system_mode_status.mode == "Away" %}
           Away
         {% elif state_attr('climate.ql_home', 'status').system_mode_status.mode == "DayOff" %}
           Day Off
         {% elif state_attr('climate.ql_home', 'status').system_mode_status.mode == "Custom" %}
           Summer
         {% elif state_attr('climate.ql_home', 'status').system_mode_status.mode == "HeatingOff" %}
           Heating Off
          {% else %}
         {{ state_attr('climate.ql_home', 'status').system_mode_status.mode }}
          {% endif %}
sensor 105: 
  platform: min_max
  type: mean
  name: Average Hallway Temp
  entity_ids:
      - sensor.front_hall_sensor_temperature
      - sensor.hallway_sensor_temperature
      - sensor.front_hall_thermostat_temperature
      - sensor.rear_hall_thermostat_temperature
sensor 106:
  platform: template
  sensors:
    front_hall_thermostat_temperature:
        value_template: >-
         {{ states.climate.hall.attributes.current_temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Front Hall Thermostat Temp'
sensor 107:
  platform: template
  sensors:
    rear_hall_thermostat_temperature:
        value_template: >-
         {{ states.climate.rear_hall.attributes.current_temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Rear Hall Thermostat Temp'
sensor 108:
  platform: template
  sensors:
    dining_room_thermostat_temperature:
        value_template: >-
         {{ states.climate.dining_room.attributes.current_temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Dining Room Thermostat Temp'
sensor 109:
  platform: template
  sensors:
    front_hall_thermostat_set_point:
        value_template: >-
         {{ states.climate.hall.attributes.temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Front Hall Set Point'
sensor 110:
  platform: template
  sensors:
    rear_hall_thermostat_set_point:
        value_template: >-
         {{ states.climate.rear_hall.attributes.temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Rear Hall Set Point'
sensor 111:
  platform: template
  sensors:
    rear_hall_thermostat_set_point:
        value_template: >-
         {{ states.climate.kitchen.attributes.temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Kitchen Set Point'
sensor 112:
  platform: template
  sensors:
    dining_room_thermostat_set_point:
        value_template: >-
         {{ states.climate.dining_room.attributes.temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Dining Room Set Point'
sensor 113:
  platform: template
  sensors:
    living_room_thermostat_set_point:
        value_template: >-
         {{ states.climate.living_room.attributes.temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Living Room Set Point'
sensor 114:
  platform: template
  sensors:
    master_bed_thermostat_set_point:
        value_template: >-
         {{ states.climate.master_bed.attributes.temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Master Bed Set Point'
sensor 115:
  platform: template
  sensors:
    guest_bed_thermostat_set_point:
        value_template: >-
         {{ states.climate.guest_bed.attributes.temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Guest Bed Set Point'
sensor 116:
  platform: template
  sensors:
    guest_bed_upper_thermostat_set_point:
        value_template: >-
         {{ states.climate.guest_bed_upper.attributes.temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Guest Bed Upper Set Point'
sensor 117:
  platform: template
  sensors:
    man_cave_upper_thermostat_set_point:
        value_template: >-
         {{ states.climate.man_cave.attributes.temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Man Cave Set Point'
sensor 118:
  platform: template
  sensors:
    guest_bed_thermostat_temperature:
        value_template: >-
         {{ states.climate.guest_bed.attributes.current_temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Guest Bed Thermostat Temp'
sensor 119:
  platform: template
  sensors:
    guest_bed_upper_thermostat_temperature:
        value_template: >-
         {{ states.climate.guest_bed_upper.attributes.current_temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Guest Bed Upper Thermostat Temp'
sensor 120:
  platform: template
  sensors:
    rear_hall_thermostat_temperature:
        value_template: >-
         {{ states.climate.kitchen.attributes.current_temperature }} 
        unit_of_measurement: '°C'
        friendly_name: 'Kitchen Thermostat Temp'
sensor 121:
  - platform: mqtt
    state_topic: "wallpanel/mywallpanel/sensor/battery"
    name: "wallpanel battery"
    unit_of_measurement: "%"
    value_template: '{{ value_json.value }}'

  - platform: mqtt
    state_topic: "wallpanel/mywallpanel/sensor/brightness"
    name: "wallpanel brightness"
    unit_of_measurement: "lx"
    value_template: '{{ value_json.value }}'

  - platform: mqtt
    state_topic: "wallpanel/mywallpanel/sensor/pressure"
    name: "wallpanel pressure"
    unit_of_measurement: "mb"
    value_template: '{{ value_json.value }}'
sensor 122:
  - platform: history_stats
    name: Lounge TV time this week
    entity_id: remote.lounge
    state: 'on'
    type: time
    start: '{{ as_timestamp( now().replace(hour=0).replace(minute=0).replace(second=0) ) - now().weekday() * 86400 }}'
    end: '{{ now() }}'
  - platform: history_stats
    name: Lounge TV time Today
    entity_id: remote.lounge
    state: 'on'
    type: time
    start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
    end: '{{ now() }}'
  - platform: history_stats
    name: Man Cave TV time this week
    entity_id: remote.man_cave
    state: 'on'
    type: time
    start: '{{ as_timestamp( now().replace(hour=0).replace(minute=0).replace(second=0) ) - now().weekday() * 86400 }}'
    end: '{{ now() }}'
  - platform: history_stats
    name: Man Cave TV time Today
    entity_id: remote.man_cave
    state: 'on'
    type: time
    start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
    end: '{{ now() }}'
  - platform: history_stats
    name: Bedroom TV time this week
    entity_id: media_player.master_bed_tv
    state: 'on'
    type: time
    start: '{{ as_timestamp( now().replace(hour=0).replace(minute=0).replace(second=0) ) - now().weekday() * 86400 }}'
    end: '{{ now() }}'
  - platform: history_stats
    name: Bedroom TV time Today
    entity_id: media_player.master_bed_tv
    state: 'on'
    type: time
    start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
    end: '{{ now() }}'
  - platform: history_stats
    name: Matthew time at home this week
    entity_id: person.matthew
    state: 'home'
    type: ratio
    start: '{{ as_timestamp( now().replace(hour=0).replace(minute=0).replace(second=0) ) - now().weekday() * 86400 }}'
    end: '{{ now() }}'
  - platform: history_stats
    name: Matthew time at Work this week
    entity_id: person.matthew
    state: 'Work-M'
    type: ratio
    start: '{{ as_timestamp( now().replace(hour=0).replace(minute=0).replace(second=0) ) - now().weekday() * 86400 }}'
    end: '{{ now() }}'
  - platform: history_stats
    name: Sam time at home this week
    entity_id: person.sam
    state: 'home'
    type: ratio
    start: '{{ as_timestamp( now().replace(hour=0).replace(minute=0).replace(second=0) ) - now().weekday() * 86400 }}'
    end: '{{ now() }}'
  - platform: history_stats
    name: Sam time at Work this week
    entity_id: person.sam
    state: 'Work-S'
    type: ratio
    start: '{{ as_timestamp( now().replace(hour=0).replace(minute=0).replace(second=0) ) - now().weekday() * 86400 }}'
    end: '{{ now() }}'
  - platform: history_stats
    name: Lights time on yesterday
    entity_id: group.all_lights
    state: 'on'
    type: time
    end: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
    duration:
      hours: 24
sensor 123:
  platform: template
  sensors:
    closest_to_home:
        value_template: >-
         {{ states.proximity.people_distance_to_home.attributes.nearest }}
        friendly_name: 'Nearest to Home'
sensor 124:
  platform: template
  sensors:
    matthew_tracking_source_type:
        value_template: >-
         {% if is_state_attr('person.matthew','source','redacted') %}
           GPS
         {% elif is_state_attr('person.matthew','source','redacted') %}
           Unifi
          {% else %}
         Unknown
          {% endif %}
        friendly_name: 'Matthew Source Type'
sensor 125:
  - platform: synologydsm
    host: 192.168.0.113
    username: Homeassistant
    password: redacted
    monitored_conditions:
      - cpu_total_load
      - memory_real_usage
      - network_up
      - network_down
      - volume_status
      - volume_percentage_used
      - disk_temp
      - disk_status
      - volume_disk_temp_avg
sensor 126:
  - platform: nut
    host: 192.168.0.113
    name: UPS
    resources:
      - ups.status.display
      - ups.load
      - input.voltage
      - battery.runtime
      - battery.charge
sensor 127:
  - platform: cert_expiry
    host: redacted
    port: 8123
    name: redacted Cert
sensor 128:
  - platform: websocket_api
sensor 129:
  - platform: template
    sensors:
      vacuum_cleaned_area:
        friendly_name: "Area cleaned"
        unit_of_measurement: 'm2'
        value_template: "{{ state_attr('vacuum.ql_robot_vac', 'cleaned_area') }}"
sensor 130:
  - platform: template
    sensors:
      vacuum_cleaning_time:
        friendly_name: "Time cleaned"
        unit_of_measurement: 'm'
        value_template: "{{ state_attr('vacuum.ql_robot_vac', 'cleaning_time') }}"
sensor 132:
  platform: template
  sensors:
    sam_tracking_source_type:
        value_template: >-
         {% if is_state_attr('person.sam','source','redacted') %}
           GPS
         {% elif is_state_attr('person.sam','source','redacted') %}
           Unifi
          {% else %}
         Unknown
          {% endif %}
        friendly_name: 'Sam Source Type'
sensor 133:
  platform: fritzbox_netmonitor
  host: 192.168.0.254
  name: Router Monitor
sensor 134:
  - platform: qbittorrent
    url: 'http://192.168.0.126:9092'
    username: Redacted: redacted
    password: redacted
sensor 135:
  - platform: hddtemp
    disks:
      - /dev/sda
      - /dev/sdb
      - /dev/sdc
      - /dev/sdd
sensor 136:
  - platform: authenticated
    exclude: 109.70.40.25
sensor 137:
- platform: kodi_recently_added
  username: Redacted: kodi
  host: 192.168.0.126
  password: redacted
  port: 80
sensor 138:
  platform: template
  sensors:
    evohome_rear_hall_fault:
        value_template: >-
           {% if state_attr('climate.rear_hall', 'status').activeFaults %}
           {% if state_attr('climate.rear_hall', 'status').activeFaults[0].faultType == 'TempZoneActuatorLowBattery' %}
           There is a low battery
           {% endif %}
           There is a Fault!
           {% else %}
           No fault
           {% endif %}
        friendly_name: 'Rear Hall Status'
sensor 139:
  platform: template
  sensors:
    evohome_dining_room_fault:
        value_template: >-
           {% if state_attr('climate.dining_room', 'status').activeFaults %}
           {% if state_attr('climate.dining_room', 'status').activeFaults[0].faultType == 'TempZoneActuatorLowBattery' %}
           There is a low battery
           {% endif %}
           There is a Fault!
           {% else %}
           No fault
           {% endif %}
        friendly_name: 'Dining Room Status'
sensor 140:
  platform: template
  sensors:
    evohome_master_bed_fault:
        value_template: >-
           {% if state_attr('climate.master_bed', 'status').activeFaults %}
           {% if state_attr('climate.master_bed', 'status').activeFaults[0].faultType == 'TempZoneActuatorLowBattery' %}
           There is a low battery
           {% endif %}
           There is a Fault!
           {% else %}
           No fault
           {% endif %}
        friendly_name: 'Master Bed Status'
sensor 141:
  platform: template
  sensors:
    evohome_guest_bed_fault:
        value_template: >-
           {% if state_attr('climate.guest_bed', 'status').activeFaults %}
           {% if state_attr('climate.guest_bed', 'status').activeFaults[0].faultType == 'TempZoneActuatorLowBattery' %}
           There is a low battery
           {% endif %}
           There is a Fault!
           {% else %}
           No fault
           {% endif %}
        friendly_name: 'Guest Bed Status'
sensor 142:
  platform: template
  sensors:
    evohome_man_cave_fault:
        value_template: >-
           {% if state_attr('climate.man_cave', 'status').activeFaults %}
           {% if state_attr('climate.man_cave', 'status').activeFaults[0].faultType == 'TempZoneActuatorLowBattery' %}
           There is a low battery
           {% endif %}
           There is a Fault!
           {% else %}
           No fault
           {% endif %}
        friendly_name: 'Man Cave Status'
sensor 143:
  platform: template
  sensors:
    evohome_kitchen_fault:
        value_template: >-
           {% if state_attr('climate.kitchen', 'status').activeFaults %}
           {% if state_attr('climate.kitchen', 'status').activeFaults[0].faultType == 'TempZoneActuatorLowBattery' %}
           There is a low battery
           {% endif %}
           There is a Fault!
           {% else %}
           No fault
           {% endif %}
        friendly_name: 'Kitchen Status'
sensor 144:
  platform: template
  sensors:
    evohome_living_room_fault:
        value_template: >-
           {% if state_attr('climate.living_room', 'status').activeFaults %}
           {% if state_attr('climate.living_room', 'status').activeFaults[0].faultType == 'TempZoneActuatorLowBattery' %}
           There is a low battery
           {% endif %}
           There is a Fault!
           {% else %}
           No fault
           {% endif %}
        friendly_name: 'Living Room Status'
sensor 145:
  platform: template
  sensors:
    evohome_guest_bed_upper_fault:
        value_template: >-
           {% if state_attr('climate.guest_bed_upper', 'status').activeFaults %}
           {% if state_attr('climate.guest_bed_upper', 'status').activeFaults[0].faultType == 'TempZoneActuatorLowBattery' %}
           There is a low battery
           {% endif %}
           There is a Fault!
           {% else %}
           No fault
           {% endif %}
        friendly_name: 'Guest Bed Upper Status'
sensor 146:
  platform: template
  sensors:
    evohome_hall_fault:
        value_template: >-
           {% if state_attr('climate.hall', 'status').activeFaults %}
           {% if state_attr('climate.hall', 'status').activeFaults[0].faultType == 'TempZoneActuatorLowBattery' %}
           There is a low battery
           {% endif %}
           There is a Fault!
           {% else %}
           No fault
           {% endif %}
        friendly_name: 'Hall Status'
sensor 147:
  platform: template
  sensors:
    evohome_top_bathroom_fault:
        value_template: >-
           {% if state_attr('climate.top_bathroom', 'status').activeFaults %}
           {% if state_attr('climate.top_bathroom', 'status').activeFaults[0].faultType == 'TempZoneActuatorLowBattery' %}
           There is a low battery
           {% endif %}
           There is a Fault!
           {% else %}
           No fault
           {% endif %}
        friendly_name: 'Top Bathroom Status'
sensor 148:
  platform: template
  sensors:
    evohome_master_bathroom_fault:
        value_template: >-
           {% if state_attr('climate.master_bath', 'status').activeFaults %}
           {% if state_attr('climate.master_bath', 'status').activeFaults[0].faultType == 'TempZoneActuatorLowBattery' %}
           There is a low battery
           {% endif %}
           There is a Fault!
           {% else %}
           No fault
           {% endif %}
        friendly_name: 'Master Bath Status'
binary_sensor 2:
  - platform: template
    sensors:
       dishwasher_power:
          value_template: >- 
            {% if states('sensor.dishwasher_power') | float > 3 %}  true {% else %} false {%endif %}
          friendly_name: Dishwasher Power
binary_sensor 3:
  - platform: workday
    country: UK
binary_sensor 4:
  - platform: mqtt
    state_topic: "wallpanel/mywallpanel/sensor/motion"
    name: "Motion"
    payload_on: '{"value":true}'
    payload_off: '{"value":false}'
    device_class: motion
binary_sensor 5:
  - platform: ping
    host:  broadcasthe.net
    name: broadcasthenet
binary_sensor 6:
  - platform: ping
    host:  passthepopcorn.me
    name: passthepopcorn
binary_sensor 7:
  - platform: ping
    host:  iptorrents.com
    name: iptorrents
binary_sensor 8:
  - platform: ping
    host:  192.168.0.55
    name: matthew-pc
    scan_interval: 180
binary_sensor 9:
  - platform: ping
    host:  redacted.ch
    name: redacted
binary_sensor 10:
  - platform: ping
    host:  mysrs.top
    name: SRS IPTV
binary_sensor:
  - platform: car_wash
    weather: weather.dark_sky
switch 2:
  - platform: qbittorrent_alternative_speed
    host: 192.168.0.126
    username: Redacted: redacted
    password: redacted
    port: 9092

Traceback/Error logs

2020-02-28 01:50:54 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.616
2020-02-28 01:50:56 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:50:56 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:50:56 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:50:56 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.7s (concurrent.futures._base.TimeoutError)
2020-02-28 01:50:56 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.7s (concurrent.futures._base.TimeoutError)
2020-02-28 01:50:56 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:50:56 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:50:56 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:50:59 WARNING (MainThread) [homeassistant.components.sensor] Updating authenticated sensor took longer than the scheduled update interval 0:01:00
2020-02-28 01:51:01 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.4s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:01 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.1s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:01 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:01 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.4s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:01 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:01 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:01 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:01 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:02 WARNING (MainThread) [homeassistant.components.sensor] Updating history_stats sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:02 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2020-02-28 01:51:02 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.616
2020-02-28 01:51:03 WARNING (MainThread) [homeassistant.components.sensor] Updating fritzbox_netmonitor sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:03 WARNING (MainThread) [homeassistant.components.vacuum] Updating xiaomi_miio vacuum took longer than the scheduled update interval 0:00:20
2020-02-28 01:51:06 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 3.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:07 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:07 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:07 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:07 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:08 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:08 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 3.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:08 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:09 WARNING (MainThread) [homeassistant.components.sensor] Updating hddtemp sensor took longer than the scheduled update interval 0:01:00
2020-02-28 01:51:09 WARNING (MainThread) [homeassistant.components.switch] Updating orvibo switch took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:09 WARNING (MainThread) [homeassistant.components.sensor] Updating qbittorrent sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:10 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.616
2020-02-28 01:51:13 WARNING (MainThread) [homeassistant.components.sensor] Updating nut sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:13 WARNING (MainThread) [homeassistant.components.switch] Updating tplink switch took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:13 WARNING (MainThread) [homeassistant.components.sensor] Updating systemmonitor sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:13 WARNING (MainThread) [homeassistant.components.sensor] Updating ios sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:13 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2020-02-28 01:51:13 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 5.7s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:13 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:14 WARNING (Thread-11) [pychromecast.socket_client] [KD-65XF9005:8009] Heartbeat timeout, resetting connection
2020-02-28 01:51:14 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 5.7s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:14 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 3.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:15 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.4s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:15 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:15 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:17 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:18 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:18 INFO (MainThread) [backoff] Backing off get_repo(...) for 0.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:18 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.616
2020-02-28 01:51:19 WARNING (MainThread) [homeassistant.components.sensor] Updating netatmo sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:20 WARNING (MainThread) [homeassistant.components.sensor] Updating synologydsm sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:21 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:21 INFO (MainThread) [backoff] Backing off get_repo(...) for 0.7s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:21 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:21 INFO (MainThread) [backoff] Backing off get_repo(...) for 0.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:22 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:22 INFO (MainThread) [backoff] Backing off get_repo(...) for 0.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:23 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:23 INFO (MainThread) [backoff] Backing off get_repo(...) for 0.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:23 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:23 INFO (MainThread) [backoff] Backing off get_repo(...) for 0.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:23 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:23 INFO (MainThread) [backoff] Backing off get_repo(...) for 0.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:24 WARNING (MainThread) [homeassistant.components.weather] Updating darksky weather took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:24 WARNING (MainThread) [homeassistant.components.sensor] Updating season sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:24 WARNING (MainThread) [homeassistant.components.vacuum] Updating xiaomi_miio vacuum took longer than the scheduled update interval 0:00:20
2020-02-28 01:51:24 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2020-02-28 01:51:24 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:25 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:25 INFO (MainThread) [backoff] Backing off get_repo(...) for 0.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:26 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.616
2020-02-28 01:51:26 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:27 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:28 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:28 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:29 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.1s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:29 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:30 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.1s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:30 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.4s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:32 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:32 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:33 WARNING (MainThread) [homeassistant.components.sensor] Updating history_stats sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:33 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:34 WARNING (MainThread) [homeassistant.components.sensor] Updating fritzbox_netmonitor sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:34 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:34 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:34 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.619
2020-02-28 01:51:35 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2020-02-28 01:51:35 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:35 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:36 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 3.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:38 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:39 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:39 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.4s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:40 WARNING (MainThread) [homeassistant.components.switch] Updating orvibo switch took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:40 WARNING (MainThread) [homeassistant.components.sensor] Updating qbittorrent sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:40 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 3.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:40 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.1s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:41 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:41 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 3.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:42 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.619
2020-02-28 01:51:44 WARNING (MainThread) [homeassistant.components.sensor] Updating nut sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:44 WARNING (MainThread) [homeassistant.components.switch] Updating tplink switch took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:44 WARNING (MainThread) [homeassistant.components.sensor] Updating systemmonitor sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:44 WARNING (MainThread) [homeassistant.components.sensor] Updating ios sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:44 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:44 ERROR (Thread-11) [pychromecast.socket_client] [KD-65XF9005:8009] Failed to connect to service BRAVIA-4K-GB-ATV3-30dec3f18c4c831f622dbded55a9eea2._googlecast._tcp.local., retrying in 5.0s
2020-02-28 01:51:44 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:45 WARNING (MainThread) [homeassistant.components.vacuum] Updating xiaomi_miio vacuum took longer than the scheduled update interval 0:00:20
2020-02-28 01:51:45 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.7s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:45 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:46 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2020-02-28 01:51:46 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 7.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:47 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 6.7s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:49 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 3.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:49 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 6.7s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:49 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:49 INFO (MainThread) [backoff] Backing off get_repo(...) for 2.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:50 WARNING (MainThread) [homeassistant.components.sensor] Updating netatmo sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:50 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:50 INFO (MainThread) [backoff] Backing off get_repo(...) for 1.7s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:50 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.621
2020-02-28 01:51:51 WARNING (MainThread) [homeassistant.components.sensor] Updating synologydsm sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:51 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:51 INFO (MainThread) [backoff] Backing off get_repo(...) for 0.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:53 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:53 INFO (MainThread) [backoff] Backing off get_repo(...) for 1.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:55 WARNING (MainThread) [homeassistant.components.weather] Updating darksky weather took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:55 WARNING (MainThread) [homeassistant.components.sensor] Updating season sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:51:56 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:57 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2020-02-28 01:51:57 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:57 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:57 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:57 INFO (MainThread) [backoff] Backing off get_repo(...) for 0.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:58 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.619
2020-02-28 01:51:58 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:58 INFO (MainThread) [backoff] Backing off get_repo(...) for 0.1s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:59 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:59 INFO (MainThread) [backoff] Backing off get_repo(...) for 1.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:51:59 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:00 WARNING (MainThread) [homeassistant.components.sensor] Updating authenticated sensor took longer than the scheduled update interval 0:01:00
2020-02-28 01:52:01 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:01 INFO (MainThread) [backoff] Backing off get_repo(...) for 1.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:02 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:02 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:02 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:03 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:04 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:04 WARNING (MainThread) [homeassistant.components.sensor] Updating history_stats sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:04 WARNING (MainThread) [homeassistant.components.sensor] Updating fritzbox_netmonitor sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:05 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.matthew_pc is taking over 10 seconds
2020-02-28 01:52:05 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:06 WARNING (MainThread) [homeassistant.components.vacuum] Updating xiaomi_miio vacuum took longer than the scheduled update interval 0:00:20
2020-02-28 01:52:06 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:06 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.619
2020-02-28 01:52:07 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:07 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:08 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2020-02-28 01:52:08 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:09 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:09 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 3.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:09 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:10 WARNING (MainThread) [homeassistant.components.sensor] Updating hddtemp sensor took longer than the scheduled update interval 0:01:00
2020-02-28 01:52:10 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 3.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:11 WARNING (MainThread) [homeassistant.components.switch] Updating orvibo switch took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:11 WARNING (MainThread) [homeassistant.components.sensor] Updating qbittorrent sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:12 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:12 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:13 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 6.1s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:14 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.621
2020-02-28 01:52:15 WARNING (MainThread) [homeassistant.components.sensor] Updating nut sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:15 WARNING (MainThread) [homeassistant.components.switch] Updating tplink switch took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:15 WARNING (MainThread) [homeassistant.components.sensor] Updating systemmonitor sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:15 WARNING (MainThread) [homeassistant.components.sensor] Updating ios sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:15 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:16 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 5.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:16 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:17 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 7.7s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:18 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:18 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:18 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.1s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:19 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2020-02-28 01:52:21 WARNING (MainThread) [homeassistant.components.sensor] Updating netatmo sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:21 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 3.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:22 WARNING (MainThread) [homeassistant.components.sensor] Updating synologydsm sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:22 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.624
2020-02-28 01:52:23 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 7.7s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:23 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:23 INFO (MainThread) [backoff] Backing off get_repo(...) for 3.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:24 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.7s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:24 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 5.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:24 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:24 INFO (MainThread) [backoff] Backing off get_repo(...) for 2.4s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:26 WARNING (MainThread) [homeassistant.components.weather] Updating darksky weather took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:26 WARNING (MainThread) [homeassistant.components.sensor] Updating season sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:26 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:26 INFO (MainThread) [backoff] Backing off get_repo(...) for 2.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:27 WARNING (MainThread) [homeassistant.components.vacuum] Updating xiaomi_miio vacuum took longer than the scheduled update interval 0:00:20
2020-02-28 01:52:29 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:29 INFO (MainThread) [backoff] Backing off get_repo(...) for 1.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:30 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2020-02-28 01:52:30 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:30 INFO (MainThread) [backoff] Backing off get_repo(...) for 2.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:30 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.643
2020-02-28 01:52:30 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:30 INFO (MainThread) [backoff] Backing off get_repo(...) for 3.4s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:31 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.iptorrents is taking over 10 seconds
2020-02-28 01:52:31 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:31 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:34 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:34 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:34 INFO (MainThread) [backoff] Backing off get_repo(...) for 2.4s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:35 WARNING (MainThread) [homeassistant.components.sensor] Updating history_stats sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:35 WARNING (MainThread) [homeassistant.components.sensor] Updating fritzbox_netmonitor sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:36 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:36 INFO (MainThread) [backoff] Backing off get_repo(...) for 2.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:36 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.4s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:37 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.dark_sky_nearest_storm_bearing is taking over 10 seconds
2020-02-28 01:52:37 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:37 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:38 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:38 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.633
2020-02-28 01:52:39 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:39 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:41 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2020-02-28 01:52:41 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:41 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:42 WARNING (MainThread) [homeassistant.components.switch] Updating orvibo switch took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:42 WARNING (MainThread) [homeassistant.components.sensor] Updating qbittorrent sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:43 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:43 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:44 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:44 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:45 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:45 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:46 WARNING (MainThread) [homeassistant.components.sensor] Updating nut sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:46 WARNING (MainThread) [homeassistant.components.switch] Updating tplink switch took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:46 WARNING (MainThread) [homeassistant.components.sensor] Updating systemmonitor sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:46 WARNING (MainThread) [homeassistant.components.sensor] Updating ios sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:46 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.636
2020-02-28 01:52:47 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.4s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:48 WARNING (MainThread) [homeassistant.components.vacuum] Updating xiaomi_miio vacuum took longer than the scheduled update interval 0:00:20
2020-02-28 01:52:48 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:49 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:49 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:50 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:51 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 3.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:51 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 6.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:52 WARNING (MainThread) [homeassistant.components.sensor] Updating netatmo sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:52 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2020-02-28 01:52:53 WARNING (MainThread) [homeassistant.components.sensor] Updating synologydsm sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:53 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 4.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:54 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 3.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:54 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:54 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.64
2020-02-28 01:52:55 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:56 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 4.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:57 WARNING (MainThread) [homeassistant.components.weather] Updating darksky weather took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:57 WARNING (MainThread) [homeassistant.components.sensor] Updating season sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:52:57 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:59 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:52:59 INFO (MainThread) [backoff] Backing off get_repo(...) for 1.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:00 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:00 INFO (MainThread) [backoff] Backing off get_repo(...) for 2.1s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:01 WARNING (MainThread) [homeassistant.components.sensor] Updating authenticated sensor took longer than the scheduled update interval 0:01:00
2020-02-28 01:53:02 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:02 INFO (MainThread) [backoff] Backing off get_repo(...) for 5.1s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:02 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:02 INFO (MainThread) [backoff] Backing off get_repo(...) for 4.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:02 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.636
2020-02-28 01:53:02 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 5.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:03 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2020-02-28 01:53:03 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:03 INFO (MainThread) [backoff] Backing off get_repo(...) for 2.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:04 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:04 INFO (MainThread) [backoff] Backing off get_repo(...) for 5.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:05 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 5.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:06 WARNING (MainThread) [homeassistant.components.sensor] Updating history_stats sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:53:06 WARNING (MainThread) [homeassistant.components.sensor] Updating fritzbox_netmonitor sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:53:06 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:07 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.1s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:09 WARNING (MainThread) [homeassistant.components.vacuum] Updating xiaomi_miio vacuum took longer than the scheduled update interval 0:00:20
2020-02-28 01:53:10 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.633
2020-02-28 01:53:11 WARNING (MainThread) [homeassistant.components.sensor] Updating hddtemp sensor took longer than the scheduled update interval 0:01:00
2020-02-28 01:53:11 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.4s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:11 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.7s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:12 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:12 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:12 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:13 WARNING (MainThread) [homeassistant.components.switch] Updating orvibo switch took longer than the scheduled update interval 0:00:30
2020-02-28 01:53:13 WARNING (MainThread) [homeassistant.components.sensor] Updating qbittorrent sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:53:13 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:13 INFO (MainThread) [backoff] Backing off get_repo(...) for 6.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:14 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2020-02-28 01:53:14 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.7s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:16 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:16 INFO (MainThread) [backoff] Backing off get_repo(...) for 3.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:16 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:17 WARNING (MainThread) [homeassistant.components.sensor] Updating nut sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:53:17 WARNING (MainThread) [homeassistant.components.switch] Updating tplink switch took longer than the scheduled update interval 0:00:30
2020-02-28 01:53:17 WARNING (MainThread) [homeassistant.components.sensor] Updating systemmonitor sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:53:17 WARNING (MainThread) [homeassistant.components.sensor] Updating ios sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:53:17 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:17 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:18 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:18 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.633
2020-02-28 01:53:19 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:20 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:22 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.4s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:23 WARNING (MainThread) [homeassistant.components.sensor] Updating netatmo sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:53:23 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.1s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:23 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:24 WARNING (MainThread) [homeassistant.components.sensor] Updating synologydsm sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:53:24 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:25 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2020-02-28 01:53:25 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:25 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 6.4s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:25 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 5.3s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:26 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.628
2020-02-28 01:53:26 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 3.0s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:28 WARNING (MainThread) [homeassistant.components.weather] Updating darksky weather took longer than the scheduled update interval 0:00:30
2020-02-28 01:53:28 WARNING (MainThread) [homeassistant.components.sensor] Updating season sensor took longer than the scheduled update interval 0:00:30
2020-02-28 01:53:28 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 4.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:29 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 4.5s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:29 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.8s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:30 WARNING (MainThread) [homeassistant.components.vacuum] Updating xiaomi_miio vacuum took longer than the scheduled update interval 0:00:20
2020-02-28 01:53:30 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.9s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:30 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.1s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:34 INFO (LoopEnergy Event Thread) [pyloopenergy.loop_energy] Electricity rate: 0.631
2020-02-28 01:53:34 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 6.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:35 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 1.2s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:35 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 2.6s (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:35 ERROR (MainThread) [backoff] Giving up get_ratelimit(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:35 ERROR (MainThread) [backoff] Giving up get_repo(...) after 5 tries (concurrent.futures._base.TimeoutError)
2020-02-28 01:53:35 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved

Additional information

CarlosGS commented 4 years ago

Could you try switching to MariaDB? how-to In my case, with a Raspberry 4, switching to MariaDB has increased performance dramatically. I think switching to MariaDB will give your machine some head room.

LukasQ commented 4 years ago

Could be related to https://github.com/home-assistant/core/issues/14386 TL;DR: Seems like we face a docker internal network / firewall issue, where connections get dropped.

deftdawg commented 4 years ago

I may have hit this issue, not sure if it's the same or not...

My automations have been failing to run on their own, though they will Execute if I hit that button.

Eventually I noticed that lovelace stopped loading properly, while HA still answers the socket, it no longer returns any .js files when I hit :8123. That's quite annoying because my previous check for deadlock script failed to catch it as the / returns a page that looks normal, but when you try to access any of the javascript, those calls get stuck (below I force them to time out longer than 1 second w/ --max-time, so I can script checks).

So if I run:

SERVICE_URL=http://192.168.1.143:8123
curl -s --max-time 1 ${SERVICE_URL} | egrep -oe '"/[^"]*js"' | tr -d \"

I get this:

/frontend_latest/core.cca20d3e.js
/frontend_latest/app.cb642fbe.js
/frontend_latest/core.cca20d3e.js
/frontend_latest/app.cb642fbe.js
/frontend_latest/custom-panel.9054f397.js
/frontend_es5/custom-panel.4e2b7c75.js
/static/polyfills/custom-elements-es5-adapter.js
/frontend_es5/core.cce93367.js
/frontend_es5/app.70787deb.js

But running a curl on the first js file listed:

curl -s --max-time 1 ${SERVICE_URL}/frontend_latest/core.cca20d3e.js >/dev/null || echo "Errror"
Error

I will see the Error when HA has quit on me. HA is still logging activity, albeit quite slowly during this time.

After a restart, this problem of not serving Javascript goes away.

Ra72xx commented 4 years ago

I have a setup with HA running native (no docker) on a RPi4 with MariaDB, and I also quite often run into situations where some automations and/or lovelace gui elements simply seem not to work. Typical symptoms for me:

I have several cover groups. Sometimes they stop working when trying to operate them from lovelace. However, I also have buttons for the single cover entities, which work flawlessly all the time. Some automations work very intermittently, although the trigger is very simple and obviously. E.g. I have several Innr RC110 remotes. Homeassistant recognizes all keypresses. However, the automations for the "+" and "-" button are unreliable, while the automations for the other buttons work. Other than the trigger, the automations are exactly the same (and the HA event listener definitely shows all events, even if the corresponding automation does not fire). This goes also for other automations, it's not specific to that device, only an example.

stale[bot] commented 3 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.