Getting ready to convert from Astro1 to Astro2. The readme is a little confusing. Do I need to create a new thing file for the sun and moon configuration?
Wouldn’t it be more in line with OH2 (if this is the case) to have lat/long configured in a binding configuration section in Paper UI and have the binding automatically generate sun/moon things?
Ok, figured it out. Found out after much clicking you must set the lat/long by editing the individual thing info. I guess it works if you want to have this based on another location but it does seem kind of clunky.
One last question, I’m trying to set up my rule as in the readme and have the following:
rule "Lights on at Sunset"
when
Channel 'astro:sun:home:set#event' triggered START
then
if(LightsOnAtSunset.state==ON) {
sendCommand(FrontDoorLight, ON)
sendCommand(FrontDoorDecorations, ON)
sendCommand(FoyerLanternLoadLevelStatus, 30)
sendCommand(MasonJarLight, ON)
sendCommand(PlantAccent, ON)
sendCommand(GreatRoomFrontWindowPlug, ON)
sendCommand(GreatRoomSideWindowPlug, ON)
sendCommand(DiningRoomFrontWindowPlug, ON)
sendCommand(MasterBedroomFrontWindowPlug, ON)
sendCommand(NathanRoomFrontWindowPlug, ON)
sendCommand(OfficePlug, ON)
sendCommand(FoyerPlug, ON)
say("Evening has fallen, time for children to return to their homes.")
}
Eclipse designer is balking at the use of “Channel” as an input. Is this the case of Designer not being in line with the current version of ESH or is there really an issue with the rule?
Well, the rule didn’t fire this evening. Reading over the readme again… do I need to change #event to start? So the “when” portion of the rule would read:
The default channel after installation afaik is “astro:sun:local” and not “astro:sun:home”. Maybe that’s the problem? Have a look in the Paper UI -> Configuration -> Things.
The docs example is astro:sun:home, when you do it through PaperUI it’s astro:sun:local.
As long as both (things and channels) have the same wording it should be okay.
Hence my confusion… you just told me a few posts above that I didn’t need a thing file. Bit by the Paper UI/ non-Paper UI confusion bug.
That’s probably it then… I’m not at home to look right now but since I created the thing via Paper UI but copied the example from the binding readme I’m assuming the channel labeling is incorrect.
I get that (now), but for someone researching and not an expert in OH this can cause a lot of confusion. I think (unless there is a reason for it) it would make a lot more sense in the examples for the channels to be defined the same way in both methods.