Ive successfully integrated the weather binding like shown in several examples in this forum. Now Id like to get sunrise and sunset pulled from openweathermap, the value is there but I have no clue how to get it.
I found an API doc here:
I tried:
DateTime Sunrise “Sonnenaufgang [%1$tH:%1$tM]” {weather=“locationId=home, type=sys, property=sunrise”}
Error:
2018-01-29 14:28:22.947 [ERROR] [el.item.internal.GenericItemProvider] - Binding configuration of type ‘weather’ of item ‘Sunrise’ could not be parsed correctly.
org.eclipse.smarthome.model.item.BindingConfigParseException: Invalid binding, unknown type or property: locationId=home, type=sys, property=sunrise
I know there is an astro binding, but I want to keep my openhab light…
any ideas?
I’d STRONGLY advice you to delete your PRIVATE API-key in the intial post!
Additionally, I do not think that astrological data is in that API nor is it handled by the weather binding (at least I think it is not).
However OH has a dedicated Astro-binding which can give you those values!