Including Fibaro Multisensor manually


I’m trying to include my Zwave Fibaro Multisensors Sensor FGMS-001 ZW5 v3.2 manually by creating .things and .items files.

atm my things-file looks like this:

Thing zwave:fibaro_fgms001_03_002:sensor_binary “Multi1” @ “School” [zwave_nodeid = “2”,zwave_manufacturer = “271”, zwave_deviceid = “0x1001”, zwave_devicetype = “0x602”, zwave_version = “4” ]

and my items file:

Number Multi1 “Multi1_Temperature” { channel=“zwave:fibaro_fgms001_03_002:sensor_binary:sensor_temperature” }

I already managed to include the Zwave Controller via File and it is showing online. The multisensor is just showing “initialising” and doesn’t show any data.

I can see the sensor in oh2, but it is not working (not showing any data), nether can I manipulate the confic parameters of the Sensor. Also there is no XML-File created for the Multisensor.

I 'm working on the automation of the including process, which is why I don’t want to do it with the UI discovery mode.

Does anyone have some experience with it?

thanks and best regards,

Note that you can’t define things in text files with the current snapshot - only the development version supports this at the moment.

Note that if you use the text files there are some limitations with configuring the system in that you won’t be able to change configuration through the UI and the binding does not update the configuration of every device on startup.

Hey chris,

thanks for the advice!

how do I install the snapshot? I put the .jar file into the addons-folder and uninstall the previous binding.


Check out the first few messages in the thread above - it describes how to install it and the dependency.

managed to install the snapshot and added the controller, how can I now add the Multisensors?

Just to clarify - you have included the device initially using the UI - right? It’s not possible to include devices without using the UI. Once a device is included, then you can define it in the things file.

One thing that looks wrong in your definition is you have set the node id as a string - it’s an integer (zwave_nodeid=2).

Oh no, the idea was to add the things without the UI completely, as it sometimes took very long to include the sensors and update the parameters. We are using openhab and zwave on a higher scale, which is why I wanted to implement an automation of the including process.

That’s not really possible. The inclusion process needs to be triggered somehow - the binding only enables inclusion for a short time (30 seconds). Secure inclusion is even worse in this respect.

OH allows you to configure the system with text files, but the ZWave inclusion still needs to be triggered somehow - you can’t just define the things and expect them to work without including the devices into the controller.

Your other option if you are using the Aeon controller is it has a button to allow inclusion, so you could do this manually with the stick, then start the binding, work out what the node numbers are (remember, the controller allocates these - not the binding) and then configure the things.

ok, understood.

I’m now trying to add the sensors via karaf console. I added the bridge and started the discovery mode

smarthome:discovery start zwave:serial_zstick

when I now check the inbox:


I get this output:

NEW [zwave:device]: Z-Wave Node 004 [thingId=zwave:device:5bd85586:node4, bridgeId=zwave:serial_zstick:5bd85586, properties={zwave_class_basic=BASIC_TYPE_ROUTING_SLAVE, zwave_class_generic=GENERIC_TYPE_SENSOR_NOTIFICATION, zwave_frequent=false, zwave_version=0.0, zwave_listening=false, zwave_routing=true, zwave_beaming=true, zwave_class_specific=SPECIFIC_TYPE_NOTIFICATION_SENSOR, node_id=4}, timestamp=Tue Jan 30 13:16:36 UTC 2018, timeToLive=UNLIMITED]
NEW [zwave:device]: Z-Wave Node 003 [thingId=zwave:device:5bd85586:node3, bridgeId=zwave:serial_zstick:5bd85586, properties={zwave_class_basic=BASIC_TYPE_ROUTING_SLAVE, zwave_class_generic=GENERIC_TYPE_SENSOR_NOTIFICATION, zwave_frequent=false, zwave_version=0.0, zwave_listening=false, zwave_routing=true, zwave_beaming=true, zwave_class_specific=SPECIFIC_TYPE_NOTIFICATION_SENSOR, node_id=3}, timestamp=Tue Jan 30 13:16:36 UTC 2018, timeToLive=UNLIMITED]

a few questions came up:

  1. Why does the discovery mode find two things, when I only have one motion sensor active
  2. Why doesn’t it identify the thing as a motion sensor?
  3. How can I now add the Items as Motion Sensors?

thanks for your help Chris!!!

Probably you’ve included it twice.

Hard to say really as there’s not a lot of information. It takes time to identify a battery device. Maybe you didn’t wake it up?

You’ll need to first add the thing, then you can link the items to the channel. You can find the channels seupported in the XML - this will soon be added to the documentation once this is integrated, but currently the database is the best place.

How could that happen? I just started the discovery once and two sensors appeared in the inbox.

I put the sensor in inclusion mode. How can I provide you with more information?

If you include a device twice without excluding it, then you can end up with multiple devices in the controller. The controller doesn’t know that you included the same device twice, or two different devices of the same type.

Have you woken up the device? A log showing the device being woken up is needed and I don’t see that in your log.

ah ok, I excluded the devices in habmin ui and made a hard reset on the controller. Now now Sensor can be found :smiley:

in my frontail logs there is no information about the device being woken up or not. Where can I see that?

thanks alot chris for your patients!

In the logs - if the logs don’t show it being woken up, then it probably isn’t. Are you actually waking it up or not? You need to physically wake it up - there will be a button to press and you need to read the manual to find out what to do as each device will be different.

I rebooted the service, now I get these logs:

2018-01-31 11:21:57.993 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:1c19d802' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE

2018-01-31 11:24:55.686 [arthome.event.BindingEvent] - org.openhab.binding.zwave.event.BindingEvent@47af98

==> /var/log/openhab2/openhab.log <==

2018-01-31 11:24:56.568 [INFO ] [mmandclass.ZWaveSecurityCommandClass] - NODE 2: setupNetworkKey useSchemeZero=false

2018-01-31 11:24:57.014 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'zwave:device:1c19d802:node2' to inbox.

==> /var/log/openhab2/events.log <==

2018-01-31 11:24:57.017 [home.event.InboxAddedEvent] - Discovery Result with UID 'zwave:device:1c19d802:node2' has been added.

2018-01-31 11:24:57.021 [arthome.event.BindingEvent] - org.openhab.binding.zwave.event.BindingEvent@804b20

2018-01-31 11:25:25.822 [arthome.event.BindingEvent] - org.openhab.binding.zwave.event.BindingEvent@bfc4e8

==> /var/log/openhab2/openhab.log <==

2018-01-31 11:25:56.701 [WARN ] [l.serialmessage.SendDataMessageClass] - NODE 2: Already processed another send data request for this callback Id, ignoring.

the inbox shows:

Z-Wave Node 2: FGMS001 Motion Sensor [thingId=zwave:device:1c19d802:node2, bridgeId=zwave:serial_zstick:1c19d802, properties={zwave_class_basic=ROUTING_SLAVE, zwave_class_generic=SENSOR_NOTIFICATION, zwave_frequent=false, zwave_version=3.2, zwave_listening=false, zwave_deviceid=4097, zwave_nodeid=2, zwave_routing=true, zwave_beaming=true, zwave_class_specific=NOTIFICATION_SENSOR, zwave_manufacturer=271, zwave_devicetype=2049}, representationProperty=null, timestamp=Wed Jan 31 11:25:56 CET 2018, timeToLive=UNLIMITED]

to add the thing “smarthome:inbox approve zwave:device:1c19d802:node2” right?

Okay so the sensor is added and identified as a motion sensor, how can I change the paramaters like wake-up period etc? Do I have to use the UI for that?

Yes, but if you are using text definitions for things, then ESH will block configuration updates, so unfortunately this is not possible.

Wakeup period should already be set now that initialisation is complete, but you will have the same problem with other configuration.

Hey Chris,

I’m using openhabian now, is there a root login which gives me permanent sudo access? with openhabian:openhabian I can’t create folders etc on FTP