Custom Component: Nikobus

Fixed with the new release.

This works for me, I would indeed double check your button address.

alias: test
description: ""
trigger:
  - platform: event
    event_type: nikobus_button_pressed_3
    event_data:
      address: A59B02
condition: []
action:
  - service: switch.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: switch.exterieur_parking
mode: single

It’s working now. :partying_face:
I added ‘mode: single’ and it’s working.
Then I removed it back again, and it’s still working :thinking:

Is it correct that the action is executed when I release the button after 3 seconds? Maybe there was a confusion , because the things that are executed by nikobus after 3 sec, are done while pressing the button 3 sec. Here after releasing it. But that is no problem. I’m happy now.

@MarcVZ Could you give me an example ?

So If I get you right, nikobus starts to process the action as soon as the button is pressed for 3secs. The integration only after releasing the button. So basically in Nikobus you can keep pushing the button for multiple seconds, as soon as the press time is greater than 3secs, the action will start.

I can change the logic to add extra events:

3 like today, triggered after button release
nikobus_button_pressed_1
nikobus_button_pressed_2
nikobus_button_pressed_3

3 new ones triggered as soon as the 1, 2 or 3 seconds have passed regardless if the button is released or not.
nikobus_button_timer_1
nikobus_button_timer_2
nikobus_button_timer_3

Is that what you mean ?

@MarcVZ New release

The following events are fired as soon as the respective timer is reached

  • nikobus_button_timer_1
  • nikobus_button_timer_2
  • nikobus_button_timer_3

Bug Fix

Stop cover was no longer possible since the introduction of feedback led support: Fixed

Just installed another bridge that fits better in the electrical cabinet

Rail-Mount Serial Server, RS232/485/422 to RJ45 Ethernet Module, TCP/IP to serial, POE Function Optional | RS232/485/422 TO POE ETH (B) (waveshare.com)

It allows Nikobus to TCP/IP. Still you need a PC-Link or Feedback Module to connect the bridge. It’s small factor, fit the electrical cabinet, power over ethernet.

Found a project rbierman/nikobus: Nikobus to RS232 bridge (github.com)

About a Nikobus to RS232 bridge, so no need for PC-Link or Feedback Module etc…

Untested