This adapter uses the service Sentry.io to automatically report exceptions and code errors and new device schemas to me as the developer. More details see below!
Sentry.io is a service for developers to get an overview about errors from their applications. Exactly this is implemented in this adapter.
When the adapter crashes or another Code error happens, this error message that also appears in the ioBroker log is submitted to Sentry. When you have allowed ioBroker GmbH to collect diagnostic data, then also your installation ID (this is just a unique ID without any additional infos about you, email, name or such) is included. This allows Sentry to group errors and show how many unique users are affected by such an error. All of these helps me to provide error-free adapters that basically never crash.
This adapter connects your Philips Hue Bridges with ioBroker to control Philips Hue LED bulbs, Friends of Hue LED lamps, stripes, plugs like from Osram, and other SmartLink capable devices (like LivingWhites and some LivingColors).
Once you have installed this adapter within ioBroker, create an adapter instance accordingly. Next, you need to connect your Hue bridge with ioBroker within the adapter settings:
- If you are using another bridge than v2, configure port to 80 (non-https), else 443 (https) should be the way to go.
- Click on "Find Bridge" button to get the IP address of your bridge. This will search for all bridges in your environment. Then select the bridge to which you want to connect. The field "Bridge Address" will be populated with the IP address of your chosen Hue bridge.
- Next, click on "Create User" button in the settings and then walk to your Hue bridge device, so your hardware, to push its round button. You'll be going to have 30 seconds to proceed. Once you pushed the button, the field "Bridge User" should be populated with a generated string.
- Modify any other options in the adapter settings and then select "save and close".
- Finally, you should be all set: The adapter will generate all objects to control your Hue devices accordingly.
Please note: Adapter settings button "Find Bridge" will be inactive if field "Bridge Address" is populated, and button "Create User" will be inactive if field "Bridge User" is populated.
Name | Description |
---|---|
Bridge address | IP address of your Hue bridge, you can try to detect it by pressing Find Bridge button. |
Port | Port of your Hue bridge, normally 443 (SSL) and 80 (non-SSL). |
SSL | If checked, connection is secured via SSL, port will automatically change to 443 (it is strongly recommended to use SSL). |
User | Username of your bridge user. You can create it, by pressing Create User button and following the screen instructions. |
Ignore scenes | If checked, scenes will not be shown/controlled by the adapter. |
Ignore groups | If checked, groups will not be shown/controlled by the adapter. |
"Legacy" structure | To support backwards compatibility, it is possible to hold an old object structure in ioBroker. This old structure is hue.<instance_number>.<bridge_name_channel>.<light_or_group_channel>.<state> . The new structure removes <bridge_name_channel> and thus makes it necessary to adapt old scripts, etc. If an existing old structure is detected by the adapter, the structure will be used without checking the checkbox. However, if migration from old to new structure is desired, delete the whole hue.<instance_number> namespace once. |
Native turn off/on behaviour | If checked, the adapter will turn on/off lights in the same fashion as the native Hue app does. Otherwise, lamps will be set to a level of 100 % when switched on. Additionally when a group is already turned on, setting the brightness level will affect only the already turned on lamps and will not turn the lamps on, which are currently turned off. |
Sync software sensors | Also sync software sensors. These are virtual sensors, e.g. created by Hue Labs scenes. By controlling the status datapoint of such a sensor you can start/stop scenes which follow this logic. In most cases 0 turns scene off and 1 turns it on. |
Turn on with others | Turn on lights also with ct state, color state, ... Set to false and turn on only with power and brightness state. |
Polling | If checked, the adapter will poll state changes, otherwise it can only be used to control lamps, not to show their status. |
Polling interval | Defines how often the states will be polled, and thus updated in ioBroker. Low polling intervals can cause performance issues in some settings. Hence, the minimum allowed polling interval is 2 seconds. If polling interval is set to less than 2 seconds it will be set to 2 seconds during runtime. |
Command states (e.g. hue.0.All.command
) can be used to set multiple commands to the bridge.
This allows setting a group or a light to a specific state using e.g. a transition time.
setState('hue.0.All.command', { "bri": 50, "transitiontime": 30 }, false);
For groups which contain scenes, like hue.0.Wohnzimmer.scene_hell
the scenes can also be activated with a transition time.
To do this, pass the scene argument to the corresponding command.
setState('hue.0.All.Wohnzimmer', { "scene": "hell", "transitiontime": 30 }, false);
With version 3.3.0 the group states anyOn
and allOn
became controllable, note that they will just act like the on
state,
when controlled. In some cases, it may be desirable to have a controllable anyOn
state in your visualization.
Bindet Philips Hue / LivingColors / LivingWhites Lampen ein. In den Adapter-Settings muss die IP der Hue Bridge sowie ein Username konfiguriert werden. Um einen User zu aktivieren, einmal auf create user drücken und dann innerhalb von 30 Sekunden den Button an der Hue bridge drücken. Dann wird automatisch der User übergeben.
- (foxriver76)
level
andbri
states of groups are now updated via push API
- (seb2010) added possibility to use global light-scenes in commands (in addition to object-lightscene)
- (foxriver76) dropped support of node 16 (End-Of-Life)
- (foxriver76) bring back short delay between setting and polling a group
- (foxriver76) use adapter internal timer methods
- (foxriver76) fixed frontend/backend communication (closes #481)
- (foxriver76) fixed problem on auto-deletion of groups
- (foxriver76) implemented Hue Tap Dial (closes #368, closes #416)
- (foxriver76) do not set invalid states on unknown group updates
- (foxriver76) only use push connection if ssl is configured
- (foxriver76) fixed crash case
- (foxriver76) fixed the edge case crash on button updates
- (foxriver76) fixed crash case if uuids cannot be retrieved
- (foxriver76) fixed crash cases on unknown push updates (closes #417)
- (foxriver76) fixed sensor converting (closes #415)
- (foxriver76) implemented more commands of the Push API (mainly buttons)
- (foxriver76) implemented poll API (closes #227, #343)
- (foxriver76) fixed polling not working (closes #408, #410)
- (Schmakus) Possibility to disable turn on lights with states other than
on
andbrightness
[#386]
- (Eistee82) also update state for
CLIPGenericFlag
sensors
- (foxriver76) support software sensor
CLIPGenericFlag
(closes #328)
- (foxriver76) correctly identify third party switches (closes #273)
- (foxriver76) added
info.connection
state (closes #268)
- (foxriver76) ct values of groups can be even lower due to third party lights
- (foxriver76) allow triggering scenes via
command
state, this allows starting a scene withtransitiontime
- (foxriver76) ct value fixed of #234 ported for 0 (All) group
- (foxriver76) we fixed Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J
- (bluefox) Caught SENTRY error.
- (foxriver76) another fixed for invalid ct values (fixes #234)
- (foxriver76) we fixed missing object type of some scenes (closes #255)
- (foxriver76) fixed an issue with the username set in Hue API (fixes 249)
- (klein0r) fixed translation of search popup (fixes #247)
- (foxriver76) if we cannot determine the correct ct value, we won't set it (fixes #234)
- (Pmant) fixed for third party devices delivering wrong ct values
- (foxriver76) fixed several sentry issues (closes #217, closes #218, closes #219, closes #220)
- (foxriver76) we now define minimum ct of groups to 2000 instead of 2179 (fixes #216)
- (foxriver76) fixed crash case if we cannot get min/max ct values
- (foxriver76) get the correct min/max ct values from api for lights (closes #192)
- (foxriver76) prevent edge case crash (fixes #196)
- (foxriver76) make buttons type
boolean
(closes #189)
- (foxriver76) fixed some default type values, which produced warnings once
- (foxriver76) protect the user token from access by foreign adapters
- (foxriver76) fixed types of default values on groups
- (foxriver76) we fixed some more types
- (foxriver76) we give skipped switches common.type 'mixed' instead of none
- (foxriver76) we have corrected the min max of color temperature (empirically found)
- (foxriver76) we now update objects if a type has changed
- (foxriver76) we removed the common.max from lightlevel, was 17,000 but can be much higher
- (foxriver76) we added common.type for states where the attribute was missing
- (foxriver76) start this adapter in TIER 2
- (foxriver76) minor changes
- (foxriver76) fixed a bug where an error on user creation crashed the adapter instance
- (foxriver76) fixing several edge case crashes
- (foxriver76) fixed crashes if wrong data type or invalid value passed for ct and hue, now logging an error
- (foxriver76) fixed crashes if rgb where outside allowed range or wrong type
- (foxriver76) fixed potential crashes on bridge discovery, due to unnecessary stringify/parse logic
- (foxriver76) fixed a graphical issue with the label of bridge user when newly created, due to missing call of updateTextFields
- (foxriver76) avoid crash cases on invalid xy, setting state for non-existing device and on failing user creation
- (foxriver76) use official js-controller regex for replacing forbidden chars (fixes #165)
- (foxriver76) use release-script
- (foxriver76) sentry added
- (foxriver76) we now restart the adapter automatically to add new devices if they have been added to bridge
- (foxriver76) fixed updating
anyOn
andallOn
if legacy structure used
- (foxriver76) we do not set states of non-existing states anymore
- (foxriver76) marked read-only states accordingly
- (Apollon77) do not catch undhandeledRejections anymore, because controller can handle and report now
- (foxriver76) dependencies updated
- (foxriver76) temperature is now correctly read-only
- (foxriver76) fixed duplicate filtering on browse
- (foxriver76) fixed issue on frontend validation of polling intervals starting with 1
- (foxriver76) implemented fixed for problems with switches and handling id conflicts
- (foxriver76) we now handle potential id conflicts, when adding devices from a different type with same name over time
- (foxriver76) internal optimizations - polling after change timeout removed, was 150 ms now instant
- (foxriver76) introduce
allOn
state for groups - (foxriver76)
anyOn
andallOn
are now controllable and act like theon
state - (foxriver76) when native turn on/off behaviour is used, the brightness change of partially turned on groups will not turn the whole group on, like the hue app does, instead it will only change the brightness of the currently turned on lamps
- (foxriver76) fixed issues on user creation
- (foxriver76) minor frontend (admin config) optimizations
- (foxriver76) replace dots in light/group/sensor/.. names by underscores
- (foxriver76) fixed potential state update delay after state change on lights/groups containing blanks
- (xXBJXx) changed role of battery to
value.battery
and made unit%
- (Apollon77) minor fixed regarding handleParam called with non-existing id
- (foxriver76) fixed potential issues when error type is not HueError
- (foxriver76) if lights/groups/sensors are deleted during runtime, restart of adapter is no longer necessary
- (foxriver76) if controller supports recursive deletion, device will be deleted automatically
- (foxriver76) added additional frontend validation of polling interval
- (foxriver76) if errors are hue errors, log message instead of Error
- (foxriver76) added new indicators for entertainment groups (class and activeStream)
- (foxriver76) added possibility to enable/disable streaming of entertainment group
- (foxriver76) fixed turning on/off switchs like Osram Plug
- (foxriver76) removed queue, because handled by dependency now
- (foxriver76) improved error handling
- Nodejs >= 10 required
- (foxriver76) implemented a mechanic to prevent regular polling of recently changed state
- (foxriver76) this prevents fluctuating of buttons on low polling intervals + possible strange triggers in scripts
- (foxriver76) do not set default values on every adapter start
- (foxriver76) this is now done only on object creation
- (foxriver76) log unhandeld promise rejections
- (foxriver76) fixed potential issue for negative temperature values
- (foxriver76) only stringify huge jsons if necessary
- (foxriver76) prevent possible double polling at adapter start
- (foxriver76) use timeouts instead of interval
- (foxriver76) improved performance
- (foxriver76) increased version of node-hue-api to fixed authentication for old bridge
- (foxriver76) we now use nupnp + upnp to discover bridges (previously only upnp)
- (foxriver76) added possibility to control zones and entertainment areas
- (foxriver76) log queue retires on debug instead warn
- (foxriver76) BETA: added possibility to control software sensors (Note: this may be handled in a more suitable fashion soon)
- (foxriver76) fixed controlling
on
state of sensors
- (foxriver76) migrate everything to Hue v3
- (foxriver76) add possibility to turn on/off sensor
- (foxriver76) add anyOn state for all group
- (foxriver76) different kinds of fixes for v3 (Osram Plugs, SSL connection, etc)
- (foxriver76) usage and adaptions for node-hue-api v3
- (foxriver76) ability to turn lights on with last settings
- (foxriver76) polling interval minimum is now 2 sec
- (foxriver76) fixed bug, that prevented some sensor states getting updated during runtime
ATTENTION: Remove all objects once, ids have changed
- (foxriver76) internal optimizations
- (foxriver76) usage of iobroker testing
- (foxriver76) add possibility to sync scenes
- (foxriver76) restart adapter when room is deleted in app
- (foxriver76) fixed .hue value, user had to set 0-360° but adapter set 0-65535
- (foxriver76) fixed .color.temperature
- (foxriver76) remove unnecessary bridge channel, adapter namespace is the bridge
- (foxriver76) add "update available" indicator for light bulbs
- (foxriver76) we now poll the root endpoint instead of (|lights| + |groups| + |sensors|) endpoints every pollingInterval seconds
- (foxriver76) min poll interval now 3 seconds instead of 5 seconds
- (foxriver76) add new indicator state 'anyOn'
- (Apollon77) Make compatible with js-controller 2.0
- (jens-maus) Refactored command queue handling to use 'bottleneck' package so that command execution are processed with minimum delay.
- (BasGo) Added compact mode
- (bluefox) Ignoring of groups was implemented
- (bluefox) The command queue was optimized
- (bluefox) Roles were adjusted
- (bluefox) temperature changed from 153-cold, 500-warm to 2200-warm, 6500-cold
- (bluefox) hue changed from 0-65535 to 0-360°
- (arteck) Enable/Disable OSRAM check from HUE Bridge
- (arteck) polling ZLLSwitch and ZGPSwitch
- (bluefox) admin3
- (bluefox) do not send commands ofter than 10 in 10 seconds
- (bluefox) Enable adapter by default
- (bluefox) Poll groups
- (bluefox) Fix error with turn on the lamp on start
- (bluefox) configurable port
- (bluefox) Use new version of npm library
- (pmant) support new lamps
- (pmant) add light name to log
- (pmant) fixed error with null values
- (bluefox) fixed typo
- (soef) write back known states for group/room
- (soef) Integer conversion for bri_inc command
- (Pmant) (experimental) support for power switches
- (Pmant) fixed error with xy state
- (Pmant) support level in command state
- (Pman) Lightset 0 fixed
- (Pman) support for diffent gamuts
- (Pman) support Rooms (new HUE App)
- (soef) Default Lightset 0 added
- (Pman) fixed jscs warnings
- (Pman) improve RGB conversion
- (Pman) add update rgb color
- (Pman) fixed find bridge popup
- (Pman) update to node-hue-api 1.2.x
- (Pman) add level state (bri percentage)
- (bluefox) fixed config edit
- (Pmant) fixed adapter crash
- (Pmant) add find bridge (experimental)
- (Pmant) add create user (experimental)
- (Pmant) fixed enable polling
- (Pmant) calculate and write back inc values
- (Pmant) add command state
- (Pmant) add groups as channels (write only)
- (Pmant) fixed prevent duplicate channel names
- (Pmant) fixed another bug with spaces
- (Pmant) fixed hue/sat bug
- (Pmant) fixed effect bug
- (Pmant) fixed xy colormode
- (Pmant) fixed rgb states only for color lights
- (Pmant) change set known state changes immediately
- (Pmant) change on/off sets brightness to 254/0
- (Pmant) change changing any color (hs,ct,xy) while light is off sets brightness to max
- (Pmant) fixed set brightness to zero if light is off
- (Pmant) change set bri to zero if lamp is not reachable
- (Pmant) fixed bridges and lamps with spaces in name
- (Pmant) add rgb states (write only)
- (Pmant) fixed parent/children warnings
- (Pmant) add switch light off if brightness is zero
- (bluefox) fixed some null objects
- (hobbyquaker) config UI
- (hobbyquaker) added children
- (hobbyquaker) fixes
- (hobbyquaker) fixed min/max attributes
- (hobbyquaker) added common.oper.read/write attributes
- (hobbyquaker) first release
- Automatic bridge discovery
- Automatic user setup via bridge link button
Apache 2.0
Copyright (c) 2017-2024 Bluefox [email protected]
Copyright (c) 2014-2016 hobbyquaker