GithubHelp home page GithubHelp logo

fpalsson / com.fp.advanced-scheduler Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 4.0 1.91 MB

An advanced scheduler for Athom Homey. For weekly and monthly (comming) schedules with fixed time or solar events (sunset, sunrise, dusk, dawn, midday and so on). The idea is not having to setup LOTS of flows if you have complex rules of when to do things based on a weekly schedule (with possibly diffrent times at different days of week).

License: GNU General Public License v3.0

TypeScript 56.35% HTML 0.89% Vue 40.59% JavaScript 2.04% SCSS 0.03% Batchfile 0.09%
solar solar-events flow schedules triggers homey homeyapp

com.fp.advanced-scheduler's People

Contributors

corvo avatar dirkg173 avatar fpalsson avatar maxvandelaar avatar xeroxq avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

com.fp.advanced-scheduler's Issues

Schedule started the flow although the schedule was disabled

Hi Frederik,
This morning, a test flow was started even though I had disabled the schedule in the app settings. I can reproduce the error.

I have sent you a diagnostic report: ff7981d6-abc3-468a-a456-793b85fd7076
Homey FW: v5.0.0 and v5.0.1-rc1
App version: v0.1.7

IMG_1773
IMG_1774
Bildschirmfoto 2021-03-05 um 09 26 59

Timebased trigger with random time passing midnight might not trigger

A new list of triggers is created every midnight. It might be that a trigger with random time spanning midnight that is not set on the current side of midnight gets a time before midnight the next time the random time is determined.

Solution might be that there is a list of triggers to remember from last day when passing midnight and creating new ones. This would require some new logic. Put on hold for now, I think.

Flow card not registered - Unknown error

I have installed Adcanced Scheduler 0.3.1 on Homey 7.2.1 and created a schema

Raw settings
{"settingsVersion":2,"settings":{"schedules":[{"id":1,"name":"Voordeur_licht","active":true,"tokens":[{"id":1,"name":"ZetAan","type":"boolean"}],"scheduleItems":[{"id":1,"daysType":"daysOfWeek","daysArg":127,"mainTrigger":{"timeType":"timeOfDay","time":"06:00"},"tokenSetters":[{"id":1,"value":true}]},{"id":2,"daysType":"daysOfWeek","daysArg":127,"mainTrigger":{"timeType":"solar","sunEvent":"sunriseEnd","solarOffset":"00:00"},"tokenSetters":[{"id":1,"value":false}]},{"id":3,"daysType":"daysOfWeek","daysArg":127,"mainTrigger":{"timeType":"solar","sunEvent":"sunsetStart","solarOffset":"00:00"},"tokenSetters":[{"id":1,"value":true}]},{"id":4,"daysType":"daysOfWeek","daysArg":127,"mainTrigger":{"timeType":"timeOfDay","time":"23:00"},"tokenSetters":[{"id":1,"value":false}]}]}]}}

Then I try to create a flow: and get the following error: Unknown error: Flowcard is not registered.

image

To be sure I removed this app from my Homey and reinstalled it.

Q about the nl.json translation file

Hi, trying to understand this neat app,
I was wondering,
while reading the Dutch translation, a word seems left out.
Part of that translation:

"Delete_token_question":"Tag verwijderen?", "Do_you_want_to_delete_token_question":"Wilt u een tag verwijderen? Alle ingestelde tags behorende tot schema gebeurtenissen worden dan verwijderd!",
"Delete_token_setter_question":"Tag verwijderen?", "Do_you_want_to_delete_token_setter_question":"Wilt u de tag instelling verwijderen?",

The one before the last line, this one;

"Delete_token_setter_question":"Tag verwijderen?", 

should imho read:

"Delete_token_setter_question":"Tag instelling verwijderen?", 

In the German translation version, it looks like this. The token_setter is translated to the same word:

"Delete_token_setter_question":"Tag-Schalter löschen?",
"Do_you_want_to_delete_token_setter_question":"Möchten Sie den Tag-Schalter löschen?",

Q no. 2:
Schalter means switch. In Dutch the word "instelling" (setting) is used.
Is 'token_setter' a setting, or is it a switch?

I'll be happy to help out, just drop me a line
Cheers,
Peter

Migrating settings to 0.2.0 structure fails (from 0.1.27 structure)

Using the below settings structure (working in version 0.1.27) in the new 0.2.0 version fails migration/conversion.

To add some basic info about my two schedules, one is meant for my kitchen rollershutter and the other for my livingroom rollershutter.
Both contain the tag Actie and Trigger. The Actie tag contains the action to perform (open, close, etc.). I have 4 possible actions and using (Homey) logic flow cards I can filter on tag, as such I have 4 flows for each rollershutter.
The Trigger tag merely contains my own text representation of what event has occurred. I use the Trigger and Actie tags both in a "debug" flow which logs the contents to the Homey timeline.

So, without furher ado, my 0.1.27 RAW (json) settings look as follows:

{"settings":{"schedules":[{"id":1,"name":"Keuken rolluik","active":true,"tokens":[{"id":2,"name":"Actie","type":"string"},{"id":3,"name":"Trigger","type":"string"}],"scheduleitems":[{"id":1,"daystype":"daysofweek","daysarg":127,"timetype":"solar:sunset","timearg":"00:00","tokensetters":[{"id":2,"value":"Dicht"},{"id":3,"value":"Zonsondergang einde"}]},{"id":2,"daystype":"daysofweek","daysarg":127,"timetype":"solar:goldenHourEveningStart","timearg":"00:00","tokensetters":[{"id":2,"value":"Voorkeur"},{"id":3,"value":"Avond gouden uur begin"}]},{"id":3,"daystype":"daysofweek","daysarg":127,"timetype":"solar:sunriseEnd","timearg":"00:00","tokensetters":[{"id":2,"value":"Voorkeur"},{"id":3,"value":"Zonsopgang einde"}]},{"id":4,"daystype":"daysofweek","daysarg":127,"timetype":"solar:goldenHourMorningEnd","timearg":"00:00","tokensetters":[{"id":2,"value":"Bepalen"},{"id":3,"value":"Ochtend gouden uur einde"}]},{"id":5,"daystype":"daysofweek","daysarg":127,"timetype":"solar:solarNoon","timearg":"-01:00","tokensetters":[{"id":2,"value":"Bepalen"},{"id":3,"value":"Hoogste zonnestand -60"}]},{"id":6,"daystype":"daysofweek","daysarg":127,"timetype":"solar:solarNoon","timearg":"01:00","tokensetters":[{"id":2,"value":"Bepalen"},{"id":3,"value":"Hoogste zonnestand +60"}]},{"id":7,"daystype":"daysofweek","daysarg":127,"timetype":"timeofday","timearg":"11:55","tokensetters":[{"id":2,"value":"Bepalen"},{"id":3,"value":"11:55"}]}]},{"id":2,"name":"Woonkamer rolluik","active":true,"tokens":[{"id":1,"name":"Actie","type":"string"},{"id":4,"name":"Trigger","type":"string"}],"scheduleitems":[{"id":1,"daystype":"daysofweek","daysarg":127,"timetype":"solar:sunsetStart","timearg":"00:05","tokensetters":[{"id":1,"value":"Dicht"},{"id":4,"value":"Zonsondergang begin +5"}]},{"id":2,"daystype":"daysofweek","daysarg":127,"timetype":"solar:goldenHourMorningEnd","timearg":"00:01","tokensetters":[{"id":1,"value":"Open"},{"id":4,"value":"Ochtend gouden uur einde +1"}]},{"id":8,"daystype":"daysofweek","daysarg":127,"timetype":"solar:solarNoon","timearg":"02:00","tokensetters":[{"id":1,"value":"Bepalen"},{"id":4,"value":"Hoogste zonnestand +120"}]},{"id":9,"daystype":"daysofweek","daysarg":127,"timetype":"solar:solarNoon","timearg":"-02:00","tokensetters":[{"id":1,"value":"Bepalen"},{"id":4,"value":"Hoogste zonnestand -120"}]}]}]}}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.