SirGoodenough / HA_Blueprints

🧯 My Collection of Automation and Script Blueprints for Home Assistant 🧯
Other
132 stars 22 forks source link

[User issue] Action that calls an unknown service #31

Closed ThetomekK closed 9 months ago

ThetomekK commented 9 months ago

Hi, i am sorry to bother you, but i can't get the dimmer control to work. Following error occurs: image

the scripts part: image

and the actions in the automation: image

All parts were just copy & pasted, no personal adoptions.

Other stuff like tapping sides to turn on/off the selected light work porperly. Do you have an idea, what is going wrong?

SirGoodenough commented 9 months ago

Couple of things.

Where did you put the cube dimmer script in the configuration, under what integration? It doesn't look like it was identified as a script...

Since I wrote the script blueprints that handle the dimmer and the rest of the addons I have been ignoring the manually added ones. The script blueprint for dimmer now has a transition component should you want to use it. I suggest just installing that, it takes care of the installation for you.

My next edit will probably be to remove the manually added scripts in favor of the blueprint versions.

https://github.com/SirGoodenough/HA_Blueprints/blob/master/Scripts/Miscellaneous%20Blueprint%20Scripts%20-%20Volume%20-%20Dimming%20-%20Reset%20-%20Long%20Short%20Press%20Simulation%20-%20Color%20Change.md

ThetomekK commented 9 months ago

Hi, thanks for your reply. I added the cube dimmer script directly in my scripts.yaml. Next i tried to add the script part through out the blueprint, thats what i did: Import the script blueprint: image Add the script: image image Script is added to the scripts.yaml image However it is not listed in the script tab (is that behavior intended?) image Now in the device itself: image i add this: image the automation tells me: image with no success

SirGoodenough commented 9 months ago

After you import the dimmer blueprint, you must create the script based on that blueprint using the script editor create script window I see above. The blueprint itself doesn't do anything, needs a script to call it. Did you do that.

SirGoodenough commented 9 months ago

This is clearly not a bug. Helping you thru this issue would clearly help others. Can we continue this in the exchange post where others would see the process? https://community.home-assistant.io/t/miscellaneous-blueprint-scripts-volume-dimming-reset-long-short-press-simulation-color-change/602059

ThetomekK commented 9 months ago

yes, of course!

ThetomekK commented 9 months ago

Hi, just got it to work. Mistake was on my side (well that is actually no suprise). in my configuration.yaml the part script: !include scripts.yaml was uncomment. And this explains why the very first error occured:

image

So your blueprints and the installation procedure are clear. Thanks a lot for your work at all. BR