sahilchaddha / homebridge-magichome-platform

Homebridge Plugin for MagicHome LED Strips with Preset Scene Automation Support (Cycle Color/Fade/Strobe)
MIT License
47 stars 12 forks source link

RGB Strip doesn't change colour #15

Open harrydayexe opened 5 years ago

harrydayexe commented 5 years ago

Describe the bug I have a normal RGB strip connected to a magic home wifi controller (one in the certified controllers section). I can turn the strip on and off via HomeKit but I cannot control the brightness or colour. In the MagicHome app however I can control everything via the standard MagicHome app.

Expected Behaviour When I change a colour in the home app, I can see in my RaspberryPi console that the colour command has been received and sent into the flux_led.py but no change occurs on the strip.

Config `{ "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154" },

    "platforms": [{
            "platform": "MagicHome-Platform",
            "debug": true,
            "lights": [{
                    "name": "Desk LED Strip",
                    "ip": "192.168.1.223",
                    "setup": "RGBWW",
                    "purewhite": false
            }]
    }]

}`

Logs 08 18:19:26 raspberrypi homebridge[225]: [1/8/2019, 6:19:26 PM] [MagicHome-Platform] Setting color RGB:(255, 48, 48) [(255, 48, 48)]

Jan 08 18:19:26 raspberrypi homebridge[225]: [1/8/2019, 6:19:26 PM] [MagicHome-Platform] Setting color RGB:(255, 52, 48) [(255, 52, 48)]

Jan 08 18:19:29 raspberrypi homebridge[225]: [1/8/2019, 6:19:29 PM] [MagicHome-Platform] [ 'Polling Light', '192.168.1.223' ]

Jan 08 18:19:29 raspberrypi homebridge[225]: [1/8/2019, 6:19:29 PM] [MagicHome-Platform] /usr/local/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 192.168.1.223 -i

Jan 08 18:19:30 raspberrypi homebridge[225]: [1/8/2019, 6:19:30 PM] [MagicHome-Platform] Unknown ID [192.168.1.223] ON [Color: (255, 255, 255)]

Jan 08 18:19:30 raspberrypi homebridge[225]: [1/8/2019, 6:19:30 PM] [MagicHome-Platform] [ 'Updating Device',

Jan 08 18:19:30 raspberrypi homebridge[225]: '192.168.1.223',

Jan 08 18:19:30 raspberrypi homebridge[225]: { H: 0, S: 0, L: 100 },

Screenshots screenshot 2019-01-08 at 18 22 10

Desktop (please complete the following information):

Additional context The next time the LED Strip is updated by the plugin and the information about it is retrieved, the colour or brightness settings in the home app are changed back to White and 100% bright which is what I set via the MagicHome App

ifeign commented 5 years ago

Try changing the setup from RGBWW to RGBW or RGB, that's what worked for me - my LED strip wasn't RGBWW, everything worked fine when set to RGB.

harrydayexe commented 5 years ago

I tried both RGBW and RGB and neither had any luck, colour sets in the home app and I can see the command being received in my system logs, but after a minute or so the HomeKit app refreshes back to the previous colour.

ifeign commented 5 years ago

I realized there's apparently an RGBWWv3 option too, have you had any luck?