treban / pimatic-raspbee

This plugin provides a raspbee interface for pimatic.
GNU General Public License v2.0
5 stars 5 forks source link

color support for pimatic-hap #30

Closed 00lex closed 5 years ago

00lex commented 5 years ago

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.

https://github.com/michbeck100/pimatic-hap/issues/80#issuecomment-502968600

thank you

treban commented 5 years ago

i have reviewed it and small adjustments are necessary.

treban commented 5 years ago

@00lex Version 0.0.11-beta.10 supports now HAP Integration

please install the beta and change the accessory to test it

https://github.com/michbeck100/pimatic-hap/blob/master/hap.coffee#L60 'raspbee-dimmer': DimmerAccessory 'raspbee-ct': DimmerAccessory 'raspbee-rgb': HueLightAccessory

00lex commented 5 years ago

it makes no difference in the latest beta. the results are the same. 'raspbee-rgb': HueLightAccessory = 'raspbee-rgb': DimmerAccessory in hap.coffee


I like what you want to do with sensors to collect them to a multi sensor but there is a big issue. they dont match the pimatic logic anymore. that means sensors are not sensors and I can't write rules like if PIR is present because there is no PIR in my setup anymore. instead I would need to realize everything with variables like if $pir.motion = true

i don't know if this helps but the variable of PIR in your last release for PIR was $pir.presence; in this beta its $pir.motion

treban commented 5 years ago

@00lex thanks for testing. i only rarely have iOS test hardware available. Last weekend a Tradfri RGB lamp was successfully integrated. I will check it again.

The build-in PredicateProvider uses the attribut name to select the devices. "state" "presence" "contact"

I will review the Multidevice to preserve this predefined attributes.
Thx for the hint!

00lex commented 5 years ago

Hey Everyone! If you are rich and like trebans plugin, send him testhardware! iOS devices and everything with Zigbee radio

treban commented 5 years ago

Version 0.1.0 released: hap support with color is implemented and can be activated in the hap plugin. i will rise a pull request for full integration

00lex commented 5 years ago

https://github.com/michbeck100/pimatic-hap/issues/80#issuecomment-511399426