question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: More than one disable_entity: ... I.e. disable_entities: and a list of entities?

See original GitHub issue

Been trying to figure out how to deploy Magic Areas for my living room such that:

  1. Use my living room motion sensor to turn just the fireplace light on/off only at night - done & working.
  2. Use my living room TV to keep the fireplace light from turning off - done & working.
  3. Be able to manually turn on either the pole lamp or the living room lamp so I can read, etc. AND disable the automatic light fireplace light from turning on/off when presence is sensed/cleared? I tried turning on presence_hold in an automation but that turns the fireplace light on. I’ve created the following templated override entity but it would be nice if Magic Areas supported a disable_entities: list.
      living_room_motion_override:
        unique_id: "living-room-motion-override"
        friendly_name: "Living Room Motion Override"
        value_template: "{{ is_state('binary_sensor.south_patio_lux_override', 'on') or is_state('input_boolean.living_room_automatic_lights_disabled', 'on') or is_state('light.pole_lamp', 'on') or is_state('light.living_room_light', 'on') }}"

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
danielbrunt57commented, Feb 1, 2021

Understood BUT, the ONLY light included in the area is the fireplace light and the night entity does what Is needed…turn the fireplace light off since it is either daytime, tv on, and/or one of the other 2 lights are on.

0reactions
jseidlcommented, Jan 31, 2021

That’s a tricky one, since if you use your template sensor as a night_entity (former disable_entity), as soon as you turn on the tv or the lights, it will think it’s daytime and turn off all the lights.

I believe you’ll have to automate the turning off of the fireplace light with a separate automation. Or removing it entirely from main_lights and automating both turn on and off.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Edit an entity - Dynamics 365 - Microsoft Learn
Learn about ways you can edit entities within Dynamics 365. ... Entity options that can only be enabled; Enable or disable entity options....
Read more >
Disable Entities 1.13-1.14 1.0 - SpigotMC
Disable Entities allows you to disable any entity from spawning. This includes even entitys such as snowballs, arrows and more.
Read more >
tastyspleen/q2admin-tsmod - GitHub
If you run multiple servers from one mod directory you can use the ... is wrong q2admin may crash and the internal disable...
Read more >
How to remove/disable custom entities from related tab for ...
Hi Nadeem,. We need to remove these entities from the Navigation list of the Opportunity form. Go to Settings > Customizations > Customize...
Read more >
XML External Entity Prevention - OWASP Cheat Sheet Series
This attack occurs when untrusted XML input containing a reference to an external entity is processed by a weakly configured XML parser. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found