[RELEASE] Fibaro Wall Plug ZW5 (Z-Wave+) DTH



This is an DTH for Fibaro Wall Plug Z-Wave+ version 3.2

This DTH provides the following functionality:

  • On/Off
  • Power and Energy Monitoring
  • Manual refresh both Power and Energy (by tapping one of the value tiles)
  • Reset for accumulated kWh value
  • Configuration for 12 parameters:
  • Always on function
  • Restore state after power failure
  • Overload safety switch
  • Immediate power reports
  • Standard power reports
  • Power reporting interval
  • Energy reports
  • Periodic power and energy report
  • Energy consumed by the device itself
  • Power load which makes the LED ring flash violet
  • Ring LED color when on
  • Ring LED color when off
  • Parameter synchronization status information on main tile
  • Summary power and energy information on main tile

This DTH was briefly tested by me for issues like lockup after fast switching and failure to respond without connected load and does not seem to have this issues but I don’t guarantee it’s is completely free of them.



New Fibaro wall plug
[ABANDONED] Fibaro Wall Plug ZW5
[Release] Fibaro Wall Plug (Old version, not zwave+)
[ABANDONED] Fibaro Wall Plug ZW5
[Release] Fibaro Wall Plug (Old version, not zwave+)
Fibaro Wall Plug - Change Colors?
(Lasse) #2

Good work! Tried it and it works good for me.



This is great!

Thank you

(Niels Petter) #4

I tried using this, but the tiles were not updated to reflect current state (i.e on/off). After looking into it, I can see that I get the status in an unhandled zwaveEvent (BasicReport), and not in the expected SwitchBinaryReport. Could this be a difference in firmware of the device? To be honest, I just got my first smartthings hub a couple of days ago, so I’m not sure how to retrieve the firmware version of a z-wave device.


Check the box for your Wall Plug - if it says version 2.0 - 2.5 you have older firmware and should use older DTH (you’ll find it somewhere on the forums). This one is only compatible with 3.2 (Z-Wave+) version.

(EinarS) #6

Great work @ClassicGOD works like a charm

(Achim Stein) #7

Thanks, this is great work. But any idea how to increase the font size on my Galaxy Tab2?

(M203) #8

So been away for a while from smarthings so was very happy to see a device type for the fibaro wall plug when checking the forums for the first time in a long while.

Thinking of trying one out for the powe outlet that supports my tv and htpc with power. So I wonder, can I save data continously in some way and get graphs? Is this something that WebCore could do (I have just seen it mentioned, dont really know how it works. Can I get notifications when power consumption passes certain consumption both up and down , can I turn off led ring color when power consumption below certain value etc. How are you using it?

Best regards

(Yoeri Rousseaux) #9

Is this still accurate in the code?
Requires: Fibaro Double Switch 2 Child Device
Importing this Device Handler from Github gives an error.

I ask because i frequently get that the device is unavailable, turning it on/off makes it available again though, but might give issues with Smart Lighting if the device is “offline” i think


Code is still accurate. Ignore “Requires: Fibaro Double Switch 2 Child Device” line it’s a remnant from my other DTH that I used as a source for this one - I simply forgot to remove it, sorry for the confusion.

Do you have any periodic reporting enabled for the plug? If there is no activity from the plug for some time ST assumes it’s dead. Try enabling periodic power and energy reports every hour (3600sec) and se if that helps. Or remove

capability "Health Check"

line from the code.

All of my Fibaro device handlers will get a rewrite sooner or later so I’ll try to provide better support for Health Check capability at some point.

(Alwas) #11

I’ve just bought a couple of these updated sensors using your code, everything seems to work ok, I’ve had them 30 minutes, but the colour changes don’t seem to take effect, I wait for it to sync but no colour, I only get a light blue flash when I turn the plug on and off, not a massive deal though.

(Yoeri Rousseaux) #12

Thanks, i’ve set 15 tot measure now, will see what that gives

(Robin) #15

Sounds like you’re trying to install code for a device handler into the section of the IDE intended for smartapp Code.

Look at the other tabs at the top of the IDE and you’ll see what I mean :wink:

(Robin) #16


Seems a shame to delete your question… its nothing to be ashamed of (loads and loads of people do the same) and leaving the thread intact helps others with the same issue.

For the benefit of others, if you get this message then you’re installing code in the wrong section:

No signature of method: script1507288965810583115809.metadata() is applicable for argument types: (script1507288965810583115809$_run_closure1) values: [script1507288965810583115809$_run_closure1@3c6983aa] Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure)

(Joacim) #17


I have a pair of Fibaro wall plugs FGWPE/F-102 ZW5. I´ve used classic god when I installed them initially, and now 3/5 stopped working. Or the issue in hand is that:
I had not problems adding the plugs to the network. They are detected and I can see the power consumption and the state (on/off). However, if i try to change the state (on/off) remotely it doens’t work. I´ve tried factory installing the wall plugs and adding them again, same issue. Can´t change the state through the app?

Any guesses how to proceed?



(Valentino Baccolini) #18

Joachim I was in your situation. I go to the smartthings Web page and login. Inside the location you can see all device. I select the wall plug(called meter energy…) and I decide to select another type, I choose aeon smart energy plug 5. Now work better but I can use the some parameters. If you solve can help me the way? Thanks

(Robin) #19

I just replied to you on a different post:

(Joacim) #20

Ah. thank you for the hint, I manage to solve it by changing the device type in the handler. It was set to something else than standard of some reason!



(Joacim) #21

Hi Robin,

I´ve already installed the custome code int the IDE handler. My problem were that they suddenly stopped working. I manage to solve it by changing the Device Type to Fiber wall plug zw5. (Somehow it changed to another device type out of the blue?).

Thanks for the help though. :slight_smile:



(Csg71) #22


I just wanted to drop a line to thank you for this great piece of work.
It has taken me a couple of hours to realize that the device handler you shared had to be uploaded under “My Device Handlers”, and not as I was trying as “My Smart Apps” (once logged into the URL https://graph.api.smartthings.com/)…

Once that was done, the Fibaro Wall Plug device had to be edited to the new type “Fibaro Wall Plug ZW5” (visible once the device handler has been saved in the previous step) - under the initial pairing with the Smartthings Hub it was mapped automatically as a different type… and at that moment the smartthings app in my smartphone was able to switch on-off the wall plug.

I would be very greatful if you could mitigate my curiosity: how were you able to figure out all the fingerprint data, the information in the “device configuration” section, etc?

best regards,