[SOLVED] Philips Hue Foh Switches

Hey everyone,

Is there a way to bind a Philips Hue Foh (Friends of Hue) Switch with a manual binding? Because they are not recognized by discovery. I have these informations from my Hue Bridge:

"22": { "state": { "buttonevent": 22, "lastupdated": "2019-[...]:06" }, "swupdate": { "state": "notupdatable", "lastinstall": null }, "config": { "on": true }, "name": "Schalter Wohnzimmer", "type": "ZGPSwitch", "modelid": "FOHSWITCH", "manufacturername": "PhilipsFoH", "productname": "Friends of Hue Switch", "diversityid": "de[...]5", "uniqueid": "00:[...]f", "capabilities": { "certified": true, "primary": true, "inputs": [ { "repeatintervals": [], "events": [ { "buttonevent": 16, "eventtype": "initial_press" }, { "buttonevent": 20, "eventtype": "short_release" } ] }, { "repeatintervals": [], "events": [ { "buttonevent": 17, "eventtype": "initial_press" }, { "buttonevent": 21, "eventtype": "short_release" } ] }, { "repeatintervals": [], "events": [ { "buttonevent": 19, "eventtype": "initial_press" }, { "buttonevent": 23, "eventtype": "short_release" } ] }, { "repeatintervals": [], "events": [ { "buttonevent": 18, "eventtype": "initial_press" }, { "buttonevent": 22, "eventtype": "short_release" } ] } ] } },

Hi Daniel,

Welcome to the openHAB community :+1:. Which OH2 version do you use? 2.4? Or lower? For the discovery of Hue devices the “type”: “ZGPSwitch” is important. IIRC support for it has been added long time ago (see https://github.com/eclipse/smarthome/pull/6744). I am wondering why it is not found in your setup.

May I ask you to put the JSON into code fences? Thanks.

Hi Christoph

UPDATE:
I did update my OH2 and have your changes for the TapSwitches now. Works like a charm :wink:

Thx for your reply. Currently I am using the latest stable version 2.4.0-1 of OH2.

As i understand the ZGPSwitch type implementation is for the following Switch Model Hue Tap, but i have these switches from Feller Funktaster. I dont know if that is an issue for the discovery even if both switches are of the same type. What i see from your pr (hue tap binding) the Feller switches have slightly different button events unfortunately i can not check that because i dont have the Philips Hue Tap switch.

I am glad you got it working. And the different events? Do they work properly too?

All button events are triggered (16-19 / 20-23) but the events are is not very reliable. When i check the openhab log sometimes just every third or more press on the button is recognized. I’m not shure if it is a problem with my infrastructure but the events all are processed fine on the hue bridge. Any ideas?

Yes, it is a known problem: Missing button event triggers from Philips/Signify Hue Dimmer Switch.

I am running openHAB 2.4 (stable) and also facing issues while adding a FoH switch (Senic Smart Switch). It doesn’t appears in the inbox of Paper UI. After adding it manually everything works like expected. This is what my hue Bridge propagates about the switch:

"39": {
    "state": {
        "buttonevent": 20,
        "lastupdated": "2019-10-29T20:29:35"
    },
    "swupdate": {
        "state": "notupdatable",
        "lastinstall": null
    },
    "config": {
        "on": true
    },
    "name": "Friends of Hue Switch 1",
    "type": "ZGPSwitch",
    "modelid": "FOHSWITCH",
    "manufacturername": "PhilipsFoH",
    "productname": "Friends of Hue Switch",
    "diversityid": "...",
    "uniqueid": "...",
    "capabilities": {
        "certified": true,
        "primary": true,
        "inputs": [
            {
                "repeatintervals": [],
                "events": [
                    {
                        "buttonevent": 16,
                        "eventtype": "initial_press"
                    },
                    {
                        "buttonevent": 20,
                        "eventtype": "short_release"
                    }
                ]
            },
            {
                "repeatintervals": [],
                "events": [
                    {
                        "buttonevent": 17,
                        "eventtype": "initial_press"
                    },
                    {
                        "buttonevent": 21,
                        "eventtype": "short_release"
                    }
                ]
            },
            {
                "repeatintervals": [],
                "events": [
                    {
                        "buttonevent": 19,
                        "eventtype": "initial_press"
                    },
                    {
                        "buttonevent": 23,
                        "eventtype": "short_release"
                    }
                ]
            },
            {
                "repeatintervals": [],
                "events": [
                    {
                        "buttonevent": 18,
                        "eventtype": "initial_press"
                    },
                    {
                        "buttonevent": 22,
                        "eventtype": "short_release"
                    }
                ]
            }
        ]
    }
},

Nothing special I guess. Or is something wrong with my configuration?

Hi,
I have the same switch (GIRA). How did you add it manually?
Thanks in advance.
Sven

Sry for late reply. I just realized that support for "ZGPSwitch" has been added after OH 2.4 release (see https://github.com/eclipse/smarthome/pull/6744). We released OH 2.5 yesterday, thus I would suggest to update your system and try it again.

btw.: This problem has been solved too in the latest release.

1 Like