Hi, I have problems with use Rollershutter in sitemap. I can’t use Rollershutter in sitemap, because file generates error.
I have :
Thing shutter Zaluzje [ upId=5, downId=6 ] in satel.things
Rollershutter ZALUZJE “Zaluzje” (Satel) { channel=“satel:shutter:home:Zaluzje:state” } in satel.items
and:
Frame label=“Zaluzje” {
/*Rollershutter item=ZALUZJE
}
in satel.sitemap
What going on ?
There are no Rollershutter elements for the sitemap
You can use a Text element with mapping:
For example:
Text item=ZALUZJE mappings=[UP="UP", DOWN="DOWN", STOP="STOP"]
so, I use “Text” in satel.sitemap but what have I in satel.items ?
because with Text item=ZALUZJE mappings=[UP=“UP”, DOWN=“DOWN”, STOP=“STOP”] only in sitemap I have error.
Yes
What error?
the system can not see sitemap
Shutter don’t have type “Text” but only “Rollershutter”
Not in sitemaps they don’t
It’s different in sitemaps, there are not items is sitemaps but “elements”
Post your sitemap file, please
sitemap satel label="Satel"
{
Frame label="Alarm system" {
Switch item=ALARMS mappings=[OFF="Clear"]
Switch item=GARAZ_ARMED mappings=[ON="Arm", OFF="Disarm"]
Switch item=POKOJ_ARMED mappings=[ON="Arm", OFF="Disarm"]
}
Frame label="Status" {
Switch item=SYSTEM_TROUBLES mappings=[OFF="Clear"]
Switch item=SALON_VIOLATION
Switch item=SALON_ALARM
Switch item=KORYTARZ_VIOLATION
Switch item=PRZEDPOKOJ_VIOLATION
Switch item=PIWNICA_VIOLATION
Switch item=GARAZ_VIOLATION
}
Frame label="Garaz" {
Switch item=WROTA
}
Frame label="Zaluzje" {
Text item=ZALUZJE mappings=[UP="UP", DOWN="DOWN", STOP="STOP"]
}
}
What error do you get in the logs when you save the sitemap?
2018-11-04 22:41:07.250 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'satel.sitemap' has errors, therefore ignoring it: [21,28]: mismatched input 'mappings=[' expecting '}'
[24,1]: extraneous input '}' expecting EOF
My fault, change the Text
to Switch
Frame label="Zaluzje" {
Switch item=ZALUZJE mappings=[UP="UP", DOWN="DOWN", STOP="STOP"]
}
Hi, thanks for your help, but I have in Logs this
2018-11-05 17:15:56.750 [ome.event.ItemCommandEvent] - Item 'ZALUZJE' received command UP
2018-11-05 17:15:57.442 [nt.ItemStatePredictedEvent] - ZALUZJE predicted to become NULL
Try that:
Rollershutter ZALUZJE "Zaluzje" (Satel) { channel="satel:shutter:home:Zaluzje:state", autoupdate="false" }
Ok, I’dont have errors, but does not work. Roller don’t Up or Down.
What does the logs show?
2018-11-05 19:11:31.339 [ome.event.ItemCommandEvent] - Item 'ZALUZJE' received command UP
and nothing more
Your item is linked to the channel state
Are there other channels available?
yes I have connect
2018-11-06 15:03:52.500 [vent.ItemStateChangedEvent] - satel_zone_home_5_violation changed from ON to OFF
2018-11-06 15:03:53.354 [vent.ItemStateChangedEvent] - satel_zone_home_8_violation changed from ON to OFF
2018-11-06 15:03:53.429 [vent.ItemStateChangedEvent] - satel_zone_home_2_violation changed from OFF to ON
2018-11-06 15:03:53.575 [vent.ItemStateChangedEvent] - PRZEDPOKOJ_VIOLATION changed from ON to OFF
Then if that’s the only channel available, you may be out of luck. The state channel will report the state but not accept commands.
This would make no sense. In Integra system you use outputs to control a rollershutter, but in fact you cannot read its current state.
@Pawel_S Please enable debug level for ‘org.openhab.binding.satel’ category and see if there are any entries about processing command by this shutter thing.