Hey, since using OH3 I get this Error from the Astro Binding ERROR] [o.internal.handler.AstroThingHandler] - Can’t update state for channel astro:sun:local:season#timeLeft : null
I‘m not using the local:season#timeLeft and it is not linked.
Is this bug back again in OH3.2.M2? I have activated the timleft channel and get update of timeleft only when I deactivate and activate the astro thing, but not in normal operation.
Or do I have to consider something additional?
I still have a problems using astro sun rise and sun set with offset things and rules.
I am using OpenHab 3.1.0!
I created an astro thing:
astro:sun:home1 “Sun_plus30”[ geolocation=“51.49073114618457,3.911122083663941”, interval=60 ] {
Channels:
Type rangeEvent : rise#start [
offset=23,
latest=“08:30”
]
}
Then I created a rule which should react on the channel:
rule “Zon op rule home1 na 30 min.”
when
Channel ‘astro:sun:home1:rise#event’ triggered START
then
executeCommandLine(Duration.ofSeconds(5),"/var/lib/openhab/print_cmd.sh",“het is 30 minuten na zonsopkomst.”)
logInfo(“write text1”, “text geschreven in eigen file /etc/openhab/html/test.txt: het is 30 minuten na zonsopkomst.”)
end
The rule gest triggerd on the original sun:rise#event, and not on the astro:sun:home1:rise#event:
I Use the event.log and openhab.log to check when the rule gets triggerd.
openhab.log:
2021-09-21 07:30:00.073 [INFO ] [penhab.core.model.script.write text1] - text geschreven in eigen file /etc/openhab/html/test.txt: het is 30 minuten na zonsopkomst.
rule "UpHomePlus30_rule"
when
Channel 'astro:sun:UpHomePlus30:rise#event' triggered START
then
executeCommandLine(Duration.ofSeconds(5),"/var/lib/openhab/print_cmd.sh","UpHomePlus30: is triggered.")
logInfo("write text1", "text geschreven in eigen file /etc/openhab/html/test.txt: UpHomePlus30: is triggered.")
end