Ok, i will make a plugin called pimatic-dummies with the led-light-rgb as a first device.
That device is available in the gui, variables and the rules part, but it doesn’t do anything further.
-
after Upgrade to Node 10, led-light plugin can't be re-installed
-
Hi, i made the plugin pimatic-dummies. You can install via the plugins page. Or if its not visible there you can add it in config.json in the plugins section, like this:
{ "plugin": "dummies" }
Pimatic needs to be stopped when you edit config.json. After restart you need to activate the plugin.
There’s 1 device DummyLedLight and is should behave like you are used to.
Let me know the results. -
@bertreb
plugin dummies is not in the gui plugin list but the led-light-plugin shows up with a new version 0.9.x. ? Is that correct?
So I tried to load it via entry in the config, like you said. I replaced the plugin led-light with your “dummies”, so led-light is no longer in config.
Then I configured a new device with your new Class: DummyLedLight and restartet.
It has been loaded with this settings and shows up as expected.Now its working for color and power but not for brightness/dimlevel.
There is still a error message while setting other dimlevel/brightness via rules but also via gui slider.error [pimatic]: rule ledlight-on-white error executing an action: this.device.getDimlevel is not a function error [pimatic]: Error on evaluation of rule condition of rule ledlight-on-white: this.device.getDimlevel is not a function
I did not delete the old plugin-led-light from node_modules folder. Is that an issue?
-
Hi, the pimatic-dummies plugin should be visible in the plugins page (tab browse plugins). But if you installed it via the config its also ok.
In the rules I can use the device attributes brightness, color, mode and power. The slider, color picker and switch are visible and working in my test setup.
What is the syntax of rule ledlight-on-white? -
@bertreb
Maybe i need to explain a bit more detailed ? …
The Slider is working, also the button for power and also the color picker. All this manual changes in config are forwarded to the 3 rules which sends to the mysensors device.Only when using the 3 values in rules, 2 working but not the dimlevel (as the arror text says to me).
The rule was written some topics above, but there also some more like this. Some triggered by buttons, some others triggered from daylight or timers or other things.
I stipped this here to the basic issue:
{ "id": "ledlight-on-white", "name": "LEDLight_onWhite", "rule": "when Schalter_Kueche_links receives on then switch myledlight1 on and dim myledlight1 to 100% and set myledlight1 to #FFBF10 after 2 seconds", "active": true, "logging": true },
switch myledlight1 on
is working and sets Gui switch to on (or to off in other rules)
set myledlight1 to #FFBF10
is working and sets Gui color from small color piker icon to expected color
dim myledlight1 to 100%
Is NOT working! I tried different values ofcourse and also with numbers/strings and wahtever but no change or not valid when saving the rule
-
Maybe there is another issue combined with this?
I have sometimes, can not reproduce, this error msg:error [pimatic-mobile-frontend]: Client error: this.myChart is undefined
-
YES! Working now! Thank you a thousand times.
-
Hey,
thx once more for your hint to this topic. I supose you are willing to extend the plugin over time right? For RGBW a warm/cold white slider is missing.Like this (from raspee plugin)
I think you can take much of it as base. Just the color picker gets reset after the UI was closed. Means when I close the browser and reopen it, the picker looks like in the pic. It losts its state. I played in the past a little bit with is, but I was not able to fix ist.
But take your time. It is just an idea. The dummy plugin is a good base for several things!