Skip Navigation

Posts
11
Comments
1,357
Joined
2 yr. ago

  • Oh.. I think you also need double quotes around template brackets when used as the value in a service call..? Which conflicts with the quotes around the entity and attribute so just use single quotes there.

     
        
    brightness_pct: "{{state_attr('light.kitchen_sink_ceiling', 'brightness')}}"
    
    
      

    Just whipped up a partial example with my living room lights. It is missing a trigger and an else butI focused on theactionyou had trouble with.
    Using brightness instead of brightness_pct seemed simpler. (Or at least if both can usethe same attribute...)

     
        
    alias: Example
    description: ""
    trigger: []
    condition:
      - condition: state
        entity_id: light.living_room_floor_lamp_1
        state: "on"
    action:
      - action: light.turn_on
        metadata: {}
        data_template:
          brightness: "{{state_attr('light.living_room_floor_lamp_1', 'brightness')}}"
        target:
          entity_id: light.living_room_floor_lamp_2
    mode: single
    
      
  • Hmmm if it's just complaining about expecting a float, you could maybe get away with simply multiplying by 1.0

    {{state_attr("light.kitchen_sink_ceiling", "brightness") * 1.0}}

    I think... {{state_attr("light.kitchen_sink_ceiling", "brightness") | float}} also works these days.

    My lights return brightness=None when they're off... and None * 1.0 probably breaks something, so this might be more consistent: {{(state_attr("light.kitchen_sink_ceiling", "brightness") or 0) | float}}

    PS: I can't say much about brightness_pct, I normally use brightness instead (0-255).

  • Demon cores aren't literal.

  • Is 2016 old enough now?
    The DOOM 2016 soundtrack fucking rips.

  • And sharks. Don't forget the sharks.

  • I go to sleep and y'all make peace.
    Thanks, I appreciate it.

  • Way back in the day, developing photo film in the shop's backstore lab.
    The coroner pictures were always... something.
    At least the hawking boss would GTFO though, silver linings.
    Then again that's not as bad as being actually there and scooping various stuff.

  • Presumably, a live baby would move way too much for photogrammetry to be useful.

  • an ancient card with a colorful box from 3dfx.
    I think it was a voodoo 2, but not one that came bundled with creative soundblaster.
    Yes, we needed another physical card for sound.

  • The CVV should really be 2FA from your card issuer.

  • But even my current Xiaomi router with stock firmware creates hash mismatches using apt

    That's a huge fucking red flag and I would yeet any network equipment responsible for fudging such a thing.

  • title

    Jump
  • Clothes dryer and a bucket of sand would probably work.
    Plus you can sell the self-dismantled dryer for parts after.

  • vapid mouth breather.

    They might be a mouth typer too. The parent comment has words arranged in a way that vaguely resembles the concept of a sentence.