Skip to content

PlugwiseHA Binding ​

The Plugwise Home Automation binding adds support to openHAB for the Plugwise Home Automation ecosystem. This system is built around a gateway from Plugwise called the “Adam,” which incorporates a Zigbee controller to manage thermostatic radiator valves, room thermostats, floor-heating pumps, etc.

Users can manage and control this system via a web app or a mobile app developed by Plugwise. The app allows users to define heating zones (for example, rooms) and add radiator valves to those zones to manage and control their heating independently of other zones.

Using the Plugwise Home Automation binding, you can integrate the management of these devices and heating zones into openHAB. The binding uses the same RESTful API that both the mobile app and the web app use.

The binding requires a working Plugwise Home Automation setup consisting of at least one gateway device (the “Adam”) and preferably at least one radiator valve. The “Adam” (hereafter called the gateway) must be accessible from the openHAB instance via a TCP/IP connection.

Supported Things ​

Device TypeDescriptionThing Type
-A Plugwise heating zone configured with at least 1 of the devices belowzone
AdamThe Plugwise Home Automation Bridge is needed to connect to the Adam boiler gatewaygateway
TomA Plugwise Home Automation radiator valveappliance_valve
FloorA Plugwise Home Automation radiator valve specifically used for floor heatingappliance_valve
CircleA power outlet plug that provides energy measurement and switching control of appliances (e.g. floor heating pump)appliance_pump
LisaA room thermostat (also supports the 'Anna' room thermostat)appliance_thermostat
[Boiler]A central boiler used for heating and/or domestic hot waterappliance_boiler

Discovery ​

After setting up the Plugwise Home Automation bridge, you can start a manual scan to find all devices registered on the gateway. You can also manually add things by entering the corresponding device ID as a configuration parameter. The device IDs can be found by enabling TRACE logging in the Karaf console.

Thing Configuration ​

You must define a Plugwise Home Automation gateway (Bridge) before defining zones or appliances (Things) for this binding to work.

Plugwise Home Automation gateway (Bridge) ​

ParameterDescriptionConfigDefault
hostThe IP address or hostname of the Adam HA gatewayRequired'adam'
usernameThe username for the Adam HA gatewayOptional'smile'
smileIDThe 8-letter code on the sticker on the back of the Adam boiler gatewayRequired-
refreshThe refresh interval, in secondsOptional15

Plugwise Home Automation zone (zone) ​

ParameterDescriptionConfigDefault
idThe unique ID of the zoneRequired-

Plugwise Home Automation appliance (appliance_valve) ​

ParameterDescriptionConfigDefault
idThe unique ID of the radiator valve applianceRequired-
lowBatteryPercentageBattery charge remaining at which to trigger a low-battery warning. (Only applicable to battery-operated devices)Optional15

Plugwise Home Automation appliance (appliance_thermostat) ​

ParameterDescriptionConfigDefault
idThe unique ID of the room thermostat applianceRequired-
lowBatteryPercentageBattery charge remaining at which to trigger a low-battery warning. (Only applicable to battery-operated devices)Optional15

Plugwise Home Automation appliance (appliance_pump) ​

ParameterDescriptionConfigDefault
idThe unique ID of the pump applianceRequired-

Plugwise Home Automation boiler (appliance_boiler) ​

ParameterDescriptionConfigDefault
idThe unique ID of the boilerRequired-

Channels ​

channeltypeRead-only?description
temperatureNumber:TemperatureYesThe temperature of an appliance that supports the thermostat functionality
setpointTemperatureNumber:TemperatureNoThe setpoint temperature (read/write) of an appliance that supports the thermostat functionality
powerSwitchNoTurn an appliance on or off if it supports relay functionality
lockSwitchNoToggle an appliance lock on or off if it supports relay functionality. (When the lock is on, the gateway will not automatically control the corresponding relay switch depending on thermostat mode)
powerUsageNumber:PowerYesThe current power usage in Watts of an appliance that supports this
batteryLevelNumberYesThe current battery level of an appliance that is battery operated
batteryLevelLowSwitchYesSwitches ON when the battery level of an appliance that is battery operated drops below a certain threshold
chStateSwitchYesThe current central heating state of the boiler
dhwStateSwitchYesThe current domestic hot water state of the boiler
waterPressureNumber:PressureYesThe current water pressure of the boiler
presetSceneStringNoThe current active scene for the zone
regulationControlStringNoToggle current regulation control (Active, Passive, Off) for the zone
coolingAllowedSwitchNoToggle the cooling allowed of a zone ON/OFF
valvePositionNumber:DimensionlessYesThe current position of the valve
preHeatSwitchNoToggle the pre heating of a zone ON/OFF
coolingStateSwitchYesThe current cooling state of the boiler
intendedBoilerTempNumber:TemperatureYesThe intended boiler temperature
flameStateSwitchYesThe flame state of the boiler
intendedHeatingStateSwitchYesThe intended heating state of the boiler
modulationLevelNumber:DimensionlessYesThe current modulation level of the boiler
otAppFaultCodeNumberYesThe Opentherm application fault code of the boiler
dhwTemperatureNumber:TemperatureYesThe current domestic hot water temperature of the boiler
otOEMFaultCodeNumberYesThe Opentherm OEM fault code of the boiler
boilerTemperatureNumber:TemperatureYesThe current temperature of the boiler
dhwSetpointNumber:TemperatureYesThe domestic hot water setpoint
maxBoilerTemperatureNumber:TemperatureYesThe maximum temperature of the boiler
dhwComfortModeSwitchYesThe domestic hot water comfort mode
burnerStartsFailedNumberYesTotal count of failed burner starts
burnerStartsNumberYesTotal count of burner starts
burnerIgnitionsFailedNumberYesTotal count of failed burner ignitions
burnerOpTimeNumber:TimeYesTotal operation time
burnerDHWOpTimeNumber:TimeYesTotal operation time for domestic hot water

Full Example ​

plugwiseha.things ​

dsl
Bridge plugwiseha:gateway:home "Plugwise Home Automation Gateway" [ smileId="abcdefgh" ] {
    Thing zone living_room_zone "Living room" [ id="$device_id" ]
    Thing appliance_valve living_room_radiator "Living room radiator valve" [ id="$device_id" ]
    Thing appliance_thermostat living_room_thermostat "Living room thermostat" [ id="$device_id" ]
    Thing appliance_pump living_room_pump "Floor heating pump" [ id="$device_id" ]
    Thing appliance_boiler main_boiler "Main boiler" [ id="$device_id" ]
}

Replace $device_id accordingly.

plugwiseha.items ​

dsl
Number:Temperature living_room_zone_temperature "Zone temperature" {channel="plugwiseha:zone:home:living_room_zone:temperature"}
Number:Temperature living_room_zone_temperature_setpoint "Zone temperature setpoint" {channel="plugwiseha:zone:home:living_room_zone:setpointTemperature"}
String living_room_zone_preset_scene "Zone preset scene" {channel="plugwiseha:zone:home:living_room_zone:presetScene"}
Switch living_room_zone_preheat "Zone preheat enabled" {channel="plugwiseha:zone:home:living_room_zone:preHeat"}
String living_room_zone_cooling "Zone cooling enabled" {channel="plugwiseha:zone:home:living_room_zone:coolingAllowed"}
String living_room_zone_regulation_control "Zone regulation control" {channel="plugwiseha:zone:home:living_room_zone:regulationControl"}

Number:Temperature living_room_radiator_temperature "Radiator valve temperature" {channel="plugwiseha:appliance_valve:home:living_room_radiator:temperature"}
Number:Temperature living_room_radiator_temperature_setpoint "Radiator valve temperature setpoint" {channel="plugwiseha:appliance_valve:home:living_room_radiator:setpointTemperature"}
Number living_room_radiator_valve_position "Radiator valve position" {channel="plugwiseha:appliance_valve:home:living_room_radiator:valvePosition"}

Number:Temperature living_room_thermostat_temperature "Room thermostat temperature" {channel="plugwiseha:appliance_thermostat:home:living_room_thermostat:temperature"}
Number:Temperature living_room_thermostat_temperature_setpoint "Room thermostat temperature setpoint" {channel="plugwiseha:appliance_thermostat:home:living_room_thermostat:setpointTemperature"}
Number:Temperature living_room_thermostat_temperature_offset "Room thermostat temperature offset" {channel="plugwiseha:appliance_thermostat:home:living_room_thermostat:offsetTemperature"}

Switch living_room_pump_power "Floor heating pump power" {channel="plugwiseha:appliance_pump:home:living_room_pump:power"}
Switch living_room_pump_lock "Floor heating pump lock [MAP:(plugwiseha.map):%s]" {channel="plugwiseha:appliance_pump:home:living_room_pump:lock"}
Number:Power living_room_pump_power_usage "Floor heating pump power [%0.2f W]" {channel="plugwiseha:appliance_pump:home:living_room_pump:powerUsage"}

Number:Pressure main_boiler_waterpressure "Water pressure" { channel="plugwiseha:appliance_boiler:home:main_boiler:waterPressure"}
Switch  main_boiler_chState "Heating active" { channel="plugwiseha:appliance_boiler:home:main_boiler:chState"}
Switch  main_boiler_dhwState "Domestic hot water active" { channel="plugwiseha:appliance_boiler:home:main_boiler:dhwState"}

Switch main_boiler_coolingState "Cooling state" { channel="plugwiseha:appliance_boiler:home:main_boiler:coolingState"}
Number:Temperature main_boiler_intendedBoilerTemp "Intended boiler temperature" {channel="plugwiseha:appliance_boiler:home:main_boiler:intendedBoilerTemp"}
Switch main_boiler_flameState "Flame state" { channel="plugwiseha:appliance_boiler:home:main_boiler:flameState"}
Switch main_boiler_intendedHeatingState "Intended heating state" { channel="plugwiseha:appliance_boiler:home:main_boiler:intendedHeatingState"}
Number main_boiler_modulationLevel "Modulation level" {channel="plugwiseha:appliance_boiler:home:living_room_radiator:modulationLevel"}
Number main_boiler_otAppFaultCode "OpenTherm application fault code" {channel="plugwiseha:appliance_boiler:home:living_room_radiator:otAppFaultCode"}
Number:Temperature main_boiler_dhwTemperature "DHW temperature" {channel="plugwiseha:appliance_boiler:home:main_boiler:dhwTemperature"}
Number main_boiler_otOEMFaultCode "OpenTherm OEM fault code" {channel="plugwiseha:appliance_boiler:home:main_boiler:otOEMFaultCode"}
Number:Temperature main_boiler_boilerTemperature "Boiler temperature" {channel="plugwiseha:appliance_boiler:home:main_boiler:boilerTemperature"}
Number:Temperature main_boiler_dhwSetpoint "DHW setpoint" {channel="plugwiseha:appliance_boiler:home:main_boiler:dhwSetpoint"}
Number:Temperature main_boiler_maxBoilerTemperature "Max. boiler temperature" {channel="plugwiseha:appliance_boiler:home:main_boiler:maxBoilerTemperature"}
Switch main_boiler_dhwComfortMode "DHW comfort mode" { channel="plugwiseha:appliance_boiler:home:main_boiler:dhwComfortMode"}
Number:Temperature main_boiler_returnTemperature "Boiler return temperature" {channel="plugwiseha:appliance_boiler:home:main_boiler:returnWaterTemperature"}

plugwiseha.map ​

text
ON=Locked
OFF=Unlocked

plugwiseha.sitemap ​

dsl
sitemap plugwiseha label="PlugwiseHA Binding"
{
    Frame {
        Text item=living_room_zone_temperature
        Setpoint item=living_room_zone_temperature_setpoint label="Living room [%.1f °C]" minValue=5.0 maxValue=25 step=0.5
        Text item=living_room_zone_presetScene
        Switch item=living_room_zone_preheat
        Text item=living_room_zone_regulation_control
        Switch item=living_room_zone_cooling

        Text item=living_room_radiator_temperature
        Setpoint item=living_room_radiator_temperature_setpoint label="Living room [%.1f °C]" minValue=5.0 maxValue=25 step=0.5
        Text item=living_room_radiator_valve_position

        Text item=living_room_thermostat_temperature
        Setpoint item=living_room_thermostat_temperature_setpoint label="Living room [%.1f °C]" minValue=5.0 maxValue=25 step=0.5
        Setpoint item=living_room_thermostat_temperature_offset label="Living room offset [%.1f °C]" minValue=-5.0 maxValue=5 step=0.5

        Number item=living_room_pump_power_usage
        Switch item=living_room_pump_power
        Switch item=living_room_pump_lock

        Number item=main_boiler_waterpressure
        Switch item=main_boiler_chState
        Switch item=main_boiler_dhwState

        Switch item=main_boiler_coolingState
        Number item=main_boiler_intendedBoilerTemp
        Switch item=main_boiler_flameState
        Switch item=main_boiler_intendedHeatingState
        Number item=main_boiler_modulationLevel
        Number item=main_boiler_otAppFaultCode
        Number item=main_boiler_dhwTemperature
        Number item=main_boiler_otOEMFaultCode
        Number item=main_boiler_boilerTemperature
        Number item=main_boiler_dhwSetpoint
        Number item=main_boiler_maxBoilerTemperature
        Switch item=main_boiler_dhwComfortMode
        Number item=main_boiler_returnTemperature
    }
}