trying to setup a script that changes my limitlessled's to blue

light:    
  platform: limitlessled    
  bridges:    
    - host: 192.168.0.139    
      groups:    
      - number: 1     
        name: cinemac    

script:    
  alias: Cinema Blue    
  service: light.turn_on    
  data:    
    entity_id: light.cinemac    
    brightness: 100    
    color_name: blue    

where am i going wrong guys? invalid config :(

Posted Nov 27, 2017, 3:58 PM UTC

28
looknsharp•

I think your script needs a name before the alias.

3
Reallytalldude•

That’s probably it. If it doesn’t work try putting in “blue” instead of blue

1
roadrunner1024OP•

this is officially driving me nuts...

script:
  blue:
   sequence:
   alias: Cinema Blue
   service: light.turn_on
   data:
    entity_id: light.cinemac
    brightness: 100
    color_name: "blue"


Failed config
  script: 
    blue: [source /home/andrew/.homeassistant/configuration.yaml:135]
     alias: Cinema Blue
      data: [source /home/andrew/.homeassistant/configuration.yaml:139]
        brightness: 100
        color_name: blue
        entity_id: light.cinemac
      sequence: None
      service: light.turn_on

  General Errors: 
    - Setup failed for script: Invalid config.

 Successful config (partial)
  script:

any more ideas?

1
Reallytalldude•

i got it to work - I copied it to my config and tweaked it until i got it working. here is the working code:

script:
  blue:
   alias: Cinema Blue
   sequence:
   - service: light.turn_on
     data:
       entity_id: light.cinemac
       brightness: 100
       color_name: "blue"
2
roadrunner1024OP•

it works! Thanks!!!

have another weird issue now!!!

    script:
          blue:
           alias: Cinema Blue
           sequence:
           - service: light.turn_on
             data:
              entity_id: light.cinemac
              brightness: 100
               color_name: "blue"
           - delay:
               seconds: 1
           - service: switch.turn_on
             data:
               entity_id: switch.amp
           - delay:
               seconds: 1
           - service: switch.turn_on
             data:
               delay:
               seconds: 1
           - service: switch.turn_on
             data:
               entity_id: switch.amp_sbox

script runs through perfectly apart from the last step:

   - service: switch.turn_on
     data:
       entity_id: switch.amp_sbox

the switch doesn't switch on... have changed the switch also, & still doesn't activate. have also tried adding more switches afterwards, & it stops at this point.... very odd as syntax now looks correct... are there a set number of steps you can have in a sequence?

1