There are no needed settings. Just create a CssInjectDevice and place it somewhere in the frontend.
-
New plugin [pimatic-css-inject]
-
Since I tried the css rule, nothing is running anymore!
Rasberry crashes then no connection to Pimatic possible anymore!
Unfortunately now my time is over and I can’t continue until 2 weeks later!
I hope I can come back to that!
Thank you very much -
Then there seems to be an error in your rule.
I just tried it for my own and it works as expected.Please configure a rule without the “pimatic is starting” clause and work with dummy devices as long as you could be sure that your rules work.
-
version 0.1.1 released 2018-03-04
- removed old injected styling definition if new one is applied to keep head element as small as needed
-
Hello!
I can’t get into Pimatic anymore!
I already tried to completely uninstall and reinstall Pimatic with instructions from the forum, that didn’t work!
The message “could not connected” is always displayed!
What exactly do I have to do to completely uninstall and reinstall Pimatic without re-installing the Raspberry?
I would like to start all over again!
Thank you -
Is Pimatic running?(
sudo service pimatic status
)
Whats in the Log? -
What does the pimatic-daemon.log say?
Please open a new thread in the troubleshooting section, as this issue is not related to the css-inject plugin.
-
Since Pimatic is now running again I would like to try again to remove the slider!
To avoid making another mistake I would like to know how exactly I have to use css-inject!I load the plugin CSS-Injekt
and create a device with the class CSS-Injekt
This device should then be visible on the side with the other devices.
Then I copy the selector from the DOM and integrate it into the rule
but instead of "When Pimatic is starting"
a dummy switch to test it!Is that so far correct?
Translated with www.DeepL.com/Translator
-
Yes, right!
As I wrote before:when dummy-button is turned off then set css "visibility" of "#beleuchtung-tv > div > div.light-brightness-container > div" to "hidden"
and
when dummy-button is turned on then set css "visibility" of "#beleuchtung-tv > div > div.light-brightness-container > div" to "visible"
Where #beleuchtung-tv is the id of you milight device.
-
Good morning, all,
I have now tested it with the rule and the dummy button, worked, and finally also with “When Pimatic is starting” !Thanks again for the great support!
-
I installed a new fresh Pimatic on a new fresh Raspian and I copied the config.json to the new installation.
Now everything works but I have a strange problem with cssinject.
The rule :
set css “display” of “#Voordeur” to "none"
does not work anymoreBut the rule
set css “color” of “#Voordeur” to "ffffff"
does work!another rule with a device on the same page also works:
set css “display” of “#keukenlampen-dimmer” to “none”So why does the first rule not work?
-
What’s the device ID? Shown on the device config page.
-
But the problem can’t be the device ID because then I also could not change the color of that device.
See:
-
Does the action trigger?
-
Yes, It does. You can see the action executed in the GUi and as you van see, It appears in the message log.
The keukenlampen-dimmer device is actualy hidden, the Voordeur device isn’t.
-
You have to analyze the DOM via Chrome developer tools and look for the correct ID of the div.
Normally it should be lowercase.
-
I don’t know why, the whole day it didn’t work.
Now it suddely works…
And I didn’t change a thing…