pimatic / rfcontroljs

nodejs modul with protocol support for different 433mhz switches and weather stations for the RFControl Arduino library.
GNU General Public License v3.0
49 stars 54 forks source link

Error with Led2 device #80

Closed renearts closed 8 years ago

renearts commented 8 years ago

Since (I think) yesterday I get an error on a Led2 device which has until now worked fine. I configured it half a year ago and haven't had any real trouble with it. Error loading device rfswitch-ledstrip-keuken: "led2" must be one of the following types: "switch, dimmer" Is the Led2 protocol not recognised as dimmer anymore?

The device configuration: { "id": "rfswitch-ledstrip-keuken", "name": "LEDstrip keuken", "class": "HomeduinoRFDimmer", "protocols": [ { "name": "led2", "options": { "id": 2977, "command": "on/off" }, "send": true, "receive": false } ] },

Icesory commented 8 years ago

We have published yesterday a stricter config check. So every wrong config for Homeduino will now be shown. The led2 protocol has no support for dimmers. You can use it only with an Buttons device.

renearts commented 8 years ago

Ok, that sounds reasonable, though the device I use actually is a really cheapo Chinese PITA inline dimmer (dimming + several effects do work with the remote control). I don't use the dimming or the effects functionality though, so I would be perfectly fine with only on/off functionality for now. I want to replace the dimmer sometime soon anyway. I'd like to get stuff working again for the time being; how should I adapt my configuration?

When I alter the class to HomeDuinoRFSwitch it throws: Error loading device rfswitch-ledstrip-keuken: "led2" must be one of the following types: "switch"

Icesory commented 8 years ago

You must use the class HomeduinoRFButtonsDevice. Please look at the Homeduino readme to see exactly how it must be configured. https://github.com/pimatic/pimatic-homeduino

renearts commented 8 years ago

Thanks, wasn't able to find the correct readme that fast. But it all works now, so thanks a lot!

Icesory commented 8 years ago

No problem. You're welcome.