Comments (8)
pimatic-hap supports for type of sensors only specific attributes: https://github.com/michbeck100/pimatic-hap/blob/master/accessories/genericsensor.coffee#L14
As far as I can tell for RFLinkData the attributes have the wrong names. I would suggest you ask the pimatic-rflink developers to change the attribute names, because these names are not aligned with the commonly used attributes from pimatic.
For ShellSensor the same applies, but I believe that you can specify the attribute names using the config. So if you define an attribute e.g. temperature it should work.
from pimatic-hap.
And please ignore the service selection in the config. this applies only to lights and switches. Unfortunately its not possible to hide it programmatically.
from pimatic-hap.
Thank you very much for your answers. I will report to pimatic-rflink. For ShellSensor I got it working by changing the attributeName from "temp" to "temperature". But after I made the change, it was not reported to Homekit. I had to restart pimatic, then the device were shown. Is this a normal behavior?
from pimatic-hap.
Is this a normal behavior?
At least it implemented that way. So yes this is normal behaviour.
from pimatic-hap.
I did additional tests:
- using DummyTemperatureSensor. It seems that it also uses "temp" instead of "temperature" internally. The sensor is shown in Homekit (Eve), but without values. Is this also an issue with the plugin itself?
- VariablesDevice (assign value of other sensor):
it works in pimatic:
But when pimatic-hap tries to get the value the following error is fired:
error [pimatic-hap]: Could not call promise: Could not parse expression
from pimatic-hap.
For me it looks like DummyTemperatureSensor uses temperature
: https://github.com/pimatic/pimatic/blob/master/lib/devices.coffee#L1112
This is one of the reasons that pimatic-hap uses temperature
, too.
Regarding the VariablesDevice: please post the parts of your config to reproduce this error.
from pimatic-hap.
I did another test with DummyTemperatureSensor and a Variable "temp_aussen" which I added, but the issue is the same. Here are the parts of the config:
`
Variables:
"variables": [
{
"name": "temp_aussen",
"value": 0
}
]
Devices:
{
"variables": [
{
"name": "temperature",
"expression": "$temp_aussen",
"type": "number"
}
],
"xAttributeOptions": [],
"hap": {
"service": "Lightbulb"
},
"id": "temp-aussen-variable",
"name": "temp-Aussen-Variable",
"class": "VariablesDevice"
}
rule (sets variable value from real sensor):
{
"id": "temp-dummy",
"name": "Temp Temp Dummy",
"rule": "when $temp-aussen-F007_TH.temp gets updated then $temp_aussen to $temp-aussen-F007_TH.temp",
"active": true,
"logging": true
}
`
error [pimatic-hap]: Could not call promise: Could not parse expression
I'm using hap 0.11.1. I know that it is not the current version but I do not see in the Changelog anything related to the issue. I'm still on 0.11.1 because of other dependencies to node 4.6.2
from pimatic-hap.
Strange, but after a restart of pimatic my test above runs fine
from pimatic-hap.
Related Issues (20)
- uncaught exception related to pimatic-hap HOT 1
- Deleting device in Pimatic doesn't seem to delete it also in Homekit HOT 13
- Change garage doors to windows shades HOT 4
- Q: Does pimatic-hap plugin require node.js 4.3 to run? HOT 2
- Q: Does this work on iOS 9 using Eve? HOT 2
- error [pimatic]: A uncaught exception occured: Error: dns service error: unknown HOT 1
- accessories/milight.coffee line 24 contains incorrect method name HOT 1
- Cannot find module 'hap-nodejs/node_modules/debug' HOT 2
- Feature request: Tradfri integration (color change) HOT 5
- uncaught exception HOT 4
- Does not work 100% on iOS 11 HOT 9
- [Feature request] Please support Netatmo rain and wind gauge HOT 1
- Error when pressing TradfriPlug switch in homekit on iPhone HOT 7
- dockerized pimatic HOT 4
- add raspbee lights to the supported template list HOT 25
- promise.then(...).catch(...).done is not a function HOT 10
- v0.12.0 - plugin does not start HOT 6
- Support for RaspBeeMultiDevice (Aqara door/window sensors) HOT 2
- [pimatic] error: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pimatic-hap.