I need some help with an automation using the use of the official Google Home component. I would like the automation to trigger if the alarm clock time equals my local time.
Then I added a sensor to convert the time to hours and minutes, as well as a time sensor and a sensor to compare the current time to the alarm time (kudos goes to @nicolaas from and HIS POST) but I tweaked it a little:
Ive ran into a wierd situation. Today (sunday) my automation was triggered for my alarm set on 8 am monday. I assume becuase the sensor will just read 8:00 and it triggered at 8:00 am regardless of the day. how can we make it have to match the day and time to trigger? same game with sensor.date?
edit: heres whats i came up with but it wasnt triggering. just gotta add the ‘date_time’ sensor sand then match it
my googlehome alarm broken this week. Any pointers from the errors
2019-06-14 10:32:56 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform googlehome
File “/usr/src/homeassistant/homeassistant/components/googlehome/sensor.py”, line 38, in async_setup_platform
Hey, it is actually possible to gain access to the Google Home local API again, but it’s a bit more hassle since it requires authentication by short-lived tokens now. Rithvik Vibhu has done some excellent work figuring out how to do this.
To integrate this back into Hass (I was using e.g. the alarms API for my wakeup light routine), I wrote a very simple bash script that can automatically retrieve these tokens and push them to Home Assistant as an entity attribute, which can subsequently be used in templating. My script is available here:
You can put the proto files in any directory, as long as the directory structure from the original download is preserved. The location of the topmost folder is configurable in the script itself, under protoPath.