Skip to main content
Skip table of contents

Controlling a device with a push button and a digital potential-free sensor module

Use case

Your customer has a staircase with several floors and corresponding lighting with push buttons and teleruptors. 

For some reason, you, as an installer, are unable to install push-button interfaces to easily implement a Niko Home Control solution.

To provide your customer with a solution, you can keep the push buttons in the staircase and use a digital potential-free sensor module in the cabinet.

Procedure

Creating the controls and devices
  1. Create a digital sensor (SENS1).
  2. Create a virtual device (VIRT1).
  3. Create the lighting (LAMP1).

Creating the routine

Create a custom routine (ROUT1) to activate VIRT1 with the digital sensor (SENS1). VIRT1 is deactivated after 0.1 s. Use the following behaviour:

  • Control that initiates the routine: digital sensor (SENS1).
  • Devices that are part of the routine: VIRT1
    • Start behaviour: VIRT1: Value = true, Delay = 0 s
    • Stop behaviour: VIRT1: Value = false, Delay = 0.1 s

Creating the conditions
  1. Create a condition (COND1) that activates LAMP1 when the push button is pressed. Use the following logic:
    • IF (LAMP1: Value = off) and (SENS1: Value = true) and (VIRT1: Value = false)
    • THEN (LAMP1: Value = on, Delay = 0 s)
    • ELSE leave empty
  2. Create a condition (COND2) that deactivates LAMP1 when the push button is pressed again. Use the following logic:
    • IF (LAMP1: Value = on) and (SENS1: Value = true) and (VIRT1: Value = false)
    • THEN (LAMP1: Value = off, Delay = 0 s)
    • ELSE leave empty

Filling the cabinet and addressing the device
Fill the cabinet with ...and address the following device ...
a digital sensor module 2U (MOD1)

digital sensor SENS1.

a switching module (3X) 2U (MOD2)lighting LAMP1.



Example

Click here to download the programming example (nhc2 file).

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.