danobot / entity-controller

Home Assistant Entity and lighting controller for managing devices with timers, scripts, and sun-based time restrictions.
https://danobot.github.io/ec-docs/
GNU General Public License v3.0
289 stars 41 forks source link

Option: Invert sensor #303

Closed Eckart0 closed 11 months ago

Eckart0 commented 11 months ago

Hello, I have presence detectors here that are set to 'off' when there is movement and to 'on' when there is no movement. So far I'm helping myself with a template that inverts the status for entity_controller. It would be nice if entity_controller contained an option like "invert: true" (default: false). Would such an extension be possible? Many greetings, Eckart

danobot commented 11 months ago

Suggest creating a different sensor that inverts your sensor value. Then use that one in EC.