diff --git a/CODEOWNERS b/CODEOWNERS index 64ab31aa3..7d4e10888 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -303,6 +303,7 @@ /bundles/org.openhab.binding.solarwatt/ @sven-carstens /bundles/org.openhab.binding.somfymylink/ @loungeflyz /bundles/org.openhab.binding.somfytahoma/ @octa22 +/bundles/org.openhab.binding.somneo/ @0x4d4d /bundles/org.openhab.binding.sonnen/ @chingon007 /bundles/org.openhab.binding.sonos/ @kgoderis @lolodomo /bundles/org.openhab.binding.sonyaudio/ @freke diff --git a/bom/openhab-addons/pom.xml b/bom/openhab-addons/pom.xml index 8cddb09a3..688265456 100644 --- a/bom/openhab-addons/pom.xml +++ b/bom/openhab-addons/pom.xml @@ -1511,6 +1511,11 @@ org.openhab.binding.somfytahoma ${project.version} + + org.openhab.addons.bundles + org.openhab.binding.somneo + ${project.version} + org.openhab.addons.bundles org.openhab.binding.sonnen diff --git a/bundles/org.openhab.binding.somneo/NOTICE b/bundles/org.openhab.binding.somneo/NOTICE new file mode 100644 index 000000000..38d625e34 --- /dev/null +++ b/bundles/org.openhab.binding.somneo/NOTICE @@ -0,0 +1,13 @@ +This content is produced and maintained by the openHAB project. + +* Project home: https://www.openhab.org + +== Declared Project Licenses + +This program and the accompanying materials are made available under the terms +of the Eclipse Public License 2.0 which is available at +https://www.eclipse.org/legal/epl-2.0/. + +== Source Code + +https://github.com/openhab/openhab-addons diff --git a/bundles/org.openhab.binding.somneo/README.md b/bundles/org.openhab.binding.somneo/README.md new file mode 100644 index 000000000..70cca0fe5 --- /dev/null +++ b/bundles/org.openhab.binding.somneo/README.md @@ -0,0 +1,152 @@ +# Philips Somneo Binding + +This binding integrates Philips Somneo HF367X into openHAB. + +## Supported Things + +This binding does only support one Thing: + +- `Philips Somneo HF367X`: A connected sleep and wake-Up light with the ThingTypeUID `hf367x` + +## Thing Configuration + +The Philips Somneo thing requires the `hostname` it can connect to. +Its API only allows HTTPS access, but unfortunately the SSL certificate is not trusted and must be ignored by the parameter. + +| Parameter | Values | Default | +|---------------------|-------------------------------------------|---------| +| hostname | Hostname or IP address of the device | - | +| port | Port number | 443 | +| refreshInterval | Interval the device is polled in sec | 30 | +| ignoreSSLErrors | Ignore SSL Errors | true | + +## Channels + +| Channel | Type | Read/Write | Description | +|-----------------------|----------------------|------------|-------------------------------------------------------------| +| _Sensor_ | | | | +| sensor#illuminance | Number:Illuminance | R | The current illuminance in lux | +| sensor#temperature | Number:Temperature | R | The current temperature | +| sensor#humidity | Number:Dimensionless | R | The current humidity in % | +| sensor#noise | Number:Dimensionless | R | The current noise in dB | +| _Light_ | | | | +| light#main | Switch | RW | Turn the light on, off and set the brightness | +| light#night | Switch | RW | Turn the night light on or off | +| _Sunset_ | | | | +| sunset#switch | Switch | RW | Turn the sunset program on or off | +| sunset#remainingTime | Number:Time | R | Remaining time from an activated program | +| sunset#lightIntensity | Dimmer | RW | Set the brightness during the sunset programme | +| sunset#duration | Number:Time | RW | The duration of sunset program in minutes | +| sunset#colorSchema | Number | RW | Choose a personal sunset | +| sunset#ambientNoise | String | RW | Ambient noise played during the sunset | +| sunset#volume | Dimmer | RW | Set the volume during the sunset programme | +| _Relax_ | | | | +| relax#switch | Switch | RW | Turn the relax breathe program on or off | +| relax#remainingTime | Number:Time | R | Remaining time from an activated program | +| relax#breathingRate | Number | RW | Breathing rate per minute during the relax program | +| relax#duration | Number:Time | RW | The duration of breathe program in minutes | +| relax#guidanceType | Number | RW | Select a breath guidance type during the relax program | +| relax#lightIntensity | Dimmer | RW | Set the brightness during the breathe programme | +| relax#volume | Dimmer | RW | Set the volume during the breathe programme | +| _Audio_ | | | | +| audio#radio | Player | RW | Controlling the radio and seeking for a frequency | +| audio#aux | Switch | RW | Turn the AUX input on or off | +| audio#volume | Dimmer | RW | Change the sound volume of the device | +| audio#preset | String | RW | The Device has 5 presets to store radio frequencies | +| audio#frequency | String | R | The currently selected radio frequency | + +## Full Example + +somneo.things: + +``` +Thing somneo:hf367x:1 "Philips Somneo" @ "Bedroom" [ hostname="192.168.0.110", ignoreSSLErrors=true ] +``` + +somneo.items: + +``` +// Sensors +Number:Illuminance PhilipsSomneo_Illuminance "Illuminance" ["Measurement", "Light"] { channel="somneo:hf367x:1:sensor#illuminance" } +Number:Temperature PhilipsSomneo_Temperature "Temperature" ["Measurement", "Temperature"] { channel="somneo:hf367x:1:sensor#temperature" } +Number:Dimensionless PhilipsSomneo_Humidity "Humidity" ["Measurement", "Humidity"] { channel="somneo:hf367x:1:sensor#humidity" } +Number:Dimensionless PhilipsSomneo_Noise "Noise" ["Measurement", "Noise"] { channel="somneo:hf367x:1:sensor#noise" } +// Light +Dimmer PhilipsSomneo_MainLight "Light" ["Control", "Light"] { channel="somneo:hf367x:1:light#main" } +Switch PhilipsSomneo_NightLite "Night Light" ["Control", "Light"] { channel="somneo:hf367x:1:light#night" } +// Sunset +Switch PhilipsSomneo_SunsetSwitch "Sunset Program" ["Switch", "Power"] { channel="somneo:hf367x:1:sunset#switch" } +Number:Time PhilipsSomneo_SunsetRemaining "Remaining Time"