After switching to MQTT from Home Bridge in the past few days, I’m looking for help on setting the brightness level of one entity (an LED) with the brightness setting on another entity (a Clipsal switch)
This is the devtools section from the clipsal switch
I’ve tweaked it slightly using double quotes in the last line and it accepted that. I’ve put this code into the default empty scripts.yaml. Is that the right place to test? I keep moving this from the config file to automations (where it asks for an ID) and now I’m trying this empty scripts.yaml file
I’m going to admit, I’m not getting anywhere having spent days trying everything I can to get this to work. It’s exasperating.
-I don’t know if anything in my yaml is being triggered
-I don’t know if the yaml is properly formatted
-I don’t know if the code is right
-I don’t know if the attributes are being picked up
-I don’t know of the attributes to the target are being sent
-I don’t know how to debug any of it
There are a lot of permutations of things to go wrong, and it’s literally the only thing I moved to HA to do, and that’s to link two disparate control systems together. Not sure how to proceed to be honest. Hands up who offers a paid for service, I’m stumped.
This is my current piece of code.
-The file is in clipsalautomations.yaml in a directory called automation.
-The main configuration.yaml says this, and the simple UI based automations are working from there
If you don’t, it was never loaded. Check Configuration > Logs for error messages.
If you do, does it have a date and time displayed indicating when it triggered recently or does it say Never?
If it has a time, but the shower light never turned on, there’s something wrong in the automation’s action. Check the automation’s trace (refer to Troubleshooting Automations)
If it has no time, it never triggered.
You should know that your automation’s service call is incorrectly indented. Home Assistant probably refused to load it but you didn’t inspect the log for errors. Always execute Configuration > Server Controls > Check Configuration after creating/modifying an automation with a text editor.
Change it to this and remove the references to trace.
Not all heroes wear capes, some reside on this board. It’s now working with the change, thankyou!!!
I did look in the logs but found nothing which was frustrating, but now SW2 appears in the list. This gives me the springboard to go and create a whole slew of automations from my existing hard wired clipsal system into anything