Odianosen25 / Monitor-App

Appdaemon App for Andrew's Monitor Presence Detection System
74 stars 9 forks source link

Missing Confidence Sensors #61

Open jarrah31 opened 3 years ago

jarrah31 commented 3 years ago

I have a new installation of Monitor-App and Monitor. I started with the hallway node and then added the Kitchen yesterday. HA and AppDaemon run in Docker Containers, with the MQTT Broker in another container.

I have three users and two monitor nodes in my setup.

Users: me, wife, daughter Nodes: hallway, kitchen

These are my sensors in HA. For some reason though, the two hallway_conf sensors (**) below aren't being created in HA. They were definitely there a couple of days ago, but I don't know what I did or when they disappeared. I've rebooted both HA and AD in different orders with no luck.

- binary_sensor.monitor_everyone_home
- binary_sensor.monitor_everyone_not_home
- binary_sensor.monitor_somebody_is_home

- device_tracker.monitor_me
- device_tracker.monitor_wife
- device_tracker.monitor_daughter

- sensor.monitor_me_kitchen_conf
- sensor.monitor_wife_kitchen_conf
- sensor.monitor_daughter_kitchen_conf

- sensor.monitor_me_hallway_conf **
- sensor.monitor_wife_hallway_conf **
- sensor.monitor_daughter_hallway_conf

In the logs below, I can see that it created mine and my wife's hallway_conf sensor at the start, but then hasn't done since. It does however continue to create daughter_hallway_conf as well as all three kitchen_conf sensors after each reboot.

$ docker-compose logs appdaemon | grep _conf created"
appdaemon        | 2020-09-08 19:25:41.787193 INFO AppDaemon: home_presence_app: Entity sensor.monitor_me_hallway_conf created in namespace: default
appdaemon        | 2020-09-08 19:25:41.858338 INFO AppDaemon: home_presence_app: Entity sensor.monitor_wife_hallway_conf created in namespace: default
appdaemon        | 2020-09-08 20:55:31.370415 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_hallway_conf created in namespace: default
appdaemon        | 2020-09-08 22:09:35.168948 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_hallway_conf created in namespace: default
appdaemon        | 2020-09-08 22:11:09.188104 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_hallway_conf created in namespace: default
appdaemon        | 2020-09-09 08:25:58.757793 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_hallway_conf created in namespace: default
appdaemon        | 2020-09-09 09:10:54.589689 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_hallway_conf created in namespace: default
appdaemon        | 2020-09-09 11:04:03.683985 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_hallway_conf created in namespace: default
appdaemon        | 2020-09-09 13:10:32.767909 INFO AppDaemon: home_presence_app: Entity sensor.monitor_me_kitchen_conf created in namespace: default
appdaemon        | 2020-09-09 13:10:52.432957 INFO AppDaemon: home_presence_app: Entity sensor.monitor_wife_kitchen_conf created in namespace: default
appdaemon        | 2020-09-09 13:11:03.042386 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_kitchen_conf created in namespace: default
appdaemon        | 2020-09-09 14:54:50.549549 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_hallway_conf created in namespace: default
appdaemon        | 2020-09-09 14:54:54.033308 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_kitchen_conf created in namespace: default
appdaemon        | 2020-09-09 15:22:54.643113 INFO AppDaemon: home_presence_app: Entity sensor.monitor_me_kitchen_conf created in namespace: default
appdaemon        | 2020-09-09 15:23:03.456446 INFO AppDaemon: home_presence_app: Entity sensor.monitor_wife_kitchen_conf created in namespace: default
appdaemon        | 2020-09-09 15:23:52.652588 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_hallway_conf created in namespace: default
appdaemon        | 2020-09-09 15:23:56.668961 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_kitchen_conf created in namespace: default
appdaemon        | 2020-09-09 15:51:21.629134 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_hallway_conf created in namespace: default
appdaemon        | 2020-09-09 15:51:28.175603 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_kitchen_conf created in namespace: default
appdaemon        | 2020-09-09 19:43:33.132545 INFO AppDaemon: home_presence_app: Entity sensor.monitor_me_kitchen_conf created in namespace: default
appdaemon        | 2020-09-09 19:43:52.296800 INFO AppDaemon: home_presence_app: Entity sensor.monitor_wife_kitchen_conf created in namespace: default
appdaemon        | 2020-09-09 19:46:44.619083 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_kitchen_conf created in namespace: default
appdaemon        | 2020-09-09 19:46:48.659706 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_hallway_conf created in namespace: default
appdaemon        | 2020-09-09 21:20:36.953149 INFO AppDaemon: home_presence_app: Entity sensor.monitor_me_kitchen_conf created in namespace: default
appdaemon        | 2020-09-09 21:20:39.155465 INFO AppDaemon: home_presence_app: Entity sensor.monitor_wife_kitchen_conf created in namespace: default
appdaemon        | 2020-09-09 21:23:50.238801 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_kitchen_conf created in namespace: default
appdaemon        | 2020-09-09 21:23:53.272108 INFO AppDaemon: home_presence_app: Entity sensor.monitor_daughter_hallway_conf created in namespace: default

Is there any troubleshooting steps I could try or logs to send you to help get to the bottom of this please?

My config files are:

appdaemon:
  latitude: xx.xxxx
  longitude: -x.xxxxx
  elevation: xx
  time_zone: Europe/London
  plugins:
    HASS:
      type: hass
      ha_url: "http://x.x.x.x:8123"
      token: "myToken"
    MQTT:
       type: mqtt
       namespace: mqtt
       client_host: x.x.x.x
       client_user: mqttuser
       client_password: password
http:
  url: http://x.x.x.x:5050
admin:
api:
hadashboard:
home_presence_app:
  module: home_presence_app
  class: HomePresenceApp
  plugin: 
    - HASS
    - MQTT
  monitor_topic: monitor
  user_device_domain: device_tracker
  everyone_not_home: monitor_everyone_not_home
  everyone_home: monitor_everyone_home
  somebody_is_home: monitor_somebody_is_home
  # log_level: DEBUG
  home_gateway_sensors:
    - binary_sensor.door_front_contact
    - binary_sensor.window_spare_sensor_s2_contact

  known_devices:
    - xx:xx:xx:xx:xx:9E me
    - xx:xx:xx:xx:xx:15 wife
    - xx:xx:xx:xx:xx:53 daughter

  scheduled_restart:
    time: 00:00:01
    days:
      - mon
      - thu
    location: all

Thanks.