Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power strip accessory #106

Closed
RaffoNin opened this issue Nov 8, 2021 · 9 comments
Closed

Power strip accessory #106

RaffoNin opened this issue Nov 8, 2021 · 9 comments

Comments

@RaffoNin
Copy link

RaffoNin commented Nov 8, 2021

Hi I'm wondering if this is possible. Read through the documentation and i can't seem to find anything.

Also aware that you can link switches together but i like the look of the power strip more my use case.

image

@crxporter
Copy link
Member

I believe you need to use the parent of "service label namespace" then add multiple on/off switches. Let me research with someone I know is doing this... I'll check back soon.

@crxporter
Copy link
Member

I'm really curious, where did you get this screenshot? I really like the circular type buttons and the power strip icon! I've never seen that before.

@crxporter
Copy link
Member

Ok - this is cool. I got it working. I've never seen the "power strip" icon before!!

What I've done is put together a parent service with type ServiceLabel then linked 6 Outlet services. Now I get a similar setup to yours:

IMG_1994

A bit of fine-tuning might be to "organize" the outlets with ServiceLabelIndex - as described in this wiki page... I haven't tested that.

Anyway, here's a copy of the flow I used to get the screenshot here:

[{"id":"c6c87fa526e007c8","type":"homekit-service","z":"5ee23b19.8fa8d4","isParent":true,"hostType":"1","bridge":"","accessoryId":"256d6c6d59575a84","parentService":"","name":"Power Strip","serviceName":"ServiceLabel","topic":"","filter":false,"manufacturer":"NRCHKB","model":"1.4.2","serialNo":"Default Serial Number","firmwareRev":"1.4.2","hardwareRev":"1.4.2","softwareRev":"1.4.2","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{}","waitForSetupMsg":false,"outputs":2,"x":420,"y":940,"wires":[[],[]]},{"id":"8d53c226b9595426","type":"homekit-service","z":"5ee23b19.8fa8d4","isParent":false,"hostType":"1","bridge":"","accessoryId":"","parentService":"c6c87fa526e007c8","name":"One","serviceName":"Outlet","topic":"","filter":false,"manufacturer":"NRCHKB","model":"1.4.2","serialNo":"Default Serial Number","firmwareRev":"1.4.2","hardwareRev":"1.4.2","softwareRev":"1.4.2","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{}","waitForSetupMsg":false,"outputs":2,"x":320,"y":1040,"wires":[[],[]]},{"id":"5ad6495c4c4f7b41","type":"homekit-service","z":"5ee23b19.8fa8d4","isParent":false,"hostType":"1","bridge":"","accessoryId":"","parentService":"c6c87fa526e007c8","name":"Two","serviceName":"Outlet","topic":"","filter":false,"manufacturer":"NRCHKB","model":"1.4.2","serialNo":"Default Serial Number","firmwareRev":"1.4.2","hardwareRev":"1.4.2","softwareRev":"1.4.2","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{}","waitForSetupMsg":false,"outputs":2,"x":320,"y":1100,"wires":[[],[]]},{"id":"879749573171379e","type":"homekit-service","z":"5ee23b19.8fa8d4","isParent":false,"hostType":"1","bridge":"","accessoryId":"","parentService":"c6c87fa526e007c8","name":"three","serviceName":"Outlet","topic":"","filter":false,"manufacturer":"NRCHKB","model":"1.4.2","serialNo":"Default Serial Number","firmwareRev":"1.4.2","hardwareRev":"1.4.2","softwareRev":"1.4.2","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{}","waitForSetupMsg":false,"outputs":2,"x":310,"y":1180,"wires":[[],[]]},{"id":"9f26e9e1f48d0ff8","type":"homekit-service","z":"5ee23b19.8fa8d4","isParent":false,"hostType":"1","bridge":"","accessoryId":"","parentService":"c6c87fa526e007c8","name":"five","serviceName":"Outlet","topic":"","filter":false,"manufacturer":"NRCHKB","model":"1.4.2","serialNo":"Default Serial Number","firmwareRev":"1.4.2","hardwareRev":"1.4.2","softwareRev":"1.4.2","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{}","waitForSetupMsg":false,"outputs":2,"x":310,"y":1240,"wires":[[],[]]},{"id":"36e387303a6db88e","type":"homekit-service","z":"5ee23b19.8fa8d4","isParent":false,"hostType":"1","bridge":"","accessoryId":"","parentService":"c6c87fa526e007c8","name":"four","serviceName":"Outlet","topic":"","filter":false,"manufacturer":"NRCHKB","model":"1.4.2","serialNo":"Default Serial Number","firmwareRev":"1.4.2","hardwareRev":"1.4.2","softwareRev":"1.4.2","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{}","waitForSetupMsg":false,"outputs":2,"x":470,"y":1160,"wires":[[],[]]},{"id":"c9db80c3af927de1","type":"homekit-service","z":"5ee23b19.8fa8d4","isParent":false,"hostType":"1","bridge":"","accessoryId":"","parentService":"c6c87fa526e007c8","name":"six","serviceName":"Outlet","topic":"","filter":false,"manufacturer":"NRCHKB","model":"1.4.2","serialNo":"Default Serial Number","firmwareRev":"1.4.2","hardwareRev":"1.4.2","softwareRev":"1.4.2","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{}","waitForSetupMsg":false,"outputs":2,"x":470,"y":1220,"wires":[[],[]]},{"id":"256d6c6d59575a84","type":"homekit-standalone","accessoryCategory":"7","bridgeName":"Multi switches","hostType":1,"pinCode":"969-47-688","port":"","advertiser":"ciao","allowInsecureRequest":false,"manufacturer":"NRCHKB","model":"1.4.2","serialNo":"Default Serial Number","firmwareRev":"1.4.2","hardwareRev":"1.4.2","softwareRev":"1.4.2","customMdnsConfig":false,"mdnsMulticast":true,"mdnsInterface":"","mdnsPort":"","mdnsIp":"","mdnsTtl":"","mdnsLoopback":true,"mdnsReuseAddr":true,"allowMessagePassthrough":true}]

@RaffoNin
Copy link
Author

RaffoNin commented Nov 9, 2021

Thank you I'll give it a shot. It's a via plug-in in Homebridge called MQTT power strip.

@RaffoNin
Copy link
Author

RaffoNin commented Nov 9, 2021

Maybe this can be added in the documentation as a separate accessory or as an extension of the outlet accessory

@crxporter
Copy link
Member

Maybe this can be added in the documentation as a separate accessory or as an extension of the outlet accessory

I agree. Outlet should be a good place for it. I won't be writing anything this week but if you'd like to learn/test a bit and make a contribution to the docs we would sure appreciate it!

@crxporter
Copy link
Member

I'm leaving this open as a reminder to add this to the wiki.

@crxporter crxporter transferred this issue from NRCHKB/node-red-contrib-homekit-bridged Nov 20, 2021
@Shaquu
Copy link
Member

Shaquu commented Feb 7, 2022

Ping @crxporter ;)

@crxporter
Copy link
Member

Closing. Continue at #120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants