Hey everybody
I’m trying to switch to items with one switch. But when i look in my log viewer i see following errors
2018-11-29 12:04:33.012 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘home.items’
2018-11-29 12:04:33.117 [WARN ] [mon.registry.AbstractManagedProvider] - Could not update element with key _tags:LightAll in ManagedMetadataProviderImpl, because it does not exists.
==> /var/log/openhab2/events.log <==
2018-11-29 12:04:33.184 [ome.event.ItemUpdatedEvent] - Item ‘LightAll’ has been updated.
==> /var/log/openhab2/openhab.log <==
2018-11-29 12:05:00.616 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘home.rules’ has errors, therefore ignoring it: [8,2]: no viable alternative at input ‘when’
[9,8]: no viable alternative at input ‘LightAll’
[9,30]: no viable alternative at input ‘ON’
[9,36]: no viable alternative at input ‘OFF’
this is my home.items file:
//This is the Items File
//Lichten kamer Gregory
Switch LightLeft “Left lights [%S]” [“Lighting” ] {mqtt=">[broker:GVA-S$
Switch LightRight “Right lights [%s]” [“Lighting”] {mqtt=">[broker:GVA$
Switch LightAll “All lights” [“Switchable”]
This is my rules file:
//This is the rules File
rule “Turn on lights”
when
Item LightAll changed from OFF to ON
then
LightLeft.sendCommand(ON)
LightRight.sendCommand(ON)
when
Item LightAll changed from ON to OFF
then
LightLeft.sendCommand(OFF)
LightRight.sendCommand(OFF)
end
anyone any idea why it doesn’t work.
Kind regards