treban / pimatic-raspbee Goto Github PK
View Code? Open in Web Editor NEWThis plugin provides a raspbee interface for pimatic.
License: GNU General Public License v2.0
This plugin provides a raspbee interface for pimatic.
License: GNU General Public License v2.0
Hi @treban
just a little hint, the link to download deconz for raspberry seems not any longer correct.
Just found that this seems to be the right one:
wget http://deconz.dresden-elektronik.de/raspbian/deconz-latest.deb
Cheers
Pedder
Havent used the plug-in het since i have no Raspbee yet, but it would be nice to use a battery icon instead of a value. See my pimatic-aqara plugin. https://github.com/sweebee/pimatic-aqara/blob/master/aqara.coffee#L156
Hi Treban,
the color temperature for RGB (tradfri rgb bulb) doesnt work.
for example:
setCT?colorCode=81
or via the frontend slider for color temperature.
cany you fix this?
Hello Treban,
i have an issue where the deconz webinterface changes the status of the different sensors nearly immeditly, but on the pimatic side there is no change or it is very slow. Is this a problem on the websocket from the deconz software or on pimatic side?
two Screenshots from the both frontends. First one shot was the deconz and after that pimatic.
Hi,
if the API Key was entered in the gui. It gets replaced with "[object Object]" (after restart) and I can't discover my devices.
from "ed vrijmoet":
I have a problem with temperature offset on my multisensors.
only possible value is in INT format witch means I can not input 1.5 or any other value with a decimal without an error but the values displayed in pimatic on some sensors do have 2 decimal numbers in it.
I would like to fine tune these sensors by offsetting also with a value with a + or - X.XX witch would be a NUMBER not an INT
is this possible in a future version.
error [pimatic]: Invalid config of device “raspbee_00158d0002a37121”: Property “#/temperatureOffset” Should have type integer, was: number in /temperatureOffset
error [pimatic]: Invalid config of device "id-raspbee_remote_control": Property "buttons" is not a valid property
I can't change the temperature/color in rules right? Would be nice to be able to do this.
Would be even nicer to set the temperature based on kelvin like 2300 or 3000
I've tested two of the new Smart Plugs (lumi.plug.mmeu01) with the plugin.
If I switch them I get serios errors in pimatic:
error [pimatic]: An uncaught exception occurred: TypeError: Cannot read property 'on' of undefined at RaspBeeSwitch.parseEvent (/usr/local/pimatic-app/node_modules/pimatic-raspbee/raspbee.coffee:934:29) at RaspBeePlugin.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic-raspbee/raspbee.coffee:918:12) at RaspBeePlugin.emit (events.js:203:15) at RaspBeeConnection.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic-raspbee/raspbee.coffee:252:10) at RaspBeeConnection.emit (events.js:198:13) at WebSocket.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic-raspbee/raspbee-connector.coffee:65:14) at WebSocket.emit (events.js:198:13) at Receiver.receiverOnMessage (/usr/local/pimatic-app/node_modules/pimatic-raspbee/node_modules/ws/lib/websocket.js:720:20) at Receiver.emit (events.js:198:13) at Receiver.dataMessage (/usr/local/pimatic-app/node_modules/pimatic-raspbee/node_modules/ws/lib/receiver.js:414:14) at Receiver.getData (/usr/local/pimatic-app/node_modules/pimatic-raspbee/node_modules/ws/lib/receiver.js:346:17) at Receiver.startLoop (/usr/local/pimatic-app/node_modules/pimatic-raspbee/node_modules/ws/lib/receiver.js:133:22) at Receiver._write (/usr/local/pimatic-app/node_modules/pimatic-raspbee/node_modules/ws/lib/receiver.js:69:10) at doWrite (_stream_writable.js:415:12) at writeOrBuffer (_stream_writable.js:399:5) at Receiver.Writable.write (_stream_writable.js:299:11) at Socket.socketOnData (/usr/local/pimatic-app/node_modules/pimatic-raspbee/node_modules/ws/lib/websocket.js:795:35) at Socket.emit (events.js:198:13) at Socket.emit (/usr/local/pimatic-app/node_modules/pimatic/startup.coffee:64:24) at addChunk (_stream_readable.js:288:12) at readableAddChunk (_stream_readable.js:269:11) at Socket.Readable.push (_stream_readable.js:224:10) at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17) This is most probably a bug in pimatic or in a module, please report it!
I've tested different things, but nothing works. This error occurs if I switch via pimatic or via the deconz GUI/phoscon app.
The device is included via automated discovery and it has the correct IDs (so in general it works. The additional Power Sensor in this switch is working flawless in pimatic)
Also there is created a 'Presence' circle in the GUI which never changes to 'full' / present.
the same happens with a Osram Smart + Switch. So I guess that the main 'on/off' attribute from these zigbee devices isn't working.
All releases are on the last version (pimatic and plugins). The deconz II adapter / deconz has also the latest release (2.05.78)
tested on two different pimatic installations: same behavior.
Something seems to be missing in the RaspbeeSwitch device schema. I also tried the RasbeeSwitchSensor but this didn't work at all.
i get some errors with the new version of deconz.
[pimatic] error: An uncaught exception occurred: TypeError: Cannot read property 'ct' of undefined
and I often get a reconnect.
The plugin needs an modification for the new version. I will release this soon.
Currently the backup archive is named just deCONZ-backup.tar.gz. Would be great to extend the current naming by "_YYYYMMDD" -> deCONZ-backup_20191102.tar.gz
My aqara wall switches are correctly connected to deconz
When I do auto discovery they appear on pimatic but with no default device type.
I've tried them all, using the type for lights, the on off status is updated in pimatic when I press the phisical button, but if I change from UI the phisical switch does not change status (is still off ie)
Edit: I can't use the plugin and I'm using shellswitches to call directly the api :(
17:40:23.578 [pimatic-raspbee] { e: 'added',
17:40:23.578 [pimatic-raspbee]> id: '7',
17:40:23.578 [pimatic-raspbee]> r: 'lights',
17:40:23.578 [pimatic-raspbee]> t: 'event',
17:40:23.578 [pimatic-raspbee]> uniqueid: '84:18:26:00:00:0e:7c:34-03' }
17:40:23.578 [pimatic-raspbee] new device paired!
17:40:23.581 [pimatic] An uncaught exception occurred: TypeError: Cannot read property 'name' of undefined
17:40:23.581 [pimatic]> at RaspBeeSystem.parseEvent (/opt/pimatic-docker/node_modules/pimatic-raspbee/raspbee.coffee:1564:44)
hi treban,
could you contact michbeck100 some time and ask him how to implement color support for his plugin?
he can add now dimmer templates but then its just possible to switch bulbs and change brightness.
michbeck100/pimatic-hap#80 (comment)
thank you
I bought a new aqara smart plug (not the wall interated plug but the smart plug) and I have it on my deconz rest api but the raspbee plugin does only detect the plugin as a sensor (without proposing any type) and does not detect the switch
Hello,
currently i have a strange issuee, thought this was working a time ago.
When i switch light off in Pimatic (was 70%) and switch on again it restores to 1%.
Same is working in the phoscon app without problems.
Is this a configuration issue?
Hi treban, I hope you are well.
as I mentioned in a earlier post, I will ask you some time for support of the Euronics Thermostat.
I got this winter done with some dummy shell devices + some other tweaks and the euronics thermostat is a great pice of hardware.
if you find time in 2020 you could bring support for this device.
curl -s -X GET http://127.0.0.1:8009/api/xxx/sensors/41
{"config":{"battery":35,"displayflipped":null,"heatsetpoint":500,"locked":false,"mode":"auto","offset":0,"on":true,"reachable":true},"ep":1,"etag":"0479f677541db84e968957f337c0a1df","manufacturername":"Eurotronic","modelid":"SPZB0001","name":"SPZB0001","state":{"lastupdated":"2020-03-09T06:15:09","on":false,"temperature":1638,"valve":0},"swversion":"20190408","type":"ZHAThermostat","uniqueid":"00:15:8d:00:01:92:dc:21-01-0201"}
important features are:
nice to have features are imo:
greetings
Groups should have the same functions as the lights.
please fix/replace in:
"/home/pi/pimatic-app/node_modules/pimatic-raspbee"
"/home/pi/pimatic-app/node_modules/device-config-schema.coffee"
Consumtion to Consumption
and
consumtion to consumption
thaaaaank you!
in the dashboard everything is as aspected open=open und close=close,
but when it comes to rules open means close and vice versa
Would be nice to get support for this Aqara 6 button wall switch?
Device discovery doesn’t find the right class (empty), and when settings to RaspbeeMotionSensor it doesn’t work.
When i have the scene_rasbee in one of my pages i have a critical exception in the browser frontend.
i think its due the value of "this.buttonAttr.value" is empty and the mobile frontend cant handle this.
if you need any further information, please contact me.
Hi the multi sensor works with contact, motion, temp+humidity and gyro sensors, but there is a tiny issue with the motion sensor.
the variable presence is listet in variables and it shows the correct state and I can set up rules like PIR-Paradies2 is present
but the presence state in the dashboard is broken. it doesnt react. see my picture
Hi, after the 0.1.7 worked with deconz 2.5.77 / 2.5.78, I tried to use updated deconz Version 2.5.81 because there are some major issues fixed.
Unfortunaly, I get the same error again as before the fix with 0.1.7 (see issue #47 ):
But also followed by a lost of websocket error (see error at the bottom)
14:16:11.653 [pimatic] error: An uncaught exception occurred: TypeError: Cannot read property 'on' of undefined 14:16:11.653 [pimatic] error:> at RaspBeeSwitch.parseEvent (/usr/local/pimatic-app/node_modules/pimatic-raspbee/raspbee.coffee:934:29) 14:16:11.653 [pimatic] error:> at RaspBeePlugin. (/usr/local/pimatic-app/node_modules/pimatic-raspbee/raspbee.coffee:918:12) 14:16:11.653 [pimatic] error:> at RaspBeePlugin.emit (events.js:203:15) 14:16:11.653 [pimatic] error:> at RaspBeeConnection. (/usr/local/pimatic-app/node_modules/pimatic-raspbee/raspbee.coffee:252:10) 14:16:11.653 [pimatic] error:> at RaspBeeConnection.emit (events.js:198:13) 14:16:11.653 [pimatic] error:> at WebSocket. (/usr/local/pimatic-app/node_modules/pimatic-raspbee/raspbee-connector.coffee:65:14) 14:16:11.653 [pimatic] error:> at WebSocket.emit (events.js:198:13) 14:16:11.653 [pimatic] error:> at Receiver.receiverOnMessage (/usr/local/pimatic-app/node_modules/pimatic-raspbee/node_modules/ws/lib/websocket.js:720:20) 14:16:11.653 [pimatic] error:> at Receiver.emit (events.js:198:13) 14:16:11.653 [pimatic] error:> at Receiver.dataMessage (/usr/local/pimatic-app/node_modules/pimatic-raspbee/node_modules/ws/lib/receiver.js:414:14) 14:16:11.653 [pimatic] error:> at Receiver.getData (/usr/local/pimatic-app/node_modules/pimatic-raspbee/node_modules/ws/lib/receiver.js:346:17) 14:16:11.653 [pimatic] error:> at Receiver.startLoop (/usr/local/pimatic-app/node_modules/pimatic-raspbee/node_modules/ws/lib/receiver.js:133:22) 14:16:11.653 [pimatic] error:> at Receiver._write (/usr/local/pimatic-app/node_modules/pimatic-raspbee/node_modules/ws/lib/receiver.js:69:10) 14:16:11.653 [pimatic] error:> at doWrite (_stream_writable.js:415:12) 14:16:11.653 [pimatic] error:> at writeOrBuffer (_stream_writable.js:399:5) 14:16:11.653 [pimatic] error:> at Receiver.Writable.write (_stream_writable.js:299:11) 14:16:11.653 [pimatic] error:> at Socket.socketOnData (/usr/local/pimatic-app/node_modules/pimatic-raspbee/node_modules/ws/lib/websocket.js:795:35) 14:16:11.653 [pimatic] error:> at Socket.emit (events.js:198:13) 14:16:11.653 [pimatic] error:> at Socket.emit (/usr/local/pimatic-app/node_modules/pimatic/startup.coffee:64:24) 14:16:11.653 [pimatic] error:> at addChunk (_stream_readable.js:288:12) 14:16:11.653 [pimatic] error:> at readableAddChunk (_stream_readable.js:269:11) 14:16:11.653 [pimatic] error:> at Socket.Readable.push (_stream_readable.js:224:10) 14:16:11.653 [pimatic] error:> at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17) 14:16:11.653 [pimatic] error:> This is most probably a bug in pimatic or in a module, please report it! 14:16:11.659 [pimatic] warn: Keeping pimatic alive, but could be in an undefined state, please restart pimatic as soon as possible!
`14:34:16.197 [pimatic-raspbee] error: websocket keep alive error, try to reconnect
14:34:16.232 [pimatic-raspbee] info: Connection establised
14:34:16.235 [pimatic-raspbee] info: Name Phoscon-GW
14:34:16.237 [pimatic-raspbee] info: API 1.16.0
14:34:16.239 [pimatic-raspbee] info: Software Version 2.5.81
14:34:16.241 [pimatic-raspbee] info: API key valid
14:34:16.280 [pimatic-raspbee] info: Event receiver connected.
``
I have several buttons like:
magic single button
single wall switch
double wall switch
magic cube
they all appear as the Ikea remote, and I can't do anything with them.
Hello,
i cant press the Button in a rule of the GroupScene Button Device.
any advice?
When a rule with action "activate group scene Essen" is created, a error Message is displayed:
"error [pimatic]: devices is not defined"
Rule elements are suggested by pimatic auto-suggestion
color picker gets always reset to default after refresh or reopen the UI.
Hi Kosta!
Maybe you remember my comment:
#17 (comment)
In rules, I can fix this by adding a delay for the 2nd part "change color", but sometimes and I don't know why, pimatic throw errors anyway.
maybe you can change the behavior of the raspbee plugin how to interact with turned off lights when you change the color first.
you can reproduce this easily by changing color OR color temp of a turned off light and the you get:
if you try this in deconz, deconz will turn on the light automatically and change the color.
this already worked with the hue-zll plugin.
yes, I think we can live with that behavior, but if you know what's wrong and its not a big deal, you can fix this in a future update.
thank you
Support for new ikea blinds.
especially for the tradfri blinds
hi! me again :)
can you add some time resource types "valve" and "heatsetpoint"?
valve is just a read value (no angle) 0-255 for position.
heatsetpoint is a value from 500-3000 (5,00°C-30,00°C).
it would be nice if you could divide heatsetpoint by 100 and if its possible to create a input.
my workaround for valve is shell sensor:
curl -s -X GET http://127.0.0.1:8009/api/A7D65FD/sensors/41 | grep -o -P '(?<=valve":).*?(?=})'
or in %
echo $(curl -s -X GET http://127.0.0.1:8009/api/A7D65FD443/sensors/41 | grep -o -P '(?<=valve":).*?(?=})')*100/255 | bc -l
for heatsetpoint I use a dummyheatingthermostat for input, a rule to write a variable (dummyheatingthermostat °C * 100), a 2nd rule to write the heatsetpoint
curl -s -H 'Content-Type: application/json' -X PUT -d '\{\"heatsetpoint\": $tempvar\}' http://127.0.0.1:8009/api/A7D65FD/sensors/41/config
and two additional rules to prevent value inputs <5 and >30.
this is btw the output from the thermostat:
curl -s -X GET http://127.0.0.1:8009/api/A7D65FD/sensors/41
{"config":{"battery":75,"displayflipped":null,"heatsetpoint":500,"locked":null,"mode":"auto","offset":0,"on":true,"reachable":true},"ep":1,"etag":"459b89fdc44f400b62ac7e6a92adef4f","manufacturername":"Eurotronic","modelid":"SPZB0001","name":"SPZB0001","state":{"lastupdated":"2019-10-18T06:11:52","on":false,"temperature":1594,"valve":0},"swversion":"20190408","type":"ZHAThermostat","uniqueid":"00:15:8d:00:01:92:dc:21-01-0201"}
thank you!
OT: I can't 100% recommend this thermostat. the hardware seems to work well. but the integration in deconz is not finished. you need the desktop gui to add the device and after that its not shown in the webapp. the rest-api is a mandatory. dresden-elektronik/deconz-rest-plugin#1098
dim lights slowly
Implement sensor devices
see
Can see the consumption sensor on device discovery, but can't add it correctly.
Power consumption is not official supported but from Innr but deconz read the value.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.