Astro Binding - No trigger (start - end)

Hello all,

For some reasons I started from scratch and installed Openhab (Openhabian, raspberry 4). I am not an expert user.

3 years ago, I installed “Astro binding” on Openhab 2.x and everything works very well. I used it for my shutters and turning on certain lights.

I am currently on Openhab 4.1.2. I’m trying to configure my “Things” and “Items”, but without full success. I have no trigger. (Civildawn, Civildusk, etc.)

In my “Things” file, no problem! I’m online.

// Astro bindings

Thing astro:sun:home  [ geolocation="xxx,yyy,100", interval=60 ]
Thing astro:moon:home [ geolocation="xxx,yyy", interval=60 ]

In the items, My 8 items works : Radiation, Diffuse_Radiation, MoonPhase, MoonDistance, Moon_Azimuth, Moon_Elevation, Azimuth and Elevation.

// Astro

DateTime         Sunrise_Time       "Sunrise [%1$tH:%1$tM]"                   { channel="astro:sun:home:rise#start" }
DateTime         Sunset_Time        "Sunset [%1$tH:%1$tM]"                    { channel="astro:sun:home:set#start" }
Number:Angle     Azimuth            "Azimuth"                                 { channel="astro:sun:home:position#azimuth" }
Number:Angle     Elevation          "Elevation"                               { channel="astro:sun:home:position#elevation" }
String           MoonPhase          "MoonPhase"                               { channel="astro:moon:home:phase#name" }
Number:Length    MoonDistance       "MoonDistance [%.1f %unit%]"              { channel="astro:moon:home:distance#distance" }
Number:Intensity Total_Radiation    "Radiation [%.2f %unit%]"                 { channel="astro:sun:home:radiation#total" }
Number:Intensity Diffuse_Radiation  "Diffuse Radiation [%.2f %unit%]"         { channel="astro:sun:home:radiation#diffuse" }

Problem is : I no longer have, for example, “civildusk start - end” (trigger?). Absolutely none of them.

In addons/Bindings, I installed “Astro binding” and “Astro Events”.

Does anyone have an idea of ​​the origin of my problem?

Show the rule(s) that are trying to use these triggers. They are still there and they still work.

However, note that you have an alternative. You can use a Time is <Item> rule trigger to trigger the rule based on the state of Sunrise_Time (for example).

Thank you, I will try this alternative !

Rules that were working before are these:

rule "Close the shutters at sunrise if the temperature is above 0°C"
when
    Channel 'astro:sun:local:civilDusk#event' triggered END
then
    val temperature = MeteoLocaleAPIonecall_Current_Temperature.state as QuantityType<Temperature>
    if (temperature.toUnit("°C").doubleValue > 1.0) {
        gvolets.sendCommand(DOWN) 
    } else {
    }
end

(note : I also have difficulty integrating openweather whereas before it worked very well. But I haven’t searched much yet)

rule "Turn on LED Stairs at sunset"
when
    Channel 'astro:sun:local:daylight#event' triggered END
then
    EclairageLEDEscaliers.sendCommand(ON)
end

rule "Turn off LED Stairs at sunrise"
when
    Channel 'astro:sun:local:civilDawn#event' triggered START
then
    EclairageLEDEscaliers.sendCommand(OFF)
end

How do you know this rule is not triggering as opposed to not working for some other reason. There’s no logging. Is this rule actually being loaded? What if the temperature is always < 1.0.

OWM has ended their old v2 API. You need to sign up again to gain access to the v3 API and configure the OWM Thing appropriately.

Here is some log, but no event like “civil dawn end (or start)”.

The shutters have a weather condition, but the lights does’nt. That’s why I don’t think it’s related to Openweather.

About the rules, that’s exactly the same before formatting the SD card ton install fresh onpenhab on it. Just done a copy/past of the rules file.

2024-06-04 21:24:31.497 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 172.14 V to 171.68 V

2024-06-04 21:24:31.684 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 171.72 V to 170.82 V

2024-06-04 21:24:36.554 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 223.9 V to 225.67 V

2024-06-04 21:24:36.557 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 171.68 V to 170.74 V

2024-06-04 21:24:36.749 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 170.82 V to 169.89 V

2024-06-04 21:24:41.239 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'MoonDistance' changed from 3.709557108498951E8 m to 3.709573438339296E8 m

2024-06-04 21:24:41.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Azimuth' changed from 324.1596772782599 to 324.3703805428803

2024-06-04 21:24:41.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Elevation' changed from -9.761051338874433 to -9.843325684172136

2024-06-04 21:24:41.638 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 225.67 V to 224.37 V

2024-06-04 21:24:41.642 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 170.74 V to 169.74 V

2024-06-04 21:24:41.830 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 169.89 V to 169.23 V

2024-06-04 21:24:46.708 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 224.37 V to 224.22 V

2024-06-04 21:24:46.711 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 169.74 V to 169.02 V

2024-06-04 21:24:46.906 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 169.23 V to 168.59 V

2024-06-04 21:24:51.765 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 224.22 V to 225.35 V

2024-06-04 21:24:51.769 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 169.02 V to 156.97 V

2024-06-04 21:24:51.954 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 168.59 V to 156.52 V

2024-06-04 21:24:56.051 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'EclairageBuanderie' changed from OFF to ON

2024-06-04 21:24:56.821 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 225.35 V to 225.16 V

2024-06-04 21:24:56.824 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 156.97 V to 159.4 V

2024-06-04 21:24:57.003 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 156.52 V to 158.93 V

2024-06-04 21:25:01.878 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'EclairageBuanderie' changed from ON to OFF

2024-06-04 21:25:01.894 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 225.16 V to 225.35 V

2024-06-04 21:25:01.895 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 159.4 V to 160.38 V

2024-06-04 21:25:02.075 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 158.93 V to 159.91 V

2024-06-04 21:25:04.569 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'EclairageWCRez' changed from OFF to ON

2024-06-04 21:25:06.943 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 225.35 V to 225.85 V

2024-06-04 21:25:06.947 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 160.38 V to 160.48 V

2024-06-04 21:25:07.267 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 159.91 V to 160.03 V

2024-06-04 21:25:11.995 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 225.85 V to 225.87 V

2024-06-04 21:25:12.000 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 160.48 V to 159.74 V

2024-06-04 21:25:12.298 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 160.03 V to 159.29 V

2024-06-04 21:25:17.049 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 225.87 V to 225.69 V

2024-06-04 21:25:17.052 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 159.74 V to 158.01 V

2024-06-04 21:25:17.345 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 159.29 V to 157.54 V

2024-06-04 21:25:18.827 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Azimuth' changed from 304.6700224311642 to 304.8606379681283

2024-06-04 21:25:18.829 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Elevation' changed from 1.605559909347124 to 1.475124990842566

2024-06-04 21:25:22.100 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 225.69 V to 226.26 V

2024-06-04 21:25:22.103 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 158.01 V to 154.86 V

2024-06-04 21:25:22.390 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 157.54 V to 154.42 V

2024-06-04 21:25:27.156 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 226.26 V to 226.37 V

2024-06-04 21:25:27.159 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 154.86 V to 150.27 V

2024-06-04 21:25:27.484 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 154.42 V to 149.84 V

2024-06-04 21:25:32.217 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 226.37 V to 226.41 V

2024-06-04 21:25:32.219 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 150.27 V to 143.29 V

2024-06-04 21:25:32.527 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 149.84 V to 142.86 V

2024-06-04 21:25:37.273 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 226.41 V to 226.92 V

2024-06-04 21:25:37.276 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 143.29 V to 130.18 V

2024-06-04 21:25:37.558 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 142.86 V to 129.73 V

2024-06-04 21:25:41.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'MoonDistance' changed from 3.709573438339296E8 m to 3.7095897729062265E8 m

2024-06-04 21:25:41.242 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Azimuth' changed from 324.3703805428803 to 324.5813012743519

2024-06-04 21:25:41.243 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Elevation' changed from -9.843325684172136 to -9.925159259872895

2024-06-04 21:25:42.332 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 226.92 V to 226.46 V

2024-06-04 21:25:42.335 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 130.18 V to 97.91 V

2024-06-04 21:25:42.588 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 129.73 V to 97.45 V

2024-06-04 21:25:47.536 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 226.46 V to 0 V

2024-06-04 21:25:47.539 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 97.91 V to 0 V

2024-06-04 21:25:47.739 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 97.45 V to 0 V

2024-06-04 21:25:58.217 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1OpMode' changed from 1295 to 16777213

2024-06-04 21:25:58.811 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1InternalTemperature' changed from 37.6 °C to UNDEF

2024-06-04 21:26:07.445 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1GridContactor' changed from 311 to 16777213

2024-06-04 21:26:07.789 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 0 V to 156.1 V

2024-06-04 21:26:07.995 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 0 V to 155.67 V

2024-06-04 21:26:12.852 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 0 V to 226.62 V

2024-06-04 21:26:12.854 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 156.1 V to 143.63 V

2024-06-04 21:26:13.038 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 155.67 V to 139.95 V

2024-06-04 21:26:13.247 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1OpMode' changed from 16777213 to 1295

2024-06-04 21:26:13.840 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1InternalTemperature' changed from UNDEF to 37 °C

2024-06-04 21:26:17.919 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 226.62 V to 226.63 V

2024-06-04 21:26:17.921 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 143.63 V to 102.64 V

2024-06-04 21:26:18.091 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 139.95 V to 101.34 V

2024-06-04 21:26:18.827 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Azimuth' changed from 304.8606379681283 to 305.05144562791236

2024-06-04 21:26:18.827 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Elevation' changed from 1.475124990842566 to 1.3449945502299112

2024-06-04 21:26:22.988 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 226.63 V to 226.6 V

2024-06-04 21:26:22.992 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 102.64 V to 87.83 V

2024-06-04 21:26:23.165 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 101.34 V to 87.38 V

2024-06-04 21:26:28.045 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 226.6 V to 0 V

2024-06-04 21:26:28.049 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 87.83 V to 0 V

2024-06-04 21:26:28.239 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 87.38 V to 0 V

2024-06-04 21:26:28.324 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1OpMode' changed from 1295 to 16777213

2024-06-04 21:26:28.868 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1InternalTemperature' changed from 37 °C to UNDEF

2024-06-04 21:26:41.240 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'MoonDistance' changed from 3.7095897729062265E8 m to 3.709606112199403E8 m

2024-06-04 21:26:41.240 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Azimuth' changed from 324.5813012743519 to 324.7924393045793

2024-06-04 21:26:41.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Elevation' changed from -9.925159259872895 to -10.006550506259362

2024-06-04 21:26:47.594 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1GridContactor' changed from 16777213 to 311

2024-06-04 21:26:48.287 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 0 V to 227.72 V

2024-06-04 21:26:48.290 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 0 V to 130.67 V

2024-06-04 21:26:48.511 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 0 V to 130.2 V

2024-06-04 21:26:53.348 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 227.72 V to 228.08 V

2024-06-04 21:26:53.351 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 130.67 V to 93.4 V

2024-06-04 21:26:53.554 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 130.2 V to 92.94 V

2024-06-04 21:26:58.425 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 228.08 V to 0 V

2024-06-04 21:26:58.426 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 93.4 V to 0 V

2024-06-04 21:26:58.686 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 92.94 V to 0 V

2024-06-04 21:27:07.651 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1GridContactor' changed from 311 to 16777213

2024-06-04 21:27:18.718 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 0 V to 139.03 V

2024-06-04 21:27:18.823 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Azimuth' changed from 305.05144562791236 to 305.2424470083088

2024-06-04 21:27:18.824 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Elevation' changed from 1.3449945502299112 to 1.2151702406146798

2024-06-04 21:27:18.915 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 0 V to 138.58 V

2024-06-04 21:27:23.782 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 0 V to 228.91 V

2024-06-04 21:27:23.785 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 139.03 V to 90.81 V

2024-06-04 21:27:23.972 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 138.58 V to 90.34 V

2024-06-04 21:27:28.886 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 228.91 V to 0 V

2024-06-04 21:27:28.888 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 90.81 V to 0 V

2024-06-04 21:27:29.135 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 90.34 V to 0 V

2024-06-04 21:27:41.239 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'MoonDistance' changed from 3.709606112199403E8 m to 3.709622456218935E8 m

2024-06-04 21:27:41.240 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Azimuth' changed from 324.7924393045793 to 325.0037944474861

2024-06-04 21:27:41.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Elevation' changed from -10.006550506259362 to -10.087497866446487

2024-06-04 21:27:49.149 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 0 V to 132.16 V

2024-06-04 21:27:49.376 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 0 V to 131.69 V

2024-06-04 21:27:54.202 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 0 V to 226.48 V

2024-06-04 21:27:54.205 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 132.16 V to 99.26 V

2024-06-04 21:27:54.406 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 131.69 V to 98.79 V

2024-06-04 21:27:59.265 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 226.48 V to 0 V

2024-06-04 21:27:59.269 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 99.26 V to 0 V

2024-06-04 21:27:59.453 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 98.79 V to 0 V

2024-06-04 21:28:18.826 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Azimuth' changed from 305.2424470083088 to 305.4336528036655

2024-06-04 21:28:18.827 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Elevation' changed from 1.2151702406146798 to 1.08564756018951

2024-06-04 21:28:19.628 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 0 V to 117.37 V

2024-06-04 21:28:19.819 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 0 V to 116.88 V

2024-06-04 21:28:24.716 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 0 V to 227.83 V

2024-06-04 21:28:24.719 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 117.37 V to 88.79 V

2024-06-04 21:28:24.905 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 116.88 V to 88.3 V

2024-06-04 21:28:29.773 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 227.83 V to 0 V

2024-06-04 21:28:29.775 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 88.79 V to 0 V

2024-06-04 21:28:29.957 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 88.3 V to 0 V

2024-06-04 21:28:41.240 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'MoonDistance' changed from 3.709622456218935E8 m to 3.709638804964452E8 m

2024-06-04 21:28:41.240 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Azimuth' changed from 325.0037944474861 to 325.21536649901657

2024-06-04 21:28:41.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Elevation' changed from -10.087497866446487 to -10.16799978652171

2024-06-04 21:28:48.186 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1GridContactor' changed from 16777213 to 311

2024-06-04 21:28:50.017 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 0 V to 228.21 V

2024-06-04 21:28:50.020 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 0 V to 96.3 V

2024-06-04 21:28:50.284 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 0 V to 95.83 V

2024-06-04 21:28:55.075 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 228.21 V to 0 V

2024-06-04 21:28:55.078 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 96.3 V to 0 V

2024-06-04 21:28:55.321 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 95.83 V to 0 V

2024-06-04 21:29:08.248 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1GridContactor' changed from 311 to 16777213

2024-06-04 21:29:15.593 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 0 V to 119.2 V

2024-06-04 21:29:18.826 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Azimuth' changed from 305.4336528036655 to 305.625055371631

2024-06-04 21:29:18.827 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Elevation' changed from 1.08564756018951 to 0.956434445759988

2024-06-04 21:29:20.393 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 0 V to 228.21 V

2024-06-04 21:29:20.396 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 0 V to 99.43 V

2024-06-04 21:29:20.633 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 119.2 V to 98.98 V

2024-06-04 21:29:25.468 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 228.21 V to 0 V

2024-06-04 21:29:25.471 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 99.43 V to 0 V

2024-06-04 21:29:25.661 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 98.98 V to 0 V

2024-06-04 21:29:41.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'MoonDistance' changed from 3.709638804964452E8 m to 3.709655158435939E8 m

2024-06-04 21:29:41.242 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Azimuth' changed from 325.21536649901657 to 325.4271552371322

2024-06-04 21:29:41.243 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Elevation' changed from -10.16799978652171 to -10.248054715682043

2024-06-04 21:29:45.683 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 0 V to 226.52 V

2024-06-04 21:29:45.686 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 0 V to 99.85 V

2024-06-04 21:29:45.915 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 0 V to 99.43 V

2024-06-04 21:29:48.479 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1GridContactor' changed from 16777213 to 311

2024-06-04 21:29:50.748 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1_voltG1' changed from 226.52 V to 0 V

2024-06-04 21:29:50.751 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC1Volt_input' changed from 99.85 V to 0 V

2024-06-04 21:29:50.954 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1DC2Volt_input' changed from 99.43 V to 0 V

2024-06-04 21:30:08.534 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'inverter1GridContactor' changed from 311 to 16777213

2024-06-04 21:30:18.826 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Azimuth' changed from 305.625055371631 to 305.8166589756784

2024-06-04 21:30:18.827 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Elevation' changed from 0.956434445759988 to 0.8275307494532548

2024-06-04 21:30:41.240 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'MoonDistance' changed from 3.709655158435939E8 m to 3.709671516633056E8 m

2024-06-04 21:30:41.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Azimuth' changed from 325.4271552371322 to 325.63916042170536

2024-06-04 21:30:41.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Elevation' changed from -10.248054715682043 to -10.327661106275464

2024-06-04 21:31:18.825 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Azimuth' changed from 305.8166589756784 to 306.0084651772762

2024-06-04 21:31:18.825 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Elevation' changed from 0.8275307494532548 to 0.6989381535206275

2024-06-04 21:31:41.240 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'MoonDistance' changed from 3.709671516633056E8 m to 3.709687879555848E8 m

2024-06-04 21:31:41.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Azimuth' changed from 325.63916042170536 to 325.85138179429975

2024-06-04 21:31:41.242 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Elevation' changed from -10.327661106275464 to -10.40681741375327

2024-06-04 21:32:18.827 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Azimuth' changed from 306.0084651772762 to 306.20047539724584

2024-06-04 21:32:18.828 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Elevation' changed from 0.6989381535206275 to 0.5706584307774937

2024-06-04 21:32:41.240 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'MoonDistance' changed from 3.709687879555848E8 m to 3.709704247204031E8 m

2024-06-04 21:32:41.240 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Azimuth' changed from 325.85138179429975 to 326.06381907851227

2024-06-04 21:32:41.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Elevation' changed from -10.40681741375327 to -10.485522097098547

2024-06-04 21:32:56.119 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'VVTemperature' changed from 14.120000000000001 °C to 14.11 °C

2024-06-04 21:32:56.135 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'VVLast_updated' changed from 2024-06-04T21:22:56.116+0200 to 2024-06-04T21:32:56.129+0200

2024-06-04 21:33:15.170 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Salon_Temperature' changed from 20.490000000000002 °C to 20.37 °C

2024-06-04 21:33:15.198 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Salon_Humidite' changed from 0.6422 to 0.63940000000000005

2024-06-04 21:33:15.199 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Salon_Lastupdated' changed from 2024-06-04T21:22:38.589+0200 to 2024-06-04T21:33:15.193+0200

2024-06-04 21:33:18.826 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Azimuth' changed from 306.20047539724584 to 306.39268782118654

2024-06-04 21:33:18.827 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Elevation' changed from 0.5706584307774937 to 0.4426954995627298

2024-06-04 21:33:41.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'MoonDistance' changed from 3.709704247204031E8 m to 3.709720619577479E8 m

2024-06-04 21:33:41.242 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Azimuth' changed from 326.06381907851227 to 326.27647197951046

2024-06-04 21:33:41.243 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Moon_Elevation' changed from -10.485522097098547 to -10.563773618564712

About OWM, “Things” is working with v3 API but difficulty to link items.

I don’t know that Channel events appear in events.log by default. Do you seen any other ChannelTriggeredEvents in events.log? Do you use any other channel triggers for rules?

Ultimately, when code doesn’t work, you can not many any assumptions about how you think it works. If you could trust your assumptions, the rule would be working. You must verify and validate all of your assumptions and to do that you must log out everything relevant.

  • log statement at the top of the rule to show the rule was triggered (or enable the logging of rule events to events.log by changing the level to INFO for openhab.event.RuleStatusInfoEvent)

  • log statement(s) showing the states of relevant Items, results of relevant calculations, etc.

  • log statements inside if/else if/else clauses to show which branches in the code are executed.

All I can really say is Astro is probably the most used binding in all of OH. Nothing about how it’s configured and how the event Channels work has changed since before OH 2.5. The likelihood that the binding suddenly broke but only for you is small. So we need to eliminate all other possibilities of errors before investigating Astro.

1 Like

Yes, I also think I must be the problem. I created my rules again but directly in the openhab interface (Parameters - Rules). I’ll see tomorrow if it works.

good idea. I feel like we get about one a month somebody saying ‘my astro binding rule isn’t working’. 9 times out of 10 it is a file based Thing.
Use the UI to create your Things folks…

@Aralas this is not directed at you… good on ya for figuring it out

Hi,

Since I created the rule in the Openhab interface, everything works. I would have preferred to write it directly to the Rule file, but it’s not that bad.

For simple information, here is the rule that worked before my formatting:

rule "Close the shutters at sunrise if the temperature is above 0°C"
when
    Channel 'astro:sun:local:civilDusk#event' triggered END
then
    val temperature = MeteoLocaleAPIonecall_Current_Temperature.state as QuantityType<Temperature>
    if (temperature.toUnit("°C").doubleValue > 1.0) {
        gvolets.sendCommand(DOWN) 
    } else {

    }
end

And here is the rule created via the Openhab interface (the code) without the weather condition :

configuration: {}
triggers:
  - id: "1"
    configuration:
      thingUID: astro:sun:home
      event: END
      channelUID: astro:sun:home:civilDusk#event
    type: core.ChannelEventTrigger
conditions: []
actions:
  - inputs: {}
    id: "2"
    configuration:
      itemName: gvolets
      command: DOWN
    type: core.ItemCommandAction

Thanks to @rlkoshak for his help

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.