Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add inverse entity helper #330

Merged
merged 10 commits into from
Aug 20, 2023
Merged

Add inverse entity helper #330

merged 10 commits into from
Aug 20, 2023

Conversation

frenck
Copy link
Owner

@frenck frenck commented Aug 20, 2023

Description

This entity helper allows a user to inverse the behavior of an entity.

For example, a switch entity could be inverted. Flipping on/off for the source entity and inverses all services as well.

This can be helpful in case you have a device that reports its state wrongfully, without the need for templating.

Motivation and Context

If a devices uses a standard protocol, like, for example, Z-Wave, Matter or Zigbee (or god forbid T*ya), it might happen the manufacturer flipped on/off depending on their use case. There is no way to correct that, hence this helper.

How has this been tested?

Screenshots (if appropriate):

CleanShot 2023-08-20 at 12 33 28

CleanShot 2023-08-20 at 12 34 18

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@frenck frenck added the new-feature New features or options. label Aug 20, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@frenck frenck marked this pull request as ready for review August 20, 2023 11:04
@frenck frenck merged commit f133b4c into main Aug 20, 2023
@frenck frenck deleted the frenck-2023-1161 branch August 20, 2023 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature New features or options.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant