Hello, everyone. Was hoping to get a little help with changing the Dashboard upon the doorbell motion (or ringing). So far, I think the issue may be with the event, “hadashboard”, in the script. I have:
Installed AppDaemon from the Home Assistant Community Add-ons repository.
Created a python script named navigatedoorbell.py in Notepad++ with the below contents:
import appdaemon.plugins.hass.hassapi as hass
def navigate(self, entity, attribute, old, new, kwargs):
target = self.args["True"] # What is this value? Do I set this to the same as the new=self.args state above?
if 'timeout' in self.args:
timeout = self.args['30']
self.dash_navigate("/" + target, timeout=timeout)
self.dash_navigate("/" + target)
Next, I configured both apps.yaml and appdaemon.yaml:
doorbell_navigate: # Am I creating the app name here, or was it created somewhere else?
target: Doorbell # "Doorbell" is both the Dashboard name and the Dashboard Page name. The path is "doorbell". Do I use "doorbell" here instead?
secrets: /config/secrets.yaml # Do I need to do anything in secrets.yaml?
url: http://127.0.0.1:5050 #Do I need to do anything with this?
Then, finally the script and automation:
alias: Navigate Doorbell
- event: hadashboard
- alias: Doorbell Motion Navigate
- platform: state
- platform: state # Do I need to make a spearate app for this trigger?
- service: script.turn_on
Anyone see anything? Note that I did not set a Long-Lived Access Token. Also, I did not do anything with configuration.yaml. Did I need to add the below?
appdaemon: !include apps.yaml # or appdaemon.yaml?
Any answers to the notes above would be greatly appreciated.