Enocean switch

I really wanted to try your solution, but i failed at the beginning. I can’t install the node-red-contrib-enocean.
I also using Hassio and i also can install other nodes.
The Protocol says

2021-10-19T10:26:47.645Z Installieren : node-red-contrib-enocean 0.8.5
2021-10-19T10:26:48.827Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2021-10-19T10:26:59.965Z [err] npm
2021-10-19T10:26:59.965Z [err]  
2021-10-19T10:26:59.965Z [err] ERR!
2021-10-19T10:26:59.965Z [err]  
2021-10-19T10:26:59.965Z [err] code
2021-10-19T10:26:59.965Z [err]  1
2021-10-19T10:26:59.965Z [err] npm
2021-10-19T10:26:59.965Z [err]  
2021-10-19T10:26:59.965Z [err] ERR!
2021-10-19T10:26:59.966Z [err]  
2021-10-19T10:26:59.966Z [err] path
2021-10-19T10:26:59.966Z [err]  /config/node-red/node_modules/@serialport/bindings
2021-10-19T10:26:59.967Z [err] npm
2021-10-19T10:26:59.968Z [err]  
2021-10-19T10:26:59.968Z [err] ERR!
2021-10-19T10:26:59.968Z [err]  command failed
2021-10-19T10:26:59.968Z [err] npm
2021-10-19T10:26:59.968Z [err]  
2021-10-19T10:26:59.968Z [err] ERR!
2021-10-19T10:26:59.968Z [err]  
2021-10-19T10:26:59.968Z [err] command
2021-10-19T10:26:59.968Z [err]  sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2021-10-19T10:26:59.968Z [err] npm
2021-10-19T10:26:59.968Z [err]  
2021-10-19T10:26:59.969Z [err] ERR!
2021-10-19T10:26:59.969Z [err]  gyp info it worked if it ends with ok
2021-10-19T10:26:59.969Z [err] npm
2021-10-19T10:26:59.969Z [err]  
2021-10-19T10:26:59.969Z [err] ERR!
2021-10-19T10:26:59.969Z [err]  gyp info using [email protected]
2021-10-19T10:26:59.969Z [err] npm
2021-10-19T10:26:59.969Z [err]  
2021-10-19T10:26:59.969Z [err] ERR!
2021-10-19T10:26:59.969Z [err]  gyp info using [email protected] | linux | x64
2021-10-19T10:26:59.969Z [err] npm
2021-10-19T10:26:59.969Z [err]  
2021-10-19T10:26:59.970Z [err] ERR!
2021-10-19T10:26:59.970Z [err]  gyp info find Python using Python version 3.9.5 found at "/usr/bin/python3"
2021-10-19T10:26:59.970Z [err] npm
2021-10-19T10:26:59.970Z [err]  
2021-10-19T10:26:59.970Z [err] ERR!
2021-10-19T10:26:59.970Z [err]  gyp info spawn /usr/bin/python3
2021-10-19T10:26:59.970Z [err] npm
2021-10-19T10:26:59.970Z [err]  
2021-10-19T10:26:59.970Z [err] ERR!
2021-10-19T10:26:59.970Z [err]  gyp info spawn args [
2021-10-19T10:26:59.970Z [err] npm
2021-10-19T10:26:59.970Z [err]  
2021-10-19T10:26:59.970Z [err] ERR!
2021-10-19T10:26:59.971Z [err]  gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
2021-10-19T10:26:59.971Z [err] npm
2021-10-19T10:26:59.971Z [err]  
2021-10-19T10:26:59.971Z [err] ERR!
2021-10-19T10:26:59.971Z [err]  gyp info spawn args   'binding.gyp',
2021-10-19T10:26:59.971Z [err] npm
2021-10-19T10:26:59.971Z [err]  
2021-10-19T10:26:59.971Z [err] ERR!
2021-10-19T10:26:59.971Z [err]  gyp info spawn args   '-f',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   'make',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '-I',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '/config/node-red/node_modules/@serialport/bindings/build/config.gypi',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '-I',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '-I',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '/root/.cache/node-gyp/14.17.6/include/node/common.gypi',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '-Dvisibility=default',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/14.17.6',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/14.17.6/<(target_arch)/node.lib',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '-Dmodule_root_dir=/config/node-red/node_modules/@serialport/bindings',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '-Dnode_engine=v8',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '--depth=.',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '--no-parallel',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '--generator-output',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   'build',
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args   '-Goutput_dir=.'
2021-10-19T10:26:59.974Z [err] npm ERR! gyp info spawn args ]
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! build error 
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! stack Error: not found: make
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! stack     at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:10:17)
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:57:18
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! stack     at new Promise (<anonymous>)
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! stack     at step (/usr/lib/node_modules/npm/node_modules/which/which.js:54:21)
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:71:22
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! stack     at new Promise (<anonymous>)
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! stack     at subStep (/usr/lib/node_modules/npm/node_modules/which/which.js:69:33)
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:80:22
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! System Linux 5.10.70
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! cwd /config/node-red/node_modules/@serialport/bindings
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! node -v v14.17.6
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! node-gyp -v v7.1.2
2021-10-19T10:26:59.974Z [err] npm ERR! gyp ERR! not ok
2021-10-19T10:26:59.982Z [err] 
2021-10-19T10:26:59.982Z [err] npm
2021-10-19T10:26:59.982Z [err]  
2021-10-19T10:26:59.982Z [err] ERR!
2021-10-19T10:26:59.983Z [err]  A complete log of this run can be found in:
2021-10-19T10:26:59.983Z [err] npm
2021-10-19T10:26:59.983Z [err]  
2021-10-19T10:26:59.983Z [err] ERR!
2021-10-19T10:26:59.983Z [err]      /root/.npm/_logs/2021-10-19T10_26_59_975Z-debug.log
2021-10-19T10:26:59.989Z rc=1

Hi,

i have the same issue like CSB

Michael

Hello Micha,

i have the solution for installing that node.

You have to add system packages in the node-red installation (at supervisor)
I added the following packages and after that i could use the enocean-nodes:
linux-headers, gcc, g++, make, build-base

Greetings CSB

Hi CBS,

thanks for the info.
I’m still stuck.

Could you give me a detailed description of how to?

Greatings
Micha

Hi CBS, hi Micha82,

I am very sorry for not answering earlier !
To avoid having any error with node-red and enocean, I recommand using the configuration file I put here:
Enocean switch - #32 by RCasa

In the “system_packages” section, you have the details of minimum necessary packages to support enocean in Node-red. I do not remember all the error messages I faced, but I know most of it was solved thanks to a proper configuration file.

Please let me know if it solves your issue.

Best Regards,
Romain C.

Hi RCasa,

thanks it works now
(not checked on the function but the nodes are there)

For all the others who try also.
Even if the CPU usage of the addon goes up, it dose not man it is completely loaded !!
In my case (Raspi) it needs at least 2 min until everything is up (more than once the CPU usage does up)

@RCasa is Node Red loading the additional down plugins each time during starup or are they downloaded and just starting uP

Best regards
Michael

Hi Micha82,

As far as I remember when I was testing this solution, it dowloaded the packages only the first time I added it in the configuration file. So normally, next startup of the plugin should be quicker.

I am still using this solution for my Enocean roller shutter (Ubiwizz), and the startup is quiet fast.

Regards,
Romain C.

Hi,

I tried now also the Setup like discribed in the Video.
I get some Messages but the teach in does not work.

Also i have the issue, that the standard HASS automation for EnOcean stops working after creating a First Flow in Node Red.

I‘m not sure what is happening.

So first of all i would like to know of there is any way to see everyrhing (inbound and outbound) messages of the EnOcean device Even of they are not configured in any HASS config.

Then ist would be possible to rule out some possible issues.

So is there any way to get something like an entety were i can See all the messages ?

If this is possible it would be easier to do a Troubleshooting.
Best would be directly in HASS to ruleout also addon issues.

If this works ist would be nice to have something like a translator addon to this List
I would imagine something like select a EEP ang get the Message structured by the Profile.

Then also a Message Generator be EEP would be possible maybe also a usage of a helper for gering a overview about used ID (base+unique) to have a easy teach in

Just some Idea

But First i would like to be no longer blind in the messages the device gets and sends.

Greatings
Michael

I was about to order a USB 300 dongle today and integrate into hassio to be able to add Lovelace buttons to control some of my EnOcean equipment.
But reading this thread I understand it as if the Enocean HA plugin itself does not support sending data as emulated button/wall switch without extra scripts and plugins? Is this correct?

Currently I am only able to view the status of an enocean switch. Now I am using node red with my former smart home controler to integrate the enocean switches to home assistant.
In the next days I will try to integrate some Eltako FT55 and cover relays but I guess it will be the same issue.

Hi all,

To reply to Micha82: I read somewhere that the USB stick cannot be used by two sources in the same time (Hassio AND NodeRed). That is why once you use the stick from NodeRed, it does not work in Hassio integration. To read the messages, the best solution I found was to use an “msg.payload” node, directly connected to an “input” enocean node (for any incoming message).

To reply to ValleOne: it depends on what you would like to do. The integration seems to work well with some sensors, lights and switches. But for roller shutter, there is no direct solution. The only I found in March 2021 was using NodeRed.

To reply to andictix: I guess you can use NodeRed with Enocean module to control your cover relays in Home Assistant.

Best Regards,
Romain C.

Hi,

Thanks for the reply

For me the light works with NodeRed

On / Off via HA incl. Backchannel if i used a FT55
Also the dimmer works but Till now only on / off
Also use the FT55 for Hue lights
Also all Actions via Alexa

Dimming and adding the Temp. Sensor will be the next

Thanks
Michael

Hello @cgrueter and @RCasa,

I am a beginner with Home Assistant and I started to integrate some EnOcean equipment. I succeeded to integrate F6-02-02, D5-00-01 and D2-01-12.

I know would like to integrate (i) D2-05-00 (for my rolling shutters) and then (ii) D2-01-08 and D2-01-0C (for my heaters).

I understand you succeeded for D2-05-00 thanks to a tailor made code. Could you please tell me which code I have to use ? Do I need to change any settings in it (ID, etc.) ? Do I need to install MQTT broker (to be honest so far, I do not understand its function) ?

Thanks in advance for your help,

Hi TuringFan,

I personnaly use NodeRed in Hassio to command my D2-05-00 EnOcean roller shutters.
Here is the link to my post where I explain the different steps > LINK.

I did not use MQTT, nor cgrueter code, as I was not able to make it work.
For the method I use (NodeRed), there are normally all necessary informations you need to make it work in my post.

Best Regards,
Romain C.

Hi TuringFan, I’m interested integrating D5-00-01 devices in HA as well. I succeded already with the Eltako FFT65B (A5-04-02), but with the documentation of HA on enocean, I cannot find a suitable config for the D5-00-01. How did you achieve it?
Thanks in advance.

Hi,
just one question.
Yesterday I tried to use Enocean via NodeRed. My problem is, my USB300 Enocean stick is not working inside NodeRed.
Inside of HA there was no issue. Is this because I´m using NodeRed as an HA Addon?
Thank you.
Joe

Hi JAD !

I remember I have read somewhere that the stick cannot be used from two plateforms simultaneously. Either you use it through NodeRed, or from HA, but it cannot be both. So if you did not suppress the integration in HA, then it explains why you cannot see it in NodeRed. I was using NodeRed as an Addon, so it should not be a problem.

Unfortunately, I have decided to stop using Enocean through NodeRed, it was not reliable at all… I have changed the 2 roller shutter modules by Z-wave ones.

Best Regards,
Romain C.

the serial port must be declared within a docker compose if one want to make use of it from within a container. Noticed that when playing on a pi where I did install HA, node-red, grafana and others each on it it’s own container.

My advice … check for the recently introduced addon which frontends the enocean2mqtt solution. Better but the existing HA integration and lots better but the node-red one.

No need for buying new zwave or zigbee devices :slight_smile:

Hi there,

I would like to ask you, how you have configured your FT55 in HA. I am using fhem with enocean and I am using the MqttGeneric Brigdge in fhem to transfer the actions to HA. I used two binary sensors for a FT55 with a sigle rocker rocker switch.

The configuration in HA looks like this:


  # Kanal 1 obere Wippe
  - unique_id: EG_fl_ws-01
    name: Test (ein)
    object_id: en.button.on_test
    icon: mdi:card
    state_topic: "fhem/EG.fl.WS.Test/state"
    payload_on: "AI"
    payload_off: "released"
    availability_topic: "fhem/connection/status"
    payload_available: "connected"
    payload_not_available: "disconnected"

  # Kanal 2 untere Wippe
  - unique_id: EG_fl_ws-02
    name: Test (aus)
    object_id: en.button.off_test
    icon: mdi:card
    state_topic: "fhem/EG.fl.WS.Test/state"
    payload_on: "A0"
    payload_off: "released"
    availability_topic: "fhem/connection/status"
    payload_available: "connected"
    payload_not_available: "disconnected"

This means. I have two switches, one for the top rocker, one for the bottum rocker with on/off (pressed/release).

I think this is not the correct way to implement in HA. Better solution can be, to have one Sensor where I have the correct channel AI and A0 in HA. But how can this be cofigured? And does anyone have an idea to evaluate a “long press”?

Thanks,
Spartacus

Hi all,
I’m struggling since weeks to get it working.‘I have enocean-mqtt with Mosquitto Broker. All is working. I have an Omnio UPJ230/12 for my blinds. Wall rockers to move up, down and stop. I used Dolphin to teach-in a virtual rocker with profile F6-02-01. Using RPS signal to command up (30) and move down (50) . To stop the blinds in Dolphin , I use 2 commands. First step 30 or 50 with step 2, sending the 00. Which should be the release of the rocker. All this works with Dolphin. In HA, AO is moving up and AI moving down. I tried to implement a stop but this is not working . Does somebody knows how to do this?
Any help is welcome, thanks