TheNavy
(Richard)
June 21, 2017, 6:57am
1
Hey,
i start to migrate my FHEM-System to OH2. To trigger darkness (for Shutter / Light etc.) i formerly used the “Twilight”-Plugin for FHEM. There you have the options:
Light:
0 - total night, sun is at least -18 degree below horizon
1 - astronomical twilight, sun is between -12 and -18 degree below horizon
2 - nautical twilight, sun is between -6 and -12 degree below horizon
3 - civil twilight, sun is between 0 and -6 degree below horizon
4 - indoor twilight, sun is between the indoor_horizon and 0 degree below horizon (not used if indoor_horizon=0)
5 - weather twilight, sun is between indoor_horizon and a virtual weather horizon (the weather horizon depends on weather conditions (optional)
6 - maximum daylight
The Lightoption 5 - Weather twilight is very nice because it shifts the time earlier when its cloudy.
Is there an solution for Openhab to recreate this? The Astro-Binding offers me only “Civil Dawn” which is ok but not perfect
Thanks
Richard
sihui
(SiHui)
June 21, 2017, 7:33am
2
Astro binding also provides:
group rise, set, noon, night, morningNight, astroDawn, nauticDawn, civilDawn, astroDusk, nauticDusk, civilDusk, eveningNight, daylight
In conjunction with the weather binding and a simple rule you should be able to create the same functionality.
@sihui I also have a problem. Channel astroDawn (StartTime) is not running anymore. I first recognized it with build #920 and after this till now I used build #940 (0.9.0.201706071228), today I updated to build #958 (0.9.0.201706191632), but it is still not running anymore! See here: AstroDawn (Start time) is empty!
Could you please check?
sihui
(SiHui)
June 21, 2017, 9:50am
4
I don’t use AstroDawn but did a test just now and I’m seeing the same behaviour:
You should file an issue ticket at:
Unfortunately it looks like in the current builds the astro binding is broken anyway:
opened 12:42PM - 20 Jun 17 UTC
closed 11:52AM - 21 Jun 17 UTC
bug
Binding-Astro
As described here:
https://community.openhab.org/t/astro-bindings-fires-trigger… s-constantly/30254/4
the astro binding constantly triggers its events.
event.log:
2017-06-20 08:51:55.064 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:51:56.063 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:51:57.072 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:51:58.097 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:51:59.073 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:00.124 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:01.062 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:02.061 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:03.069 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:03.542 [ItemStateChangedEvent ] - Haushalt_Current changed from 341.6 to 341.3
2017-06-20 08:52:03.578 [ItemStateChangedEvent ] - Haushalt_Total changed from 9145.543200000002 to 9145.5452
2017-06-20 08:52:04.102 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:05.070 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:06.079 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:07.066 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:08.062 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:09.067 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:10.093 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:11.116 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:12.062 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:13.214 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:13.857 [ItemStateChangedEvent ] - Heizung_Current changed from 15.700000000000001 to 15.8
2017-06-20 08:52:13.895 [ItemStateChangedEvent ] - Heizung_Total changed from 9406.7968 to 9406.796900000001
2017-06-20 08:52:14.080 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:15.063 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:16.061 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:17.063 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:18.065 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:19.064 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:20.088 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:21.064 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:22.096 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:23.096 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:24.067 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:25.077 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:26.093 [ItemStateChangedEvent ] - Haushalt_Current changed from 341.3 to 350.6
2017-06-20 08:52:26.105 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:26.168 [ItemStateChangedEvent ] - Haushalt_Total changed from 9145.5452 to 9145.5474
2017-06-20 08:52:27.125 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:28.065 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:29.073 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:30.072 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:31.069 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:32.066 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:33.067 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:34.147 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:35.220 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:36.131 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:37.101 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:37.492 [ItemStateChangedEvent ] - Heizung_Current changed from 15.8 to 15.700000000000001
2017-06-20 08:52:37.538 [ItemStateChangedEvent ] - Heizung_Total changed from 9406.796900000001 to 9406.797
2017-06-20 08:52:38.106 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:39.072 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:40.064 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:41.065 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
2017-06-20 08:52:42.117 [ChannelTriggeredEvent ] - astro:moon:local:rise#event triggered START
TheNavy
(Richard)
June 21, 2017, 10:44am
6
Yes i know the other outputs from the binding but i think for light in the evening Civil Dawn is the best option.
I hoped that there is a way build in the System. Then i think i will go with an Rule where the “Civil Dawn” joins with the Cloudlevel.
// clouds
Number Clouds “Clouds [%.0f %%]” {weather=“locationId=home, type=clouds, property=percent”}
TheNavy
(Richard)
June 21, 2017, 10:48am
7
Celaeno1:
@sihui I also have a problem. Channel astroDawn (StartTime) is not running anymore. I first recognized it with build #920 and after this till now I used build #940 (0.9.0.201706071228), today I updated to build #958 (0.9.0.201706191632), but it is still not running anymore! See here: AstroDawn (Start time) is empty!
Could you please check?
Hey,
i can’t check it now because i’m not at Home. But i think yesterday i had full Data from the Binding. But I do not know if I have the current version of the Binding. I will check that later and give an Feedback too
“astroDawn#start” ="-" is not a binding issue, it’s an astronomical issue. “Astronomical dawn” is currently “n/a” in my hometown.