Help with sun-angle-based automation

Hi,
I’m currently struggling with an automation rule.
It’s about turning on a switch in dependency of sun angle when a user is at home.
My new best friend http://yaml-online-parser.appspot.com validates the YAML syntax as correct.
Sorry, code is not well readable. I did not find a way to format it as code.

This part is working (turn on HUE bulb if DD-WRT device is at home and sun angle is < 6°):

 - alias: "Licht sonnenabhängig an"
   trigger:
    platform: numeric_state
    entity_id: sun.sun
    value_template: '{{ state.attributes.elevation }}'
    below: 6.0
   condition:
    platform: state
    entity_id: device_tracker.006171b1f92f
    state: 'home'
   action:
    service: homeassistant.turn_on
    entity_id: light.HUE_Flur

But this rule does not do anything (turn on SWITCH of my other HUE when sun < 2°:
- alias: "Licht sonnenabhängig an HUE"
   trigger:
    platform: numeric_state
    entity_id: sun.sun
    value_template: '{{ state.attributes.elevation }}'
    below: 2.0
   condition:
    platform: state
    entity_id: device_tracker.006171b1f92f
    state: 'home'
   action:
    - service: switch.turn_on
      entity_id: switch.HUE

This is exactly the same rule, except turning on switch instead of light.
I tried also service “homeassistant.turn_on” without success.

What am I doing wrong here?

OK, found the issue while reviewing my post.
There was “-” where it not should be :wink: