@lahoco/node-red-contrib-lahoco-core 1.0.2

Node-RED Lahoco nodes bundle

npm install @lahoco/node-red-contrib-lahoco-core

Lahoco Core is made to control the devices of a Lahoco installation. It allows you to create customized automation systems, interconnect with other systems and manage devices as desired.

Nodes

This are all the nodes provided by this module to control :


Prerequisites

In order to use a node, the Lahoco server must be up and running.

You must know the ip address and the port (generally it is 8887 for the websocket and 80 for the API) of the Lahoco server used.

Setup

  1. Add the Lahoco Server node.

  2. Open the configuration page of it and select / modify / add a server configuration.

  3. Specify the ip address and the ports used for the Lahoco server.

  4. Specify a user login and password (The users can be set in the Lahoco administrator page in tab "Users")

  5. Add other Lahoco nodes to the flow to interact with the server.

WARNING

It is really recommended to put the server node in the first flow and put the other Lahoco Nodes in other flows !

Usage

Several possibilities are available to you. You can give commands to the node (input) via a json object, view the status (status under the node) and get the status (output).

For the input, you need to give a JSON object with all the commands included. This JSON object must be set in the payload.msg. The commands are read and executed one after the other from top to bottom.

Here is an example for the Light node : First we set the brightness to 25%, and after we toggle the state to off (we set the brightness just before)

payload.msg = {
  "brightness": 25,
  "toggle": ""
}

Properties

In the next sections, you will see all the properties of each node

This are all the properties that each node supports. In some nodes like "Lights" or "Blinds" some properties are working only if the node is in the good category. If you give an option that is not in his capabilities it will be ignored.

Not all the properties can be readable (output) and writeable (input), therefore in the description of each property you can see in and/or out.

All the properties that are supported for the selected device in the node and that have the out property, are return to the output of the node as a JSON object like in the input.


1 Lights

1.1 Simple light

Simple light (on | off)

Properties Value Type Description
status any in Forces the request of the current status of the device (It also updates all other devices)
on boolean in / out true switches the light on, false switches it off
toggle any in Toggles between switching on and off, depending on the previous status of the light

1.2 Dimmer light

Light with variable intensity (0-100%)

Properties Value Type Description
status any in Forces the request of the current status of the device (It also updates all other devices)
on boolean in / out true switches the light on, false switches it off
toggle any in Toggles between switching on and off, depending on the previous status of the light
brightness integer in / out Sets the brightness of the light, from 0 to 100
incrementBrightness int in Percentage value of the light brightness (0-100) to increase of current state
decrementBrightness int in Percentage value of the light brightness (0-100) to decrease of current state

1.3 RGB light

Light with variable color [r, g, b]

Properties Value Type Description
status any in Forces the request of the current status of the device (It also updates all other devices)
on boolean in / out true switches the light on, false switches it off
toggle any in Toggles between switching on and off, depending on the previous status of the light
brightness integer in / out Sets the brightness of the light, from 0 to 100
rgb [r,g,b] in / out RGB value of the light separate in a tab of 3 values (0-255) [r, g, b]
incrementBrightness int in Percentage value of the light brightness (0-100) to increase of current state
decrementBrightness int in Percentage value of the light brightness (0-100) to decrease of current state

1.4 RGBW light

Light with variable color [r, g, b] and white

Properties Value Type Description
status any in Forces the request of the current status of the device (It also updates all other devices)
on boolean in / out true switches the light on, false switches it off
toggle any in Toggles between switching on and off, depending on the previous status of the light
brightness integer in / out Sets the brightness of the light, from 0 to 100
rgb [r,g,b] in / out RGB value of the light separate in a tab of 3 values (0-255) [r, g, b]
white any in If white property is given it will switch to white mode.
isWhite boolean out Return true if in white mode and false if rgb mode.
incrementBrightness int in Percentage value of the light brightness (0-100) to increase of current state
decrementBrightness int in Percentage value of the light brightness (0-100) to decrease of current state

1.5 Dimmer white light

Dimmer light with white temperature

Properties Value Type Description
status any in Forces the request of the current status of the device (It also updates all other devices)
on boolean in / out true switches the light on, false switches it off
toggle any in Toggles between switching on and off, depending on the previous status of the light
brightness integer in / out Sets the brightness of the light, from 0 to 100
whiteTemp integer in / out Percentage value of the warmth of light (0-100) (0 = cold / 100 = warm)
incrementBrightness int in Percentage value of the light brightness (0-100) to increase of current state
decrementBrightness int in Percentage value of the light brightness (0-100) to decrease of current state

1.6 RGBW white temp

Light with variable color [r, g, b] and white temperature

Properties Value Type Description
status any in Forces the request of the current status of the device (It also updates all other devices)
on boolean in / out true switches the light on, false switches it off
toggle any in Toggles between switching on and off, depending on the previous status of the light
brightness integer in / out Sets the brightness of the light, from 0 to 100
rgb [r,g,b] in / out RGB value of the light separate in a tab of 3 values (0-255) [r, g, b]
whiteTemp integer in / out Percentage value of the warmth of light (0-100) (0 = cold / 100 = warm)
isWhite boolean out Return true if in white mode and false if rgb mode.
incrementBrightness int in Percentage value of the light brightness (0-100) to increase of current state
decrementBrightness int in Percentage value of the light brightness (0-100) to decrease of current state

2 Blinds

2.1 VB Blinds

Vertical blind (Slat blind with orientation)

Properties Value Type Description
status any in Forces the request of the current status of the device (It also updates all other devices)
top any in Raise/open the blind to the top/all the way
upClick any in Raise/open the blind until upRelease is triggered
upRelease any in Ends the opening event and stops the blind at the current location. (Works only with blind linked to Lahoco with KNX technologies)
stop any in Ends the opening event and stops the blind at the current location.
downClick any in Lower/close the blind until downRelease is triggered.
downRelease any in Ends the closing event and stops the blind at the current location. (Works only with blind linked to Lahoco with KNX technologies)
bottom any in Lower/close the blind all the way down
stopped boolean out True when the blind is stopped. (Only on KNX and new ENOCEAN actuators)
opening boolean out True when the blind is opening. (Only on KNX and new ENOCEAN actuators)
closing boolean out True when the blind is closing. (Only on KNX and new ENOCEAN actuators)
position int in / out Percentage value of the position (0-100) (0 = open / 100 = close)
orientation int in / out Percentage value of the orientation (0-100) (0 = the slats are horizontal / 100 = the slats are vertical)

2.2 RS Blinds

Rolling shutter blind

Properties Value Type Description
status any in Forces the request of the current status of the device (It also updates all other devices)
top any in Raise/open the blind to the top/all the way
upClick any in Raise/open the blind until upRelease is triggered
upRelease any in Ends the opening event and stops the blind at the current location. (Works only with blind linked to Lahoco with KNX technologies)
stop any in Ends the opening event and stops the blind at the current location.
downClick any in Lower/close the blind until downRelease is triggered.
downRelease any in Ends the closing event and stops the blind at the current location. (Works only with blind linked to Lahoco with KNX technologies)
bottom any in Lower/close the blind all the way down
stopped boolean out True when the blind is stopped. (Only on KNX and new ENOCEAN actuators)
opening boolean out True when the blind is opening. (Only on KNX and new ENOCEAN actuators)
closing boolean out True when the blind is closing. (Only on KNX and new ENOCEAN actuators)
position int in / out Percentage value of the position (0-100) (0 = open / 100 = close)

3 Heaters

Properties Value Type Description
status any in Forces the request of the current status of the device (It also updates all other devices)
isHeating boolean out Current state of the heater (true = is heating / false = is not heating)
temperature float in / out Wanted temperature (8-25 °C) (Temperature to set to the heater)
currentTemperature float out Current temperature in the room (value of the temperature sensor)

4 Watering

Properties Value Type Description
status any in Forces the request of the current status of the device (It also updates all other devices)
on boolean in / out true switches the watering on (Duration of 255 minutes), false switches it off
duration int in / out Set the watering to ON for the given number of minutes (switch off after the end of the duration)

5 Scenes

Properties Value Type Description
activate any in Activate the scene
activated boolean out On scene activated
updated boolean out On scene updated

6 Sensors

Here are all the properties of the sensors.

Window handle

Properties Value Type Description
isOpen boolean out True if the window is open, false if closed
tilted boolean out True if the window is open in tilted mode, false if open normally or closed

Window contact

Properties Value Type Description
isOpen boolean out True if the window is open, false if closed

Wind direction

Wind speed

Properties Value Type Description
windSpeed number out Speed of wind
windSpeed_unit String out Unit of wind speed

Rain

Properties Value Type Description
isRaining boolean out True if it is raining, false if not. (If a drop of water fall on the sensor)

Night / Day

Properties Value Type Description
isDay boolean out True if it is day, false if night.

Temperature

Properties Value Type Description
temperature number out Temperature
temperature_unit String out Unit of temperature

Presence

Properties Value Type Description
presence boolean out True if the sensor is detecting a movement, false if not.

Humidity

Properties Value Type Description
humidity number out Humidity
humidity_unit String out Unit of humidity

Brightness

Properties Value Type Description
brightness number out Brightness
brightness_unit String out Unit of brightness

7 Switches

Properties Value Type Description
status any in Forces the request of the current status of the device (It also updates all other devices)
on boolean in / out true switches the light on, false switches it off
toggle any in Toggles between switching on and off, depending on the previous status of the light

Node Info

Version: 1.0.2
Updated 1 year, 8 months ago
License: GNU GPLv3
Rating: not yet rated

Actions

Rate:

Downloads

1 in the last week

Nodes

  • lahoco-server
  • lahoco-config
  • lahoco-light
  • lahoco-switch
  • lahoco-blind
  • lahoco-heating
  • lahoco-watering
  • lahoco-scene
  • lahoco-sensor

Keywords

  • lahoco
  • node-red
  • node-red-contrib
  • contrib
  • home-automation
  • iot
  • smart-home
  • api

Maintainers

Contributors

  • Timothy Cuenat
  • Baptiste Grand