Rene Tode
Rene Tode
a better way is: ``` for entity in self.get_state("binary_sensor"): if "motion" in entity["attributes"]: self.listen_state(self.motion, entity, new= "on") ``` off course its possible to create a new arg for listen_state, but...
> By checking that the attribute is present and set to a specific value at the top of the callback, it's not really any more expensive than if AppDaemon were...
> Since my AppDaemon CREATES some of the entities I'd like to check, this gets painfully difficult no it isnt. a litteraly create hundreds of entities with appdaemon. and ALL...
@noxhirsch things like that will be possible when we start to change the dashboard, but that can take a while. at this moment its only possible by creating a custom...
it isnt that easy as they suggest. AD already starts a server, adding a server the way they suggest will start up a second server on another port, which can...
> Appdaemon 3 was throwing exception. Appdaemon 4 is swallowing it in AD 3 call service returned None. and no exceptions. see the docs from AD 3: https://appdaemon.readthedocs.io/en/3.0.5/HASS_API_REFERENCE.html#services if the...
then change "now" to the time you want it to start and it will run on 05,20,35, 50 the difference is that with cron you need to change the 5...
10 lines? ``` startminute = 5 self.run_every(self.callback, datetime.datetime(dt.year, dt.month, dt.day, dt.hour,(15*(dt.minute // 15)) + startminute, 60*15) ```
yeah i copy pasted something to fast. but there are a lot of ways to do it, for example: ``` time = self.datetime() startminute = 5 starttime = self.parse_datetime("{}-{}-{} {}:{}:00".format(time.year,...
i just remembered that i already had it running for (6 or 7) years like this: ``` nowtime = datetime.datetime.now() repeatminutes = self.args["minutes_between"] startminute = self.args["start_minute"] minute = (int(nowtime.minute/repeatminutes)+1)*repeatminutes time...