It’s still a work a progress, feel free to have a look at my varsupport branch.
In my code (line 148) I have added ‘at’ as a disambiguate word for the sunrise plugin. So if I use
when at $variable before sunset, there is no ambiguity and my rule works. This is just a test and I would like the ‘at’ te be removed from the code eventually.
However, if I use
it is instead of
at I get an error from Pimatic “Next predicate of “its $variable before sunset” is ambiguous”.
Digging in I’ve found that it’s ambiguous for:
its $variable, leaving
before sunsetas a remainder to be parsed.
its $variable before sunsetwith no remainer.
Did some more analysis and these are the overlaps I’ve found:
$variable minutes before sunset works
at $variable minutes before sunset works (with my addition of
its $variable minutes before sunset pimatic-cron also matches
its $variable, ambiguous
10 minutes before sunset works
at 10 minutes before sunset also matches pimatic-cron, ambiguous
its 10 minutes before sunset works
Does anyone have a suggestion, other than using ‘at’, to resolve this ambiguity?