Apologies for the double post, but has anyone figured out how to make a dim/brighten automation continuous when spinning CW or CCW? I have mine set to do a 10% step in either direction but I have to spin, stop, spin, stop, etc. instead of continuously spinning to the desired brightness.
I have one listed in my blueprint code here that changes brightness proportional to the amount of degrees turned.
What you ask would be a real trick because it doesn’t send the amount turned to HA until it stops turning, While it’s turning, nothing is being sent.
Look at the top post for links to my script. Also one for brightness, turning to simulate long and short press, and other things.
@Sir_Goodenough first of all thanks for this blueprint! Could I perhaps ask you why I get the below error in my logs?
Logger: homeassistant.components.automation.magic_cube_bedroom_kids
Source: components/automation/init.py:738
integration: Automation (documentation, issues)
First occurred: 08:14:35 (54 occurrences)
Last logged: 08:39:40
Error while executing automation automation.magic_cube_bedroom_kids: value must be at most 100 for dictionary value @ data[‘brightness_pct’]
Logger: homeassistant.components.script.magic_cube_dimmer_bedroom_kids
Source: helpers/script.py:2057
integration: Script (documentation, issues)
First occurred: 08:14:35 (108 occurrences)
Last logged: 08:39:40
Magic Cube Dimmer Bedroom Kids: If at step 1: Error executing script. Invalid data for call_service at pos 1: value must be at most 100 for dictionary value @ data[‘brightness_pct’]
Magic Cube Dimmer Bedroom Kids: Error executing script. Invalid data for if at pos 1: value must be at most 100 for dictionary value @ data[‘brightness_pct’]
Can you put it into an issue in the GitHub and I will look at it.
They need some love but I need some time to dig into them. There were changes around brightness that it looks like I need to pull into my code, among other things.