Hi OpenHAB people,
I’m having trouble getting the security/zones portion of my OmniLink online with OH3. The thermostat and temperature sensor are working fine. I had things working under OH2.5 for years, so I suspect I’ve just missed a critical step or done something dumb.
What works, what doesn’t:
Working:
- Thermostat correctly reports status (fans, temps, etc.) and can be adjusted from OpenHAB app
- Alarm mode correctly repots status
Not working
- Alarm can’t be armed or disarmed. The item value changes in OpenHAB but the change isn’t pushed to OmniLink.
- Zones (doors, motion, etc) don’t show status, just show as a dash ("-").
Some code
- A couple working and broken examples from my install
- Transform map files were copied verbatim from examples (not repeated below)
Items:
/* Temperature - working */
Number:Temperature Thermostats_Outside_Temp "Temperature [%.1f %unit%]" <temperature> (Thermostats) {channel="omnilink:temp_sensor:45fb48fd15:9:temperature"} //omnilink:temp_sensor:815b068cf2:9
/* Thermostat - working */
Number:Temperature Thermostats_Temp "Temperature [%.1f %unit%]" <temperature> (Thermostats) {channel="omnilink:thermostat:45fb48fd15:1:temperature"}
Number Thermostats_Status "Status [MAP(therm-status.map):%s]" <heating> (Thermostats) {channel="omnilink:thermostat:45fb48fd15:1:status"}
/* Alarm - not working */
Number AlarmMode "Alarm [MAP(area-modes.map):%s]" <alarm> {channel="omnilink:area:45fb48fd15:1:mode"}
/* Door sensors - not working */
Number Zones_GarageEntry_Current "Garage Entry Current: [%s]" <door> (HS_Contacts) {omnilink="omnilink:zone:45fb48fd15:5:current_condition"}
Contact Zones_GarageEntry_Contact "Garage Entry Contact: [%s]" <door> (HS_Contacts) {omnilink="omnilink:zone:45fb48fd15:5:contact"}
Sitemap
Frame label="Thermostat"{ // working
Text item=Thermostats_Temp
Setpoint item=Thermostats_HeatPoint label="Heat [%d °F]" minValue=55 maxValue=75 step=1
Switch item=Thermostats_System label="Mode"
}
Frame label="Security" { // not working
Switch item=AlarmMode label="Alarming" mappings=[ 0=Off,2=Night,3=Away ]
Text item=Zones_GarageEntry_Contact
Text item=Zones_GarageEntry_Current
}
What I’ve done/tried
- Initial setup
- I added the things via discovery and brought my items file over from OH2 with everything commented out. I added z-wave, did a find/replace to correct the channels, and uncommented them. Z-wave items are behaving as expected.
- Instead of using my existing OmniLink items from OH2 I copied the examples from the OpenHAB OmniLink binding docs. I updated the channels to match my OmniLink things and added them to the sitemap I brought over.
- Alarm mode item changed from string to number, this got it correctly reporting status - I think this is an error in the example, the mode should be number instead of string.
- Changed the format of mapping in alarm mode item from inside channel to inside label. Since thermostat is working I tried this to see if it would help the alarm. Didn’t change behavior.
- Tried different item types for door contact: contact, number, and string. Didn’t change the behavior.
- Tried the older channel type id for zone’s current state (“current” vs “current_condition”). Didn’t change behavior.
Environment
- OH3 running as a service on Windows 10 Pro (clean install, no previous OH instance on machine)
- Installed Zulu java and added env variable per install guidance
- OmniLink binding added via web UI
- Things: OmniLink controller, thermostat, zones, & temp sensor added via discovery
- Items: OmniLink thermostat, zones, & temp sensor added manually via items file
- Sitemap: brought over from OH2 and trimmed down to just what was recreated
Thanks,
Reeves