• 2 Posts
  • 13 Comments
Joined 3 years ago
cake
Cake day: July 3rd, 2023

help-circle

  • I tried Jellyfin once about a year ago and it was… OK I guess? Certainly nowhere near as polished as the rabid fan base would have me believe, and there was something in my library that it flat out refused to play.

    If I didn’t already have a lifetime Plex Pass, and it was just me hosting my own media for a user count of one, then sure, I’d use it. But none of those things are true. I need something that “just works” and Plex fits that bill.

    Like most people here, I bought a lifetime pass when it was $75 and it’s paid for itself over and over again in the time since. I honestly think I’ve had more than $750 worth of value from my purchase. Sure they’ve made some odd decisions recently, but until they start actively taking away functionality or rescind existing lifetime subs then I will continue to use it.

    Meanwhile, not to belittle you personally, but the fact that every thread that mentions Plex in any way, good or bad, is guaranteed to be dominated by people circle-jerking over their beloved Jellyfin has put me completely off the project, to the point that I’ve had to add the word to my blocklist. Obviously that’s not working too well or I wouldn’t have seen this post!





  • That first line is what CGPT helped me with. I wanted something that I don’t need to modify when I add or remove lights, so this just gets everything. Ideally I’d just get the lights that don’t have the power restore feature but most of my lights go via Hue and that doesn’t expose the feature to HA at all.

    The input_boolean is a thing I already had setup. The UPS fires a webhook event when it goes in and out of battery mode and there’s a separate automation that switches the helper based on those.


  • Got a little help from CGPT so it might not be perfect, but this seems to work from my limited testing:

    triggers:
      - trigger: state
        entity_id:
          - input_boolean.ups_power
    conditions: []
    actions:
      - choose:
          - conditions:
              - condition: state
                entity_id: input_boolean.ups_power
                state:
                  - "on"
            sequence:
              - action: scene.create
                data:
                  scene_id: light_states_backup
                  snapshot_entities: |
                    {{ states.light | map(attribute='entity_id') | list }}
          - conditions:
              - condition: state
                entity_id: input_boolean.ups_power
                state:
                  - "off"
            sequence:
              - action: scene.turn_on
                target:
                  entity_id: scene.light_states_backup
                data: {}
              - delay:
                  hours: 0
                  minutes: 0
                  seconds: 10
                  milliseconds: 0
              - action: scene.delete
                data:
                  entity_id: scene.light_states_backup
    mode: single
    

    I’ve only tested it by toggling the UPS boolean manually and not actually cutting the power, so I’m probably going to need to add a delay, or a retry loop or something to make sure the scene applies consistently but so far so good! Thanks for the inspiration.



  • Thank you, that’s food for thought at least.

    Can I ask about your light script? I have a bunch of smart bulbs that either don’t support or don’t expose the ‘power-on behaviour’ option, so in a power cut they come on full bright when power is restored, often in the middle of the night.

    My HA is on a UPS so I’ve been trying to have it store the states of lights when the UPS switches to battery power (before they go to unavailable) and then restore those states when power comes back, but it’s apparently way beyond my skill set. Curious as to how your “input list of lights” works and whether it could help me…






  • Just a PSA for anybody reading the thread, though it doesn’t really help with the question at hand… On the very slim chance that your workplace uses Bitwarden Enterprise it’s worth knowing that every licensed user gets a free family plan that can be tied to an existing personal account, provided it’s hosted in the same region.

    We do use it but very few of our own users are even aware of the perk so I like to spread it around when I get the chance!