anthonywebb / homebridge-cbus

CBus plugin for homebridge
MIT License
35 stars 20 forks source link

Not really an issue more a request #73

Open RickHOZ opened 6 years ago

RickHOZ commented 6 years ago

Hi Anthony,

I have a scene in my lounge room which controls a number of lights that ramp up and dim again to display some ornaments. Currently, im trying to work out how to control these and turn them on and off using homebridge and cbus. I just can't seem to control them. Any ideas. ?

I have copied and pasted the terminal log of what occurs when i turn it on using my Colour C-touch screen.

Hope this helps and would appreciate any assistance.

Rick

cbus:client sent command '[197] ramp //SAMARA/254/202/4 100% # setOn (on)' +5s cbus:client rx response { commandId: 197, code: 402, matched: false, processed: false, type: 'response', raw: '[197] 402 Operation not supported by: //SAMARA/254/202/4 (Method ramp not found)' } +1ms cbus:client matched request '[197] ramp //SAMARA/254/202/4 100% # setOn (on)' with response '[197] 402 Operation not supported by: //SAMARA/254/202/4 (Method ramp not found)' (0 pending requests) +0ms cbus:client sent command '[198] ramp //SAMARA/254/202/4 0% # setOn (off)' +21s cbus:client rx response { commandId: 198, code: 402, matched: false, processed: false, type: 'response', raw: '[198] 402 Operation not supported by: //SAMARA/254/202/4 (Method ramp not found)' } +1ms cbus:client matched request '[198] ramp //SAMARA/254/202/4 0% # setOn (off)' with response '[198] 402 Operation not supported by: //SAMARA/254/202/4 (Method ramp not found)' (0 pending requests) +0ms cbus:client rx event { time: '20171029-170912', code: 730, processed: true, netId: //SAMARA/254/56/26, level: 30, sourceunit: 10, ramptime: 8, type: 'event', raw: '#e# 20171029-170912 730 //SAMARA/254/56/26 dda39190-9e88-1035-8b22-e475dc0f8f60 new level=76 sourceunit=10 ramptime=8' } +33s cbus:client rx event { time: '20171029-170913', code: 730, processed: true, netId: //SAMARA/254/56/87, level: 100, sourceunit: 10, ramptime: 0, type: 'event', raw: '#e# 20171029-170913 730 //SAMARA/254/56/87 ddb14d30-9e88-1035-8b7c-e475dc0f8f60 new level=255 sourceunit=10 ramptime=0' } +690ms cbus:client rx event { time: '20171029-170918', code: 730, processed: true, netId: //SAMARA/254/56/112, level: 95, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-170918 730 //SAMARA/254/56/112 dd94eb90-9e88-1035-8b9c-e475dc0f8f60 new level=242 sourceunit=10 ramptime=12' } +5s cbus:client rx event { time: '20171029-170918', code: 730, processed: true, netId: //SAMARA/254/56/113, level: 5, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-170918 730 //SAMARA/254/56/113 dd9512a0-9e88-1035-8b9d-e475dc0f8f60 new level=12 sourceunit=10 ramptime=12' } +2ms cbus:client rx event { time: '20171029-170934', code: 730, processed: true, netId: //SAMARA/254/56/112, level: 5, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-170934 730 //SAMARA/254/56/112 dd94eb90-9e88-1035-8b9c-e475dc0f8f60 new level=12 sourceunit=10 ramptime=12' } +16s cbus:client rx event { time: '20171029-170934', code: 730, processed: true, netId: //SAMARA/254/56/113, level: 95, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-170934 730 //SAMARA/254/56/113 dd9512a0-9e88-1035-8b9d-e475dc0f8f60 new level=242 sourceunit=10 ramptime=12' } +2ms cbus:client rx event { time: '20171029-170948', code: 730, processed: true, netId: //SAMARA/254/56/112, level: 95, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-170948 730 //SAMARA/254/56/112 dd94eb90-9e88-1035-8b9c-e475dc0f8f60 new level=242 sourceunit=10 ramptime=12' } +14s cbus:client rx event { time: '20171029-170948', code: 730, processed: true, netId: //SAMARA/254/56/113, level: 5, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-170948 730 //SAMARA/254/56/113 dd9512a0-9e88-1035-8b9d-e475dc0f8f60 new level=12 sourceunit=10 ramptime=12' } +1ms cbus:client rx event { time: '20171029-171004', code: 730, processed: true, netId: //SAMARA/254/56/112, level: 5, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171004 730 //SAMARA/254/56/112 dd94eb90-9e88-1035-8b9c-e475dc0f8f60 new level=12 sourceunit=10 ramptime=12' } +16s cbus:client rx event { time: '20171029-171004', code: 730, processed: true, netId: //SAMARA/254/56/113, level: 95, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171004 730 //SAMARA/254/56/113 dd9512a0-9e88-1035-8b9d-e475dc0f8f60 new level=242 sourceunit=10 ramptime=12' } +1ms cbus:client rx event { time: '20171029-171018', code: 730, processed: true, netId: //SAMARA/254/56/112, level: 95, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171018 730 //SAMARA/254/56/112 dd94eb90-9e88-1035-8b9c-e475dc0f8f60 new level=242 sourceunit=10 ramptime=12' } +14s cbus:client rx event { time: '20171029-171018', code: 730, processed: true, netId: //SAMARA/254/56/113, level: 5, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171018 730 //SAMARA/254/56/113 dd9512a0-9e88-1035-8b9d-e475dc0f8f60 new level=12 sourceunit=10 ramptime=12' } +1ms cbus:client rx event { time: '20171029-171034', code: 730, processed: true, netId: //SAMARA/254/56/112, level: 5, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171034 730 //SAMARA/254/56/112 dd94eb90-9e88-1035-8b9c-e475dc0f8f60 new level=12 sourceunit=10 ramptime=12' } +16s cbus:client rx event { time: '20171029-171034', code: 730, processed: true, netId: //SAMARA/254/56/113, level: 95, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171034 730 //SAMARA/254/56/113 dd9512a0-9e88-1035-8b9d-e475dc0f8f60 new level=242 sourceunit=10 ramptime=12' } +1ms cbus:client rx event { time: '20171029-171048', code: 730, processed: true, netId: //SAMARA/254/56/112, level: 95, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171048 730 //SAMARA/254/56/112 dd94eb90-9e88-1035-8b9c-e475dc0f8f60 new level=242 sourceunit=10 ramptime=12' } +14s cbus:client rx event { time: '20171029-171048', code: 730, processed: true, netId: //SAMARA/254/56/113, level: 5, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171048 730 //SAMARA/254/56/113 dd9512a0-9e88-1035-8b9d-e475dc0f8f60 new level=12 sourceunit=10 ramptime=12' } +1ms cbus:client rx event { time: '20171029-171104', code: 730, processed: true, netId: //SAMARA/254/56/112, level: 5, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171104 730 //SAMARA/254/56/112 dd94eb90-9e88-1035-8b9c-e475dc0f8f60 new level=12 sourceunit=10 ramptime=12' } +16s cbus:client rx event { time: '20171029-171104', code: 730, processed: true, netId: //SAMARA/254/56/113, level: 95, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171104 730 //SAMARA/254/56/113 dd9512a0-9e88-1035-8b9d-e475dc0f8f60 new level=242 sourceunit=10 ramptime=12' } +1ms cbus:client rx event { time: '20171029-171118', code: 730, processed: true, netId: //SAMARA/254/56/112, level: 95, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171118 730 //SAMARA/254/56/112 dd94eb90-9e88-1035-8b9c-e475dc0f8f60 new level=242 sourceunit=10 ramptime=12' } +14s cbus:client rx event { time: '20171029-171118', code: 730, processed: true, netId: //SAMARA/254/56/113, level: 5, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171118 730 //SAMARA/254/56/113 dd9512a0-9e88-1035-8b9d-e475dc0f8f60 new level=12 sourceunit=10 ramptime=12' } +0ms cbus:client rx event { time: '20171029-171134', code: 730, processed: true, netId: //SAMARA/254/56/112, level: 5, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171134 730 //SAMARA/254/56/112 dd94eb90-9e88-1035-8b9c-e475dc0f8f60 new level=12 sourceunit=10 ramptime=12' } +16s cbus:client rx event { time: '20171029-171134', code: 730, processed: true, netId: //SAMARA/254/56/113, level: 95, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171134 730 //SAMARA/254/56/113 dd9512a0-9e88-1035-8b9d-e475dc0f8f60 new level=242 sourceunit=10 ramptime=12' } +1ms cbus:client rx event { time: '20171029-171148', code: 730, processed: true, netId: //SAMARA/254/56/112, level: 95, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171148 730 //SAMARA/254/56/112 dd94eb90-9e88-1035-8b9c-e475dc0f8f60 new level=242 sourceunit=10 ramptime=12' } +14s cbus:client rx event { time: '20171029-171148', code: 730, processed: true, netId: //SAMARA/254/56/113, level: 5, sourceunit: 10, ramptime: 12, type: 'event', raw: '#e# 20171029-171148 730 //SAMARA/254/56/113 dd9512a0-9e88-1035-8b9d-e475dc0f8f60 new level=12 sourceunit=10 ramptime=12' } +0ms

anthonywebb commented 6 years ago

Have you played around with the scene control in the iOS home app? I believe you have to have an iPad or AppleTV hooked in to your network.

RickHOZ commented 6 years ago

Hi Anthony, Thanks for the responses, I have both an Apple Ipad which I am using to test everything I'm configuring and we also have an Apple TV 4 on the network that seems to be operating as it should as I can manage the devices from outside of the house over a 4g network.

I have played about with this a little but don't see anywhere on either the iPad or the Apple TV to get this animation effect working.

I'm going to spend a little more time on this tonight.

anthonywebb commented 6 years ago

Can you explain a little more about the "animation effect"?

RickHOZ commented 6 years ago

Ok, let's see.

Maybe a very short video might help.

https://www.dropbox.com/s/wb7ugvvgu9urd9f/IMG_6832.mov?dl=0

Now, this is controlled by Scenes on the Cbus Colour C-touch.

Now to operate this scene I normally just use the following address to activate it from the cbus equipment: Network= 254 Application=202 Group=5

I have also uploaded a few images screenshots from the scene manager in PICED

Hopefully, all of this makes some sense.

Thanks Rick

screen shot 2017-10-30 at 2 39 44 pm screen shot 2017-10-30 at 2 39 33 pm screen shot 2017-10-30 at 2 39 14 pm screen shot 2017-10-30 at 2 38 13 pm

:

RickHOZ commented 6 years ago

Also here is a copy of my download file generated by your plugin. You will see a number of devices I would love to be able to control.

Dowload from plugin.txt

DarylMc commented 6 years ago

@RickHOZ Network= 254 Application=202 Group=5 Application 202 is trigger control, Group address 5.

Look in Anthonys config.json example for how he added multiple applications.

RickHOZ commented 6 years ago

Hi Daryl, Thanks for wading in I really appreciate everybody's time and efforts.

Are you referring to the following from Anthony's example config.json file?

{ "type": "light", "network": "250", "application": "203", "id": 3, "name": "Backdoor" },

I tried the following

{ "type": "light", "network": "254", "application": "202", "id": 5, "name": "Lounge Features" },

It did not work and the copy of the log is below:

cbus:client matched request '[216] ramp //SAMARA/254/202/5 100% # setOn (on)' with response '[216] 402 Operation not supported by: //SAMARA/254/202/5 (Method ramp not found)' (0 pending requests) +0ms cbus:client sent command '[217] ramp //SAMARA/254/202/5 0% # setOn (off)' +42s cbus:client rx response { commandId: 217, code: 402, matched: false, processed: false, type: 'response', raw: '[217] 402 Operation not supported by: //SAMARA/254/202/5 (Method ramp not found)' } +1ms cbus:client matched request '[217] ramp //SAMARA/254/202/5 0% # setOn (off)' with response '[217] 402 Operation not supported by: //SAMARA/254/202/5 (Method ramp not found)' (0 pending requests) +0ms

DarylMc commented 6 years ago

@RickHOZ Have a look at my post here. https://github.com/anthonywebb/homebridge-cbus/issues/65 I'm not sure Homebridge CBus can activate a scene trigger.

The effect looks pretty good. I haven't quite figured how you get it to repeat if that is what you do. Maybe a motion sensor triggering it would be pretty cool.

I think you should consider or run the idea on CBus forum about how to keep CBus traffic to a minimum. Maybe you can do what you want with logic on the touch screen.

RickHOZ commented 6 years ago

Hi Daryl, thanks for the info. I have now managed to also install the ELKM1 Platform in homekit and I have managed to get a lot more of the functionality of the existing system working.

Amazing what persistence does ( Lucky I'm retired otherwise my wife would have killed me) I think I have been locked in my study for the past week trying to get this working.

But it is absolutely amazing that I have now managed to get over 90 devices operating by my voice.

A pity I could not get rid of the "SIRI" bit, I would love to be able to call out the name of our house rather than SIRI Haha.

I was just sitting down to try and attack how to get the scene for the display on the Colour Ctouch to be activated from Homekit. I hope I can use the ELKM1 connection somehow.

The repeat is running in the Scene Manager on the C-Bus Colour C-Touch panel and you are 100% correct. The scenes are just ramping it up and down.

Onwards and upwards.