I had been using openhab2 betas last year. Anyway, figured I’d start fresh with OH2 release. Trying to have a go without doing much configuration by files; trying to use PaperUI.
I have a wemo lightswitch. It is detected in PaperUI, and I can turn it on and off.
I’ve been trying to write a rule that will turn the light on at sunset.
I eventually came up with the following, which works. But to get the switch name, I ended up going through the initialisation logs to find the name - how is one supposed to find the name or give it an alias to use in scripts?
rule "Turn On Lights After Sunset"
Channel 'astro:sun:local:set#event' triggered START
wemo_lightswitch_Lightswitch_1_0_221609K13013B1_state.sendCommand( ON );