Need help with setting up some EnOcean devices

You are right Fedot ! hopefully there are lot of solutions ; I continue to search one which can be efficient for me :slight_smile:

  1. I have tried different channels from 0 to 3, but nothing appears in HA. Same error of connections :frowning:
    You are right about the fact that I have installed HA on a docker of my Raspbian Destkop (I don’t know where the HA-OS is in my Rpi), whereas I have installed FHEM in a “usual” way in /opt/fhem
    I imagine it could be compatible because FHEM is accessible with http://xxx.xxx:8083 and HA accessible with https://sss.duckdns.org:8123 which replace http://xxx.xxx:8123
  2. it is not an Enocean USB key > I use an Enocean Pi plugged on the GPIO > I have not understood from the github that we can use dolphin on a PC while Encean pi is plugged on the GPIO, have I ?
  3. antother good idea Fedot to launch directly with http !! I have tries different http , but the roller shutters don’t move > but I am going to check on the FHEM forum if it is not possible to make in that way > indeed it would be much much better !!

So I have the intuition (even if I am still beginner) that something can be done to integrate these EnOcean devices into HA (without buying other devices), but I haven’t find the way yet. Maybe MQTT (but does MQTT work with a docker and non-docker installations ?), but it is very very hard to configure in FHEM :-((
And even with these explanations https://github.com/matgoebl/FhAPI I am not able to play this scenario :frowning:
I am still motivated to find the solution

I hope you’ll be able to resolve your issues :slight_smile: I think the Dolphin Software is probably only for USB Keys, but I haven’t taken a look at it. You might want to remove the Enocean stuff completely from HA since it interferes with FHEM as it seems.
The explanations are for the FhAPI addon, which as I said, you probably don’t really need for just flicking a few switches. There are probably official REST endpoints for FHEM, you don’t need to make it more complicated than it needs to be (manual MQTT setup for a few switches and states)

Did you eventually manage to get it done ?

Hello @jaypi
I have succeeded to define my eltako roller shutter dimmer controlled by FHEM, then MQTT to HA :blush::sweat_smile: not easy for the first time, but it works

Hm ok can you run FHEM and HA on the Same PI?

Yes in the same pi with enoceanpi to catch and send enocean messages.
I use a Pi4

Sounds good. But you didn’t use the standard HA PI image but installed HA and FHEM in dockers?

Not exactly : fhem is installed directly on the pi. And indeed HA is installed in a supervised mode.
Which enables me to install other softwares.

Could elaborate on you you installed Hass this way?

Hello, @Jens-HA
Sorry I don’t understand your question. :thinking:
Do you want to have more details about the way to install HA supervised, FHEM and mqtt ?

I have several Nod On SIN-2-1-01 switches and I am trying to include them to my home assistant instance. I see the entity of the switch and I also can see that the state is changing when I press the button. Unfortunately I am not able to chage the state of switch from home assistant.
Regarding the documentation I was thinking the integration of the Nodon switch is working more or less out of the box.

this is my configuration.yaml
switch:

  • platform: enocean
    id: [0x05,0x19,0x60,0xFD]
    name: LichtWohnzimmer

image

I also took a look to the developer tools but I don’t have the “button_pressed” event. This is the output:

{
    "event_type": "state_changed",
    "data": {
        "entity_id": "switch.lichtwohnzimmer",
        "old_state": {
            "entity_id": "switch.lichtwohnzimmer",
            "state": "on",
            "attributes": {
                "friendly_name": "LichtWohnzimmer"
            },
            "last_changed": "2021-12-09T21:04:08.195267+00:00",
            "last_updated": "2021-12-09T21:04:08.195267+00:00",
            "context": {
                "id": "20f82084769f3f085d7a5388c3de6f20",
                "parent_id": null,
                "user_id": null
            }
        },
        "new_state": {
            "entity_id": "switch.lichtwohnzimmer",
            "state": "off",
            "attributes": {
                "friendly_name": "LichtWohnzimmer"
            },
            "last_changed": "2021-12-09T21:04:09.839052+00:00",
            "last_updated": "2021-12-09T21:04:09.839052+00:00",
            "context": {
                "id": "6073265a0334b27b6f13526985a569a4",
                "parent_id": null,
                "user_id": null
            }
        }
    },
    "origin": "LOCAL",
    "time_fired": "2021-12-09T21:04:09.839052+00:00",
    "context": {
        "id": "6073265a0334b27b6f13526985a569a4",
        "parent_id": null,
        "user_id": null
    }
}
Event 0 fired 10:04 PM:
{
    "event_type": "state_changed",
    "data": {
        "entity_id": "switch.lichtwohnzimmer",
        "old_state": {
            "entity_id": "switch.lichtwohnzimmer",
            "state": "off",
            "attributes": {
                "friendly_name": "LichtWohnzimmer"
            },
            "last_changed": "2021-12-09T21:03:31.919907+00:00",
            "last_updated": "2021-12-09T21:03:31.919907+00:00",
            "context": {
                "id": "a06eac92639c7ec98b1ba2db132e2462",
                "parent_id": null,
                "user_id": null
            }
        },
        "new_state": {
            "entity_id": "switch.lichtwohnzimmer",
            "state": "on",
            "attributes": {
                "friendly_name": "LichtWohnzimmer"
            },
            "last_changed": "2021-12-09T21:04:08.195267+00:00",
            "last_updated": "2021-12-09T21:04:08.195267+00:00",
            "context": {
                "id": "20f82084769f3f085d7a5388c3de6f20",
                "parent_id": null,
                "user_id": null
            }
        }
    },
    "origin": "LOCAL",
    "time_fired": "2021-12-09T21:04:08.195267+00:00",
    "context": {
        "id": "20f82084769f3f085d7a5388c3de6f20",
        "parent_id": null,
        "user_id": null
    }
}

Has anybody experience with a Nodon switch and can help me to get it work?

@andictix Hey there,

I know I’m throwing a lifeline at an old post but did you figure out how to solve it? I have the very same problem you describe with seeing the correct state but not being able to change it.

Best Anton

There is a new star on the EnOcean Horizon that might (in future) solve such troubles as the integration of HA for EO is ermmm basic and abandoned.

Support him, praise him, send him flowers!

2 Likes