Writing a rule to cycle colours endlessly #22132
Replies: 5 comments 10 replies
-
You did play with the |
Beta Was this translation helpful? Give feedback.
-
In that case start here https://tasmota.github.io/docs/ Look for command |
Beta Was this translation helpful? Give feedback.
-
So I used just a command in the console: Backlog Scheme 2; Palette FF0000 0000FF; Speed 40; This returned 3x Command Unknown, and no change on the bulb I also read that palette doesn't save on flash so would I need a rule to set it on power on? (System#Boot DO Palette xxxxx ENDON) |
Beta Was this translation helpful? Give feedback.
-
Not sure exactly what you mean by config lamp type sorry. The bulb is an Athom bulb (https://www.athom.tech/blank-1/color-bulb) that foes warm cold white light as well as rgb, soes that make it RGBCCT. Is that what you mean? Or is this information I can find in the Tasmotrol app? |
Beta Was this translation helpful? Give feedback.
-
I managed to get it smoother somehow tonight but when restarting the palette was still lost, so rewrote the rule command as "system#init do Palette FF00000000 0000FF0000 endon" and now it seems to be working when reset the motion appears smoother but maybe just jumpy at the ends. Maybe this is because it is a triangular oscilation rather than more sine shaped. Is there any way with scheme to affect the pacing outside of speed? |
Beta Was this translation helpful? Give feedback.
-
I want to write a rule that will trigger on power on and fade from R0 G0 B255 to R255 G0 B0 and back continuously in a ndless loop.
I want this to be saved and run whenever thr bulb is turned on.
I looked at the notes on rule scripting and got chat gpt yo write the below code, amongst variations. But it only will make one transition even when triggered manually in the console on tasmotrol, so not sure what the problem is.
Rule1
ON System#Boot DO
# Ensure the device starts with red color and fades
IF (Power1#State=0) OR (Color1#State!=255,0,0) THEN
Power1 ON; Color1 255,0,0; Fade 1; Speed 150; RuleTimer1 15
ENDIF
ENDON
ON Rules#Timer=1 DO
# Transition to blue after 15 seconds
IF (Color1#State=255,0,0) THEN
Color1 0,0,255; Fade 1; Speed 150; RuleTimer2 15
ENDIF
ENDON
ON Rules#Timer=2 DO
# Transition back to red after 15 seconds
IF (Color1#State=0,0,255) THEN
Color1 255,0,0; Fade 1; Speed 150; RuleTimer1 15
ENDIF
ENDON
DEVICE DETAILS
Tasmota flashed bulb (Esp8285) from athom (https://www.athom.tech/blank-1/color-bulb). It seems to have the tasmota.bin firmware. Accessing through tasmotrol on android.
Beta Was this translation helpful? Give feedback.
All reactions