Hi @Lolodomo, I’ve just installed your OH2 plugin and I’m quite stucked.
I’ve configure the Bridge Thing to connect over serial (RFXCOM did the trick) and I’ve configured my 5 alarm zones. In paperui they showup green and “Online”.
This is my Bridge Definition
Bridge powermax:serial:home "Alarma" [ serialPort="/dev/ttyUSB0", allowArming=false, panelType="PowerMaxPro", autoSyncTime=true ]
{
Thing zone Salon1 "Salon1" [ zoneNumber=1 ]
Thing zone Salon2 "Salon2" [ zoneNumber=2 ]
Thing zone Puerta_Ppal "Puerta Principal" [ zoneNumber=3 ]
Thing zone Puerta_Titi "Puerta Titi" [ zoneNumber=4 ]
Thing zone Fuego "Fuego" [ zoneNumber=10 ]
}
Just for testing, I have added an item file with a Switch copied from your doc.
Switch SystemArmed "System armed" {channel="powermax:serial:home:system_armed", autoupdate="false"}
But the SystemArmed Switch does not represent the real state of the alarm.
And this is my log file looks like this (The CRC error repeats every 30 sec)
2017-07-17 19:07:38.112 [DEBUG] [org.openhab.binding.powermax ] - BundleEvent STARTING - org.openhab.binding.powermax
2017-07-17 19:07:38.161 [DEBUG] [org.openhab.binding.powermax ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.io.console.extensions.ConsoleCommandExtension}={component.name=binding.powermax.con
sole, component.id=184, service.id=311, service.bundleid=193, service.scope=bundle} - org.openhab.binding.powermax
2017-07-17 19:07:38.186 [DEBUG] [org.openhab.binding.powermax ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={component.name=binding.powermax, component
.id=185, service.id=312, service.bundleid=193, service.scope=bundle} - org.openhab.binding.powermax
2017-07-17 19:07:38.280 [DEBUG] [org.openhab.binding.powermax ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=313, service.bundleid=193, service.s
cope=singleton} - org.openhab.binding.powermax
2017-07-17 19:07:38.290 [DEBUG] [wermax.handler.PowermaxBridgeHandler] - initializing handler for thing powermax:serial:home
2017-07-17 19:07:38.382 [DEBUG] [org.openhab.binding.powermax ] - BundleEvent STARTED - org.openhab.binding.powermax
2017-07-17 19:07:38.672 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2017-07-17 19:07:48.352 [DEBUG] [wermax.handler.PowermaxBridgeHandler] - Powermax job...
2017-07-17 19:07:48.369 [DEBUG] [wermax.handler.PowermaxBridgeHandler] - trying to reconnect...
2017-07-17 19:07:48.371 [DEBUG] [wermax.handler.PowermaxBridgeHandler] - closeConnection(): disconnected
2017-07-17 19:07:48.409 [DEBUG] [al.connector.PowermaxSerialConnector] - open(): Opening Serial Connection
2017-07-17 19:07:49.008 [DEBUG] [ernal.connector.PowermaxReaderThread] - Data listener started
2017-07-17 19:07:49.008 [INFO ] [wermax.handler.PowermaxBridgeHandler] - Powermax alarm binding: serial connection (/dev/ttyUSB0): connected
2017-07-17 19:07:49.009 [DEBUG] [wermax.handler.PowermaxBridgeHandler] - openConnection(): connected
2017-07-17 19:07:49.034 [DEBUG] [.internal.message.PowermaxCommDriver] - sendMessage(): add message in queue (type DOWNLOAD)
2017-07-17 19:07:49.037 [DEBUG] [owermax.handler.PowermaxThingHandler] - Initializing handler for thing powermax:zone:home:Salon1
2017-07-17 19:07:49.039 [DEBUG] [wermax.handler.PowermaxBridgeHandler] - Received command REFRESH from channel system_armed
2017-07-17 19:07:49.043 [DEBUG] [owermax.handler.PowermaxThingHandler] - Set handler status to ONLINE for thing powermax:zone:home:Salon1 (bridge ONLINE)
2017-07-17 19:07:49.050 [DEBUG] [owermax.handler.PowermaxThingHandler] - Initializing handler for thing powermax:zone:home:Fuego
2017-07-17 19:07:49.054 [DEBUG] [owermax.handler.PowermaxThingHandler] - Set handler status to ONLINE for thing powermax:zone:home:Fuego (bridge ONLINE)
2017-07-17 19:07:49.061 [DEBUG] [owermax.handler.PowermaxThingHandler] - Initializing handler for thing powermax:zone:home:Salon2
2017-07-17 19:07:49.064 [DEBUG] [.internal.message.PowermaxCommDriver] - sendMessage(): sending DOWNLOAD message 0D2400004F48000000000000000A
2017-07-17 19:07:49.066 [DEBUG] [owermax.handler.PowermaxThingHandler] - Set handler status to ONLINE for thing powermax:zone:home:Salon2 (bridge ONLINE)
2017-07-17 19:07:49.073 [DEBUG] [owermax.handler.PowermaxThingHandler] - Initializing handler for thing powermax:zone:home:Puerta_Titi
2017-07-17 19:07:49.076 [DEBUG] [owermax.handler.PowermaxThingHandler] - Set handler status to ONLINE for thing powermax:zone:home:Puerta_Titi (bridge ONLINE)
2017-07-17 19:07:49.085 [DEBUG] [owermax.handler.PowermaxThingHandler] - Initializing handler for thing powermax:zone:home:Puerta_Ppal
2017-07-17 19:07:49.089 [DEBUG] [owermax.handler.PowermaxThingHandler] - Set handler status to ONLINE for thing powermax:zone:home:Puerta_Ppal (bridge ONLINE)
2017-07-17 19:08:08.133 [WARN ] [ernal.connector.PowermaxReaderThread] - Powermax alarm binding: message CRC check failed (expected 29, got 28, message 0DAB03001E00312E3038000043290A)
2017-07-17 19:08:09.067 [DEBUG] [wermax.handler.PowermaxBridgeHandler] - Powermax job...
2017-07-17 19:08:29.069 [DEBUG] [wermax.handler.PowermaxBridgeHandler] - Powermax job...
2017-07-17 19:08:38.134 [WARN ] [ernal.connector.PowermaxReaderThread] - Powermax alarm binding: message CRC check failed (expected 29, got 28, message 0DAB03001E00312E3038000043290A)
2017-07-17 19:08:49.072 [DEBUG] [wermax.handler.PowermaxBridgeHandler] - Powermax job...
Thx on advance for your help
Chano