Hello @Odianosen25.
I run Hass.io/HassOS on a Rpi4 and I have installed AppDaemon 4 with the HASS
and MQTT
plugins and the app through HACS. I have also set up the config file as per below and there doesnât seem to be any errors but nothing seems to be tracked either. The 3 sensors (everyone_home etcâŚ) were created but all show off/away. Should there not be entities created?
Also, how do you run the appdeamon app with the extra arguments using Hassio/HassOS?
appdaemon.yaml
secrets: /config/secrets.yaml
appdaemon:
latitude: xxx
longitude: xxx
elevation: xxx
time_zone: Europe/Amsterdam
exclude_dirs:
- to_install
plugins:
HASS:
type: hass
MQTT:
type: mqtt
namespace: mqtt
client_host: 192.168.0.xxx
client_user: xxxxxx
client_password: xxxxxxxxx
client_id: appdaemon
http:
url: http://127.0.0.1:5050
admin:
api:
hadashboard:
home_presence_app.yaml
#################################################################################################################################################################################################
# Monitor App
#################################################################################################################################################################################################
home_presence_app:
module: home_presence_app
class: HomePresenceApp
plugin:
- HASS
- MQTT
monitor_topic: presence
mqtt_event: MQTT
user_device_domain: device_tracker
everyone_not_home: everyone_not_home
everyone_home: everyone_home
somebody_is_home: somebody_is_home
depart_check_time: 30
depart_scans: 3
minimum_confidence: 60
not_home_timeout: 15
system_check: 30
system_timeout: 60
home_gateway_sensors:
- binary_sensor.hall_frontdoor
# reboot the all nodes at 12 midnight on Mondays and Thursdays
scheduled_restart:
time: 00:00:01
days:
- mon
- thu
location: all
# other location configuration options
#location: living_room, kitchen
#location:
# - living_room
# - kitchen
# home_motion_sensors:
# - binary_sensor.living_room_motion_sensor_occupancy
# - binary_sensor.kitchen_motion_sensor_occupancy
# - binary_sensor.hallway_motion_sensor_occupancy
log_level: DEBUG
known_devices:
- xx:xx:xx:xx:xx:xx Stephen's Phone
# - xx:xx:xx:xx:xx:xx April's iPhone
# known_beacons:
# - xx:xx:xx:xx:xx:xx Odianosen's Car Keys
# remote_monitors:
# disable: False
# kitchen:
# auto_reboot_when_offline: True
# host: !secret kitchen_monitor_host
# username: !secret kitchen_monitor_username
# password: !secret kitchen_monitor_password
# living_room:
# host: 192.168.1.xxx
# username: !secret living_room_monitor_username
# password: !secret living_room_monitor_password
# reboot_command: sudo /sbin/reboot now
# auto_reboot_when_offline: True
# time: 02:00:01
Appdeamon log
[17:44:06] INFO: Starting AppDaemon...
2020-08-22 18:44:09.839844 INFO AppDaemon: AppDaemon Version 4.0.3 starting
2020-08-22 18:44:09.841310 INFO AppDaemon: Python version is 3.8.2
2020-08-22 18:44:09.842438 INFO AppDaemon: Configuration read from: /config/appdaemon/appdaemon.yaml
2020-08-22 18:44:09.843669 INFO AppDaemon: Added log: AppDaemon
2020-08-22 18:44:09.844620 INFO AppDaemon: Added log: Error
2020-08-22 18:44:09.845674 INFO AppDaemon: Added log: Access
2020-08-22 18:44:09.846907 INFO AppDaemon: Added log: Diag
2020-08-22 18:44:09.912738 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2020-08-22 18:44:09.980812 INFO HASS: HASS Plugin Initializing
2020-08-22 18:44:09.981660 INFO HASS: HASS Plugin initialization complete
2020-08-22 18:44:09.982447 INFO AppDaemon: Loading Plugin MQTT using class MqttPlugin from module mqttplugin
2020-08-22 18:44:10.016068 INFO MQTT: MQTT Plugin Initializing
2020-08-22 18:44:10.016884 INFO MQTT: Using 'appdaemon/status' as Will Topic
2020-08-22 18:44:10.017544 INFO MQTT: Using 'appdaemon/status' as Birth Topic
2020-08-22 18:44:10.019715 INFO AppDaemon: Initializing HTTP
2020-08-22 18:44:10.020881 INFO AppDaemon: Using 'ws' for event stream
2020-08-22 18:44:10.060268 INFO AppDaemon: Starting API
2020-08-22 18:44:10.071170 INFO AppDaemon: Starting Admin Interface
2020-08-22 18:44:10.072096 INFO AppDaemon: Starting Dashboards
2020-08-22 18:44:10.124135 INFO HASS: Connected to Home Assistant 0.114.3
2020-08-22 18:44:10.268553 INFO AppDaemon: App 'hello_world' added
2020-08-22 18:44:10.271661 INFO AppDaemon: App 'Recoder1' added
2020-08-22 18:44:10.279781 INFO AppDaemon: App 'home_presence_app' added
2020-08-22 18:44:10.284179 INFO AppDaemon: Found 3 total apps
2020-08-22 18:44:10.287412 INFO AppDaemon: Starting Apps with 3 workers and 3 pins
2020-08-22 18:44:10.296220 INFO AppDaemon: Running on port 5050
2020-08-22 18:44:10.325627 INFO HASS: Evaluating startup conditions
2020-08-22 18:44:10.421243 INFO AppDaemon: Got initial state from namespace default
2020-08-22 18:44:11.197314 INFO MQTT: Connected to Broker at URL 192.168.0.200:1883
2020-08-22 18:44:11.235129 INFO AppDaemon: Got initial state from namespace mqtt
2020-08-22 18:44:11.236378 INFO MQTT: MQTT Plugin initialization complete
2020-08-22 18:44:12.355214 INFO AppDaemon: Scheduler running in realtime
2020-08-22 18:44:12.366232 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2020-08-22 18:44:12.367500 INFO AppDaemon: Adding /config/appdaemon/apps/Monitor-App to module import path
2020-08-22 18:44:12.374881 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/hello.py
2020-08-22 18:44:12.394323 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/recoder.py
2020-08-22 18:44:12.405441 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/Monitor-App/home_presence_app.py
2020-08-22 18:44:12.411578 INFO AppDaemon: Initializing app hello_world using class HelloWorld from module hello
2020-08-22 18:44:12.414985 INFO AppDaemon: Initializing app Recoder1 using class Recoder from module recoder
2020-08-22 18:44:12.420228 INFO AppDaemon: Initializing app home_presence_app using class HomePresenceApp from module home_presence_app
2020-08-22 18:44:12.623133 INFO hello_world: Hello from AppDaemon
2020-08-22 18:44:12.626715 INFO hello_world: You are now ready to run Apps!
2020-08-22 18:44:12.634770 DEBUG Recoder1: Calling listen_state for Recoder1
2020-08-22 18:44:12.653630 DEBUG home_presence_app: set state: presence.monitor_state, {'state': 'idle', 'attributes': {'locations': [], 'version': '2.3.4', 'nodes': 0, 'online_nodes': [], 'offline_nodes': [], 'friendly_name': 'Monitor System State'}, 'replace': True}
2020-08-22 18:44:12.655160 WARNING home_presence_app: home_presence_app: Entity presence.monitor_state not found in namespace mqtt
2020-08-22 18:44:12.657322 INFO AppDaemon: home_presence_app: Entity presence.monitor_state created in namespace: mqtt
2020-08-22 18:44:12.662180 DEBUG home_presence_app: Calling listen_state for home_presence_app
2020-08-22 18:44:12.675804 INFO home_presence_app: Previous message repeated 1 times
2020-08-22 18:44:12.677269 DEBUG home_presence_app: Creating Binary Sensor for everyone_not_home
2020-08-22 18:44:12.679659 DEBUG home_presence_app: set state: binary_sensor.everyone_not_home, {'state': 'off', 'attributes': {'friendly_name': 'Everyone Not Home', 'device_class': 'presence'}}
2020-08-22 18:44:12.681620 WARNING home_presence_app: home_presence_app: Entity binary_sensor.everyone_not_home not found in namespace default
2020-08-22 18:44:12.683680 INFO AppDaemon: home_presence_app: Entity binary_sensor.everyone_not_home created in namespace: default
2020-08-22 18:44:12.729914 DEBUG home_presence_app: Creating Binary Sensor for everyone_home
2020-08-22 18:44:12.731844 DEBUG home_presence_app: set state: binary_sensor.everyone_home, {'state': 'off', 'attributes': {'friendly_name': 'Everyone Home', 'device_class': 'presence'}}
2020-08-22 18:44:12.733585 WARNING home_presence_app: home_presence_app: Entity binary_sensor.everyone_home not found in namespace default
2020-08-22 18:44:12.736622 INFO AppDaemon: home_presence_app: Entity binary_sensor.everyone_home created in namespace: default
2020-08-22 18:44:12.783668 DEBUG home_presence_app: Creating Binary Sensor for somebody_is_home
2020-08-22 18:44:12.785993 DEBUG home_presence_app: set state: binary_sensor.somebody_is_home, {'state': 'off', 'attributes': {'friendly_name': 'Somebody Is Home', 'device_class': 'presence'}}
2020-08-22 18:44:12.787954 WARNING home_presence_app: home_presence_app: Entity binary_sensor.somebody_is_home not found in namespace default
2020-08-22 18:44:12.790503 INFO AppDaemon: home_presence_app: Entity binary_sensor.somebody_is_home created in namespace: default
2020-08-22 18:44:12.825303 DEBUG home_presence_app: Calling listen_state for home_presence_app
2020-08-22 18:44:12.830715 INFO home_presence_app: Setting up Monitor auto reboot
2020-08-22 18:44:12.839430 DEBUG home_presence_app: Registering run_every starting 2020-08-23 00:00:01+02:00 in 86400s intervals for home_presence_app
2020-08-22 18:44:12.845090 DEBUG home_presence_app: Registering run_every starting 2020-08-22 18:44:13.843423+02:00 in 30s intervals for home_presence_app
2020-08-22 18:44:12.848197 DEBUG home_presence_app: Calling listen_event for home_presence_app
2020-08-22 18:44:12.851550 DEBUG home_presence_app: Listening on MQTT Topic presence
2020-08-22 18:44:12.853026 DEBUG home_presence_app: Calling listen_event for home_presence_app
2020-08-22 18:44:12.855027 DEBUG home_presence_app: Registering run_in in 0 seconds for home_presence_app
2020-08-22 18:44:12.857906 DEBUG home_presence_app: register_service: presence/remove_known_device, {}
2020-08-22 18:44:12.858669 DEBUG home_presence_app: register_service: presence/run_arrive_scan, {}
2020-08-22 18:44:12.859254 DEBUG home_presence_app: register_service: presence/run_depart_scan, {}
2020-08-22 18:44:12.859816 DEBUG home_presence_app: register_service: presence/run_rssi_scan, {}
2020-08-22 18:44:12.860338 DEBUG home_presence_app: register_service: presence/run_node_command, {}
2020-08-22 18:44:12.860919 DEBUG home_presence_app: register_service: presence/restart_device, {}
2020-08-22 18:44:12.861496 DEBUG home_presence_app: register_service: presence/reload_device_state, {}
2020-08-22 18:44:12.862274 DEBUG home_presence_app: register_service: presence/load_known_devices, {}
2020-08-22 18:44:12.862828 DEBUG home_presence_app: register_service: presence/clear_location_entities, {}
2020-08-22 18:44:12.863401 DEBUG home_presence_app: register_service: presence/clean_devices, {}
2020-08-22 18:44:12.871166 INFO AppDaemon: App initialization complete
2020-08-22 18:44:13.021752 DEBUG home_presence_app: call_service: mqtt/publish, {'topic': 'presence/state', 'payload': '{"locations": [], "version": "2.3.4", "nodes": 0, "online_nodes": [], "offline_nodes": [], "last_changed": "2020-08-22T18:44:12+02:00", "state": "idle"}'}
2020-08-22 18:44:13.040597 DEBUG home_presence_app: Registering run_in in 45 seconds for home_presence_app
2020-08-22 18:44:13.044900 DEBUG home_presence_app: Registering run_in in 105 seconds for home_presence_app
2020-08-22 18:44:14.016151 DEBUG home_presence_app: call_service: mqtt/publish, {'topic': 'presence/echo', 'payload': ''}
2020-08-22 18:44:44.024518 DEBUG home_presence_app: call_service: mqtt/publish, {'topic': 'presence/echo', 'payload': ''}
2020-08-22 18:44:58.020588 DEBUG home_presence_app: Registering run_in in 0 seconds for home_presence_app
2020-08-22 18:44:58.042164 DEBUG home_presence_app: call_service: mqtt/publish, {'topic': 'presence/setup/ADD STATIC DEVICE', 'payload': "50:50:A4:00:EB:89 Stephen's Phone"}
2020-08-22 18:45:14.015052 DEBUG home_presence_app: call_service: mqtt/publish, {'topic': 'presence/echo', 'payload': ''}
2020-08-22 18:45:44.018754 DEBUG home_presence_app: call_service: mqtt/publish, {'topic': 'presence/echo', 'payload': ''}
2020-08-22 18:45:58.020054 DEBUG home_presence_app: Registering run_in in 0 seconds for home_presence_app
2020-08-22 18:45:58.045791 DEBUG home_presence_app: call_service: mqtt/publish, {'topic': 'presence/KNOWN DEVICE STATES',