Openhab2 and Astro Binding

Ihave a question concerining the item defintions.
When I define:
// shows the sunrise
DateTime Sunrise_Time “Sonnenaufgang[%1$tH:%1$tM]” { channel=“astro:sun:home:rise#start” }
DateTime Sunset_Time “Sonnenuntergang [%1$tH:%1$tM]” { channel=“astro:sun:home:set#start” }
String MoonPhase “Mondphase [MAP(astro.map):%s]” { channel=“astro:moon:home:phase#name” }

It works on the sitemap with
Text item=Sunrise_Time icon="sunrise"
Text item=Sunset_Time icon="sunset"
Text item=MoonPhase

But if I define in the items:
DateTime Sunrise_Time “Sunrise [%1$tH:%1$tM]” {astro=“planet=sun, type=rise, property=start”}
DateTime Sunset_Time “Sunset [%1$tH:%1$tM]” {astro=“planet=sun, type=set, property=end”}

It does not work on the seitemap.
What is the difference between these two definitions which I found both in some websites
Thank you

That is an item definition for astro2 binding.

That is an item definition for astro1 binding.

Thank you that was very helpful.
For a beginner it was very confusing with these differences.
You never know is the information for openhab2 or 1.

Your best bet is to use the official docs to find the correct definitions:

http://docs.openhab.org/addons/bindings/astro/readme.html

When installing the binding, you may notice if OH1 or OH2.
When configuring an item with an openHAB2 binding, you will always use {channel="…"} and if it is an openHAB1 binding, you will never use {channel="…"} :wink:

Thank you very much for your help
B.Langner