Giter Club home page Giter Club logo

pimatic-raspbee's People

Contributors

mwittig avatar sweebee avatar treban avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pimatic-raspbee's Issues

Deconz and Pimatic are not in sync

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.

http://prntscr.com/jmt6dy

http://prntscr.com/jmt67z

API Key

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.

Change attribute offset of devices to float

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

Support for ct/rgb rules

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

Error with Xiaomi Smart Plugs

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.

Some errors with deconz version 2.5.78

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.

Aqara wall switches can't be controlled only viewed

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 :(

Device Scan not working ?

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)

Aqara smart plug is not detected as plug/switch/light

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

Off Dimlevel / Color restore doesnt work

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?

Support for Euronics Thermostat

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:

  • set heatsetpoint from 500-3000 (5°C - 30°C). other values are NOK
  • get battery state

nice to have features are imo:

  • get valve position: min: 0, max: 255 and some math to get percent 0-100%

greetings

smal fix: consumtion >> consumption

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!

Contact Sensor v1.0

in the dashboard everything is as aspected open=open und close=close,
but when it comes to rules open means close and vice versa

Motion Presence v1.0

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

dashboard:
Bildschirmfoto 2019-07-15 um 14 56 11

variable:
Bildschirmfoto 2019-07-15 um 14 57 37

Error again with deconz Version 2.5.8x

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.
``

Support for Xiaomi aqara buttons

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.

Color Picker Update

color picker gets always reset to default after refresh or reopen the UI.

device XYZ is not modifiable. Device is set to off

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:
Bildschirmfoto 2019-08-18 um 12 32 55

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 blinds

Support for new ikea blinds.

  • devices recognition
  • GUI modifications

especially for the tradfri blinds

Thermostat (Eurotronic) resource types

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

pimatic-raspbee just shows the temperature:
Bildschirmfoto 2019-10-18 um 08 48 59

Support for Innr Plug Power Consumption

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.

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.