GithubHelp home page GithubHelp logo

jey-cee / iobroker.deconz Goto Github PK

View Code? Open in Web Editor NEW
54.0 54.0 35.0 1.43 MB

Connects to deConz software developed by dresden-elektronik. This software aims to be a universal ZigBee Gateway solution, using hardware from dresden-elektronik the ConBee USB stick and RaspBee a modul for the Raspberry Pi.

License: Apache License 2.0

JavaScript 82.69% HTML 17.31%
deconz dresden-elektronik hardware iobroker raspberry-pi xiaomi-sensors

iobroker.deconz's People

Contributors

apollon77 avatar asgothian avatar bergreiter avatar bortim avatar dependabot[bot] avatar feurer98 avatar germanbluefox avatar greenkeeper[bot] avatar grizzelbee avatar halloamt avatar hobbyquaker avatar hopedotz avatar jefdemas avatar jey-cee avatar johnnybyzhang avatar ldittmar81 avatar mattreim avatar mcm1957 avatar mplogas avatar paalap avatar paul53 avatar pmant avatar schmakus avatar sneak-l8 avatar soef avatar thewhobox avatar unclesamswiss avatar vwccvr6 avatar withstu avatar zefau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iobroker.deconz's Issues

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

can't add deconz-devices (osram plug) to cloud-adapter

i'm not sure if the error is on the cloud adapter or this one, but i'm afraid it's a problem of the deconz-adapert.

I'm not able to add my Osram Smart+Plug to the cloud-adapter, looks like the "on" is set to state instead of switch.

bildschirmfoto 2018-01-17 um 19 14 38

Add message for Save

Before it is possible to get an API key it is necessary to save the settings after input of IP and port.

New Scene for group not showing in ioBroker Objects

If I add a new scene in Phoscon App the scene is not displayed under the group. Even a restart of deconz instance doesn't help.

Is this a bug or how to update already added groups to see the new scenes?

Thanks

Beat

Mehrere Objekteeinträge je Licht/Sensor - normal?

Hallo erstmal!
Ich sehe an meinem Vorschreiber daß hier auch deutsche Einträge verstanden werden... macht es um einiges leichter für mich LOL !!

Mir ist aufgefallen, daß ich mehrere Objekteinträge (folder) mit teilweise gleichzeitigen Einträgen in den Objekten habe.

Bei den Zwischensteckern von IKEA ist es ein Eintrag
Türkontakte Xiaomi: 1 Eintrag
Bewegungsmelder Xiaomi: 2 Einträge
Taster Xiaomi: 2 Einträge
Temperatursensoren Xiaomi: 3 Einträge

Die einzelnen Folder zeigen, wenn sie doppelt vorhanden sind, gleiche Werte an,
Teilweise gibt es bestimmte Werte auch nur jeweils in einem der Folder

Das ist zwar alles etwas verwirrend und unübersichtlich, aber trotzdem komme ich damit klar,

Ich wollte nur mal wissen, ob das hier bei mir ein Bug ist oder es so vorgesehen ist bzw. bei Anderen ebenfalls so angezeigt wird.

Grüße
Michael

Ikea trådfri?

Is the adapter working with Ikea trådefri?
Hardware: RPI 3 and dresden usb stick (ConBee)
I have setup deconz software and linked three device (light bulb, motion sensor and switch) and i see them in deconz we-gui.
I have the deconz adapter loaded and configured.
There is only one objeckt in instances tab.
instans
In the script tab I can see all three objects,
objectbrowser
There are five objects because i renamed two of them in deconz!

I need help!

Its ok to answer in German.(google translate works ok)

Verteilte Datenpunkte bleiben als Leichen erhalten

Ich habe den Conbee2 getestet. Nachdem ich gehört habe, dass Datenpunkte bei diversen Produkten verteilt in verschiedenen Ordnern landen haben ich diverse Produkte in der Phoscon App angelernt und auch gelöscht und mir dazu immer die Datenpunkte im ioB angeschaut. Beim Xiaomi Lumi Plug wird ein Ordner für den Plug unter Lichter im ioB angelegt sowie ein Ordner unter Sensors wo der Datenpunkt für den Stromverbrauch des Plugs drin ist. Mal davon abgesehen, das diese sehr unübersichtlich ist weil man irgendwann gar nicht mehr weis welche Sensoren zu welchen Gerät gehören bleiben bei mir auch Leichen im Bereich Sensoren übrig wenn ich den Plug in der Phoscon App lösche und den Adapter aktualisiere. Der Plug ist dann im Ordner Lichter weg aber der Datenpunkt für den Stromverbraucht ist im Ordner Sensoren noch da. Auch der Adapter Neustart hat nicht geholfen. Erst wenn ich den Stick komplett über die App zurücksetzte sind die Leichen weg. So wie alles Andere auch :-)

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/iobroker-community-adapters/ioBroker.deconz

  • [E118] Versions in package.json and in io-package.json are different
  • [E201] Bluefox was not found in the collaborators on NPM!. Please execute in adapter directory: "npm owner add bluefox iobroker.deconz"
  • [E301] Tests on Travis-ci.org are broken. Please fix.

Thanks,
your automatic adapter checker.

Scene recall not working

I use version 1.1.1 of the adapter but i had this issue already since upgrading from 0.3.2. The recalling of scenes inside a group is not working. Nothing happens when pressing the "button" in the "objects" list or when sending a "true" to the "recall" button from a script.

An in-range update of gulp is breaking the build 🚨

The devDependency gulp was updated from 4.0.1 to 4.0.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

gulp is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v4.0.2

Fix

Docs

  • Add notes about esm support (4091bd3) - Closes #2278
  • Fix the Negative Globs section & examples (3c66d95) - Closes #2297
  • Remove next tag from recipes (1693a11) - Closes #2277
  • Add default task wrappers to Watching Files examples to make runnable (d916276) - Closes #2322
  • Fix syntax error in lastRun API docs (ea52a92) - Closes #2315
  • Fix typo in Explaining Globs (5d81f42) - Closes #2326

Build

  • Add node 12 to Travis & Azure (b4b5a68)
Commits

The new version differs by 9 commits.

  • 069350a Release: 4.0.2
  • b4b5a68 Build: Add node 12 to Travis & Azure
  • 5667666 Fix: Bind src/dest/symlink to the gulp instance to support esm exports (ref standard-things/esm#797)
  • 4091bd3 Docs: Add notes about esm support (closes #2278)
  • 3c66d95 Docs: Fix the Negative Globs section & examples (closes #2297)
  • 1693a11 Docs: Remove next tag from recipes (closes #2277)
  • d916276 Docs: Add default task wrappers to Watching Files examples to make runnable (ref #2322)
  • ea52a92 Docs: Fix syntax error in lastRun API docs (closes #2315)
  • 5d81f42 Docs: Fix typo in Explaining Globs (#2326)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Smart Things Presence Sensor

Ist es geplant diesen Sensor einzubinden?
Beim Zigbee adapter steht er in der Liste der kompatiblen Geräte.
Ich würde mich sehr freuen.

Update 1.0.1 verändert Struktur; Scripte laufen nicht mehr

Nach dem Update auf 1.0.1 hat sich die Struktur verändert.
Anstelle von Sensor_2 zum Beispiel auf Sensor/2.
Allerdings werden nicht alle Objekt Attribute mit übernommen.
Es fehlt zum Beispiel der Zeitstempel (Update).
Somit sind meine Scripte nicht mehr lauffähig.

Manufacturer, Name, FW-Version as State

Would it be possible to add the Manufacturer (Ikea, Philipps, Osram..), the Model (ColorBulb, ColorStrip...)the Name of the device and for example the Firmware-Version of the device as a State so it can be used for displaying the device correctly with a AccessoryInformation Service in Yahka?

Don't display helper groups

Hey,

i just got my conbee and connected iobroker with it.
Its working good with fast updates, but one point is not so good.
In my list i have 8 groups with name like "FLS-PP3 helper1 for group 17".
You should not display them in iobroker and skip them in Line 711.

Also the states are a bit confusing, maybe you can create channels for lights, groups and sensors?

Aqara Vibration Sensor DJT11LM - no status change in ioBroker

Hi,

DJT11LM sends many interesting parameters like state.orientation, state.tiltangle, state.vibration and state.vibrationstrength,

{
	"config": {
		"battery": 100,
		"on": true,
		"pending": [
			
		],
		"reachable": true,
		"sensitivity": 11,
		"sensitivitymax": 21,
		"temperature": 2700
	},
	"ep": 1,
	"etag": "0d5f099e494192253bee48d582bb067c",
	"manufacturername": "LUMI",
	"modelid": "lumi.vibration.aq1",
	"name": "Vibrationssensor Mobile",
	"state": {
		"lastupdated": "2019-04-29T16:33:45",
		"orientation": [
			2,
			-1,
			88
		],
		"tiltangle": 360,
		"vibration": false,
		"vibrationstrength": 8
	},
	"swversion": "20180130",
	"type": "ZHAVibration",
	"uniqueid": "00:15:8d:00:02:b9:32:23-01-0101"
}

and

{
	"config": {
		"battery": 100,
		"on": true,
		"pending": [
			
		],
		"reachable": true,
		"sensitivity": 11,
		"sensitivitymax": 21,
		"temperature": 2700
	},
	"ep": 1,
	"etag": "5a7869a900da7366b0b05f344c3f6993",
	"manufacturername": "LUMI",
	"modelid": "lumi.vibration.aq1",
	"name": "Vibrationssensor Mobile",
	"state": {
		"lastupdated": "2019-04-29T16:42:09",
		"orientation": [
			6,
			-2,
			-83
		],
		"tiltangle": 171,
		"vibration": true,
		"vibrationstrength": 8
	},
	"swversion": "20180130",
	"type": "ZHAVibration",
	"uniqueid": "00:15:8d:00:02:b9:32:23-01-0101"
}

but I do not see it in ioBroker :-(
2019-04-29_190755

What am I doing wrong? Can I create and link these objects manually?
Help, I do not know enough yet
Thank you.

Software versions:
deCONZ: / 2.05.64 (on Raspbian)
ioBroker.deconz: 1.0.2

An in-range update of gulp is breaking the build 🚨

The devDependency gulp was updated from 4.0.0 to 4.0.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

gulp is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v4.0.1

Fix

Docs

  • Fix error in ES2015 usage example (a4e8d48) - Closes #2099 #2100
  • Add temporary notice for 4.0.0 vs 3.9.1 documentation (126423a) - Closes #2121
  • Improve recipe for empty glob array (45830cf) - Closes #2122
  • Reword standard to default (b065a13)
  • Fix recipe typo (86acdea) - Closes #2156
  • Add front-matter to each file (d693e49) - Closes #2109
  • Rename "Getting Started" to "Quick Start" & update it (6a0fa00)
  • Add "Creating Tasks" documentation (21b6962)
  • Add "JavaScript and Gulpfiles" documentation (31adf07)
  • Add "Working with Files" documentation (50fafc6)
  • Add "Async Completion" documentation (ad8b568)
  • Add "Explaining Globs" documentation (f8cafa0)
  • Add "Using Plugins" documentation (233c3f9)
  • Add "Watching Files" documentation (f3f2d9f)
  • Add Table of Contents to "Getting Started" directory (a43caf2)
  • Improve & fix parts of Getting Started (84b0234)
  • Create and link-to a "docs missing" page for LINK_NEEDED references (2bd75d0)
  • Redirect users to new Getting Started guides (53e9727)
  • Temporarily reference gulp@next in Quick Start (2cecf1e)
  • Fixed a capitalization typo in a heading (3d051d8) - Closes #2242
  • Use h2 headers within Quick Start documentation (921312c) - Closes #2241
  • Fix for nested directories references (4c2b9a7)
  • Add some more cleanup for Docusaurus (6a8fd8f)
  • Temporarily point LINK_NEEDED references to documentation-missing.md (df7cdcb)
  • API documentation improvements based on feedback (0a68710)
  • Update API Table of Contents (d6dd438)
  • Add API Concepts documentation (8dd3361)
  • Add Vinyl.isCustomProp() documentation (40ee801)
  • Add Vinyl.isVinyl() documentation (25a22bf)
  • Add Vinyl documentation (fc09067)
  • Update watch() documentation (69c22f0)
  • Update tree() documentation (ebb9818)
  • Update task() documentation (b636a9c)
  • Update symlink() documentation (d580efa)
  • Update src() documentation (d95b457)
  • Update series() documentation (4169cb6)
  • Update registry() documentation (d680487)
  • Update parallel() documentation (dc3cba7)
  • Update lastRun() documentation (363df21)
  • Update dest() documentation (e447d81)
  • Split API docs into separate markdown files (a3b8ce1)
  • Fix hash link (af4bd51)
  • Replace some links in Getting Started (c433c70)
  • Remove temporary workaround for facebook/Docusaurus#257 (5c07954) - Closes facebook/Docusaurus#257
  • Added code ticks to "null" where missing (cb67319) - Closes #2243
  • Fix broken link in lastRun (d35653e)
  • Add front-matter to documentation-missing page (a553cfd)
  • Improve grammar on Concepts (01cfcc5) - Closes #2247
  • Remove spaces around
    (c960c1d)
  • Improve grammar in src (eb493a2) - Closes #2248
  • Fix formatting error (ca6ba35) - Closes #2250
  • Fix formatting of lastRun (8569f85) - Closes #2251
  • Add missing link in watch (e35bdac) - Closes #2252
  • Fix broken link in tasks (6d43750) - Closes #2253
  • Improve punctuation in tree (8e9fd70) - Closes #2254
  • Fix mistake in "Splitting a gulpfile" (96c353d) - Closes #2255
  • Remove front-matter from outdated pages (c5af6f1)
  • Fix broken link in Table of Contents (c641369) - Closes #2260
  • Update the babel dependencies to install & configuration needed (7239cf1) - Closes #2136
  • Add "What's new in 4.0" section (75ea634) - Closes #2089 #2267
  • Cleanup README for "latest" bump (24e202b) - Closes #2268
  • Revert "next" reference now that 4.0 is latest (ed27cbe)
  • Add Azure Pipelines badge (f3f0548) - Closes #2310
  • Add note about transpilation to "Splitting a Gulpfile" section (53b9037) - Closes #2311 #2312
  • Improve wording of file rename (88437f2) - Closes #2314

Upgrade

  • Update glob-watcher, gulp-cli, and undertaker dependencies & rimraf devDep (d3734d3)

Build

  • Add node 10 to CI matrices (a5eac1c)
  • Remove jscs & update eslint for code formatting rules (ad8a2f7)
  • Fix Azure comment (34a6d53) - Closes #2307
  • Add Azure Pipelines CI (b2c6c7e) - Closes #2299

Scaffold

  • Mark *.png and *.jpg as binary files to git (a010db6)
  • Update some links and license year (1027236)
  • Add tidelift configuration (49b5aca)
  • Add new expense policy (9819957)
  • Add support-bot template (9078c49)
Commits

The new version differs by 77 commits.

  • ea3bba4 Release: 4.0.1
  • d3734d3 Upgrade: Update glob-watcher, gulp-cli, and undertaker dependencies & rimraf devDep
  • 88437f2 Docs: Improve wording of file rename (#2314)
  • 53b9037 Docs: Add note about transpilation to "Splitting a Gulpfile" section (closes #2311) (#2312)
  • f3f0548 Docs: Add Azure Pipelines badge (#2310)
  • 34a6d53 Build: Fix Azure comment (#2307)
  • b2c6c7e Build: Add Azure Pipelines CI (#2299)
  • ed27cbe Docs: Revert "next" reference now that 4.0 is latest
  • 24e202b Docs: Cleanup README for "latest" bump (#2268)
  • 75ea634 Docs: Add "What's new in 4.0" section (closes #2089) (#2267)
  • 9078c49 Scaffold: Add support-bot template
  • 7239cf1 Docs: Update the babel dependencies to install & configuration needed (closes #2136)
  • c641369 Docs: Fix broken link in Table of Contents (#2260)
  • 9819957 Scaffold: Add new expense policy
  • c5af6f1 Docs: Remove front-matter from outdated pages

There are 77 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Scenes still not showing - my scenes look OK?

You have to check your scene settings. New scenes will only be created if the lightcount is greater than 0. If the state of your light(s) in the scene is off, the count is 0.

There is no way back to 0.4.0

Hi

I've checked again my scenes and all of them have lights and the state is not off. Please see screenshot.

Could you please let me know if this should work like that and that I should see all scenes under my groups?

Thanks

Beat

deconz scene in phoscon

Originally posted by @easybeat in #43 (comment)

Feature request: Configuration option to circumvent restAPI error of not updating hue/sat values correctly

The restAPI does not seem to work properly when setting hue and sat values. It changes the color of the light, but does not update the hue and saturation datapoints.

It may be an option to generate extra datapoints "convertedHue" and "convertedSat" which are driven by either the ct value, if the light is in "ct" mode, or the xy value, if the light is in "xy" mode. Internally, the idea is to generate a message to the restAPI changing the xy value to one calculated from convertedHue and convertedSat if these datapoints are changed in ioBroker, and in return populate these datapoints with hue/sat values calculated from either the color temperature or the xy coordinates reported by the restAPI.

Generation and use of these datapoints could be configurable in the plugin, and would only apply to lights which report color present.

switch "temperature" ohne verarbeitung

In der Funktion getSensor(sensorId) wird im switch unter "temperature" keine Verarbeitung vorgenommen, daher werden in iobroker Temperaturänderungen von Sensoren (bei mir Xiaomi) nicht aktualisiert.
Ein eifnaches Copy / Paste von humidity reicht aus um den Bug zu fixen.

Frage: Wieso werden trotz websocket die ändernungen jeweils über ein neuen request abgefragt und nicht direkt aus dem WS Objekt genommen? Ich habe gesehen, dass im WS Objekt der Name des Sensors nicht vorhanden ist. Könnte man das nicht resourcenschonender gestallten in dem man eine Temporäre Liste irgendwo zwischenspeichert mit ID und Name vom Sensor und somit nur dann ein neuer http request gemacht werden muss wenn der Sensorname unbekannt ist.
Einzige "Gefahr" sehe ich, dass so Namensänderungen ggf. nicht sauber übernommen werden

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/iobroker-community-adapters/ioBroker.deconz

Thanks,
your automatic adapter checker.

Feature Request: include recalling scenes

Would it be possible to also include recalling scenes from deconz?
I find that setting up scenes for me in Phoscon is easier and more reliable than using the scenes adapter.

Not working with deconz 2.05-60

Hi,

I updated the adapter from 0.2.5 to 1.0.2. Now there is a problem with deconz 2.05.60. I can control devices (for example switch wallplug), but I do not get any updates from the devices (state of wallplug, temperature, humidity, ...)
There are no errors in the log.
I switched back to 0.2.5 and all is working again.

Error when setting xy value on hue Lamp

Changing the xy datapoint on a hue lamp causes a warning from the restAPI:

2019-01-08 17:17:56.716 - debug: deconz.0 stateChange deconz.0.Light_1.xy {"val":"0.245041,0.242574","ack":false,"ts":1546967876711,"q":0,"from":"system.adapter.admin.0","lc":1546967876711}
2019-01-08 17:17:56.717 - debug: deconz.0 dp: xy; id:Light_1
2019-01-08 17:17:56.726 - info: deconz.0 setLightState: {"transitiontime": 0, "xy": "0.245041,0.242574"} 1 deconz.0.Light_1.xy
2019-01-08 17:17:56.738 - debug: deconz.0 STATUS: 400
2019-01-08 17:17:56.739 - info: deconz.0 options: {"url":"http://localhost:80/api/78CC3AFC48/lights/1/state","method":"PUT","headers":"Content-Type\" : \"application/json","body":"{\"transitiontime\": 0, \"xy\": \"0.245041,0.242574\"}"}
2019-01-08 17:17:56.739 - debug: deconz.0 setLightState BODY: [{"error":{"address":"/lights/1/state/xy","description":"invalid value, 0.245041,0.242574, for parameter, xy","type":7}}]
2019-01-08 17:17:56.740 - warn: deconz.0 Set light state with ID: 1 parameter: {"transitiontime": 0, "xy": "0.245041,0.242574"} Code 400: Bad request

The target value was copied from the setting of the object, but the formatting in the message does not match up with the formatting in the response to getLightState:

debug: deconz.0 getLightState: {"ctmax":500,"ctmin":153,"etag":"e720da66da458021a7b387fa0e21c362","hascolor":true,"manufacturername":"Philips","modelid":"LCT015","name":"Hobby Room Color","state":{"alert":"none","bri":254,"colormode":"hs","ct":153,"effect":"none","hue":40655,"on":true,"reachable":true,"sat":168,"xy":[0.234363,0.289572]},"swversion":"1.46.13_r26312","type":"Extended color light","uniqueid":"00:17:88:01:03:12:4d:c3-0b"}

Hue does not correctly change lamp color

Using the Adapter version 0.3.1 i have an issue when changing the color of Philips hue lamps attached to a raspbee:

If i change the hue through the phoscon app, the hue value changes in the range of 0 to 65535.
if i try to change the hue from ioBroker, i can only enter values between 0 and 360. These will change the hue of the lamp, but deconz updates the value with 0 to 65535.

for me, this fix:

Fixing hue from range 0-65535 to 0-360

did not work.

Motion Sensor twice

Hi,

i had bought some Xiamoi Motion Sensors. After adding them to phoscon it generates 2 Objects in iobroker (e.g. Sensor_2 & Sensor_3). Its not a problem at all, but maybe its a bug ;)

An in-range update of ws is breaking the build 🚨

The dependency ws was updated from 6.1.4 to 6.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ws is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for 6.2.0

Features

  • Added ability to follow redirects (#1490).

Bug fixes

  • The opening handshake is now aborted if the Sec-WebSocket-Key header field
    value is invalid (160af45).
Commits

The new version differs by 14 commits.

  • eb6f8b0 [dist] 6.2.0
  • 161f303 [feature] Add ability to follow redirects (#1490)
  • a6e94f4 [minor] Move all buffer conversion functions to the buffer-util module
  • 71ee9ed chore(package): update eslint to version 5.15.0 (#1522)
  • 855494d [test] Fix flaky test
  • 8c21add [codestyle] Add .gitattributes
  • faf9b36 [ci] Let Travis CI handle x64 Windows tests
  • bcb8a98 [ci] Test on macOS
  • 5e238fb [doc] Add logos to badges
  • 295786b chore(package): update eslint-config-prettier to version 4.1.0 (#1518)
  • 160af45 [fix] Abort the handshake if the Sec-WebSocket-Key header is invalid
  • 1d93fb2 [codestyle] Use single quotes in YAML files
  • 6ad4d86 [pkg] Remove prettylint
  • dd5833a chore(package): update mocha to version 6.0.0 (#1511)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Feature request: Alternative handling for button press events

Hi all,
i have been reading through the issues and discussions on button press event handling in the adapter, and have come up with an idea which might be easy enough to implement and give a major improvement to the use.

The idea is to implement an extra datapoint, just for sensors which have the "type": "ZHASwitch" set in their native descriptor. This datapoint is set when an update message is received through the rest-API, but not on initial load of the adapter. Setting the datapoint activates a timeout of 1 second to reset the datapoint. It will not work for catching multiple button presses, but with the current setup, those cannot be caught either.
The added load on the system by having these 1 second timeouts should be neglectible.

A.

Dimmen von Gruppen nicht möglich nach Update auf 1.0.1

Ich habe gerade das Update auf die Version 1.0.1 durchgeführt.
Das Dimmen von Gruppen ist nun nicht mehr möglich.
Wenn ich einen ...bri Datenpunkt ändere werden die Lampen nicht gedimmt. Das dimmen der Lampen einzeln über den jeweiligen solo Datenpunkt .bri ist möglich.
Wenn ich die Lampen in der Phoscon APP dimme wird auch nicht der korrekte Wert in ioBroker angezeigt.

States preserve old value

I use deconz gateway v2.0.5.28 and have a xiaomi motion sensor connected to the gateway.
The motion sensor works as expected, when motion is detected, states in deconz and iobroker are updated accordingly. Unfortunately this isnt the case for lightlevel and lux which the sensor provides. The value is updated in deconz, but the update isnt reflected in iobroker.

As you can see by the timestamp, the state for presence is updated while the lux state is not. I have testes this with a longer timeframe than just a few minutes, the state hasnt changed over 24 hours with significant changes in deconz for lux value. These screenshots are just from my last test before opening this issue.

https://pasteboard.co/Hosrz1P.png
https://pasteboard.co/HosuWaM.png

Is there any way to update all states, when an update in deconz occurs?

Anfängerfragen

Wie kann ich ein Device löschen? In der Phoscon App geht es ohne Probleme. Wenn ich ihn aber über den ioBroker lösche, kommt folgende Meldung: "
deconz.0 | 2019-05-09 11:32:54.090 | info | Delete light with ID: 6 Code 404: Ressource not found

Wird der Vibrationssensor von XIAOMI unterstützt? Bei mir legt er nur 2 Devices an, aber nichts mit objects for "tiltangle", "vibration", "vibrationstrength" and "orientation"

Trådfri schaltet bei iobroker-Neustart - Bug?

Hallo.
Ich habe hier 12 Trådfri-Zwischenstecker im System.
Zwei von denen schalten sich an und eine aus, wenn ich ioBroker neu starte.
Das ist unabhängig davon, ob die Stecker vorher an- oder ausgeschaltet waren.

Es ist definitiv der deconz-Adapter, nicht die Phoscon-App die die Schaltung vornimmt.
Der Schaltvorgang ist beim booten der Raspberry in der log. ersichtlich.

An in-range update of mocha is breaking the build 🚨

The devDependency mocha was updated from 6.0.2 to 6.1.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v6.1.0

6.1.0 / 2019-04-07

🔒 Security Fixes

  • #3845: Update dependency "js-yaml" to v3.13.0 per npm security advisory (@plroebuck)

🎉 Enhancements

  • #3766: Make reporter constructor support optional options parameter (@plroebuck)
  • #3760: Add support for config files with .jsonc extension (@sstephant)

📠 Deprecations

These are soft-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:

🐛 Fixes

  • #3829: Use cwd-relative pathname to load config file (@plroebuck)
  • #3745: Fix async calls of this.skip() in "before each" hooks (@juergba)
  • #3669: Enable --allow-uncaught for uncaught exceptions thrown inside hooks (@givanse)

and some regressions:

📖 Documentation

🔩 Other

  • #3830: Replace dependency "findup-sync" with "find-up" for faster startup (@cspotcode)
  • #3799: Update devDependencies to fix many npm vulnerabilities (@XhmikosR)
Commits

The new version differs by 28 commits.

  • f4fc95a Release v6.1.0
  • bd29dbd update CHANGELOG for v6.1.0 [ci skip]
  • aaf2b72 Use cwd-relative pathname to load config file (#3829)
  • b079d24 upgrade deps as per npm audit fix; closes #3854
  • e87c689 Deprecate this.skip() for "after all" hooks (#3719)
  • 81cfa90 Copy Suite property "root" when cloning; closes #3847 (#3848)
  • 8aa2fc4 Fix issue 3714, hide pound icon showing on hover header on docs page (#3850)
  • 586bf78 Update JS-YAML to address security issue (#3845)
  • d1024a3 Update doc examples "tests.html" (#3811)
  • 1d570e0 Delete "/docs/example/chai.js"
  • ade8b90 runner.js: "self.test" undefined in Browser (#3835)
  • 0098147 Replace findup-sync with find-up for faster startup (#3830)
  • d5ba121 Remove "package" flag from sample config file because it can only be passes as CLI arg (#3793)
  • a3089ad update package-lock
  • 75430ec Upgrade yargs-parser dependency to avoid loading 2 copies of yargs

There are 28 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Group one Sensor with multiple sensor IDs to one object

Is it possible to group one sensor to one folder in ioBroker objects? Many values like battery, reachable and so on are holded multiple times for the same sensor. Would be better to handle when they would be grouped in ioBroker even when deconz api split them in multiple devices. You could use the Sensor Name as Identifier. Maybe with an adapter option where u can decide the object behaviour?!
grafik
Don't get me wrong, the adapter is nice and it worked this way too, but with many sensors it is much nicer to handle. In the zigbee Adapter it worked like that for example.

Version 1.0.2 Dimmen von Gruppen

Das Dimmen von Gruppen über den Adapter ist wieder möglich.
Wenn eine Änderung über die Phoscon APP durchgeführt wird, dann wird diese Änderung nicht nach ioBroker übertragen. Wenn die Lampe aus und wieder ein geschaltet wird stimmt der aktuelle Dimmwert.

Ghost clicks on Aqara switch (lumi.sensor_switch.aq2)

Hi,

in the function getSensor the adapter is generating ghost clicks by updating the buttonevent (due to the fact the function getSensor is called on websocket messages and these are also used to report temperature/battery). In order to avoid this I added this to the case buttonevent:

                        case 'buttonevent':
                            adapter.setObjectNotExists(`Sensor_${sensorId}` + '.' + stateName, {
                                type: 'state',
                                common: {
                                    name: list['name'] + ' ' + stateName,
                                    type: 'number',
                                    role: 'state',
                                    read: true,
                                    write: false
                                },
                                native: {}
                            });
                                 if (stateName == 'buttonevent' && list['modelid'] == 'lumi.sensor_switch.aq2') {
                                      //paalap: new
                                      let LastUpdate = Number(new Date(list['state']['lastupdated']));
                                      let Now = Number(new Date().getTime());
                                      let dateoff = new Date();
                                      let TimeOffset = dateoff.getTimezoneOffset() * 60000;

                                      if ((Now - LastUpdate + TimeOffset) < 2000) {
                                      adapter.setState(`Sensor_${sensorId}` + '.' + stateName, {val: list['state'][stateName], ack: true});
                                      //adapter.log.debug('buttonevent updated, time diff: ' + ((Now - LastUpdate + TimeOffset)/1000) + 'sec update to now');
                                      } else {
                                           adapter.log.info('buttonevent NOT updated for ' + list['name'] + ', too old: ' + ((Now - LastUpdate + TimeOffset)/1000) + 'sec time difference update to now');
                                      };
                                 } else {
                                       adapter.setState(`Sensor_${sensorId}` + '.' + stateName, {val: list['state'][stateName], ack: true});
                                 }
                                 //paalap: instead of 
                                //adapter.setState(`Sensor_${sensorId}` + '.' + stateName, {val: list['state'][stateName], ack: true});
                            break;

May be this could be included in similar form to the code :)

sending more than one value will reset the first one

If you send e.g. two new values to a light the first one is reverted.

Assume you;d to switch the color temp and the level inside a script.

setState('deconz.0.Lights.6.bri', bri, false); setState('deconz.0.Lights.6.ct', ct, false);

The lamp will inc the level for a few millisec an then fall back to the original value. This will also happend if the second setState will be inside the callback.

Volker

Battery status

Please add battery status for battery operated device.

lastupdated zeit ist falsch

Irgendwie wird der Wert meiner Sensoren "lastupdated" immer in UTC (Universal Time) erzeugt.
Die eingestellte Local-Time wäre hier der bessere Wert.

Im Phosconapp ist die Uhrzeit die richtige (local-time).
Andere Trigger von anderen Adaptern laufen auch mit der richtigen Zeit (local-time).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.