rule "Spot Test"
when
Item vSpotTest changed
then
if(vSpotTest.state == ON)
{
logInfo(logName,"Spot Test")
Spot_GF_LR_1_Brightness.sendCommand("100")
}
end
LOG when triggering vSpotTest rule
2020-04-28 15:48:24.561 [INFO ] [clipse.smarthome.model.script.lights] - Spot Test
2020-04-28 15:48:24.569 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Spot Test': The name 'Spot_GF_LR_1_Brightness' cannot be resolved to an item or type; line 71, column 13, length 23
Events.log file when I trigger vSpotTest on my sitemap
With the item Rule
2020-04-28 15:52:32.878 [ome.event.ItemCommandEvent] - Item 'vSpotTest' received command ON
2020-04-28 15:52:32.885 [vent.ItemStateChangedEvent] - vSpotTest changed from OFF to ON
2020-04-28 15:52:33.895 [ome.event.ItemCommandEvent] - Item 'vSpotTest' received command OFF
2020-04-28 15:52:33.903 [vent.ItemStateChangedEvent] - vSpotTest changed from ON to OFF
With the groups rule
2020-04-28 15:52:35.472 [ome.event.ItemCommandEvent] - Item 'vSpotTest' received command ON
2020-04-28 15:52:35.481 [vent.ItemStateChangedEvent] - vSpotTest changed from OFF to ON
2020-04-28 15:52:35.493 [ome.event.ItemCommandEvent] - Item 'gSpots_LR_All' received command 100
Can you control the brightness from BasicUI? I didn’t see the white dot indicating the channel as linked…but not 100% sure if using items file that it’s needed. Will need to check my own system to know for sure.
EDIT: There should be a white dot indicating the channel is linked.
Forget the Group ; stopchanging things before fixing the last problem ; the above is a pretty basic problem and obviously the group won’t work if its member doesn’t exist.
Is that error still appearing with this rule?
rule "Spot Test"
when
Item vSpotTest changed
then
if(vSpotTest.state == ON)
{
logInfo(logName,"Spot Test")
Spot_GF_LR_1_Brightness.sendCommand("100")
}
end
Agree, no white dot in the channel, which is the problem…I link it in the lights.item file but it doesn’t seem to link it. I can, (and have way, way back in this post somewhere, done this through PaperUI and it all then works but that’s not the right way to do things)…
2020-04-28 16:17:14.604 [INFO ] [clipse.smarthome.model.script.lights] - Spot Test
2020-04-28 16:17:14.608 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Spot Test': The name 'Spot_GF_LR_1_Brightness' cannot be resolved to an item or type; line 71, column 13, length 23
Undoubtedly finger trouble, but you won’t want to hear that, like the Channel/channel.
One point of note - it takes a finite time for openHAB to spot and process any new/edited xxx.itemsxxx.rules files and so on, can be some time on a pi. Bang on with a test, only to find you’re still using old details etc.