Home Assistant integration for managing disabled and enabled entities
- Copy the
custom_components/entity_managerfolder to your Home Assistantcustom_componentsdirectory. - Restart Home Assistant.
- The integration will be automatically loaded.
This integration can be added to HACS for easier installation and updates.
This integration can be added through the Home Assistant UI:
- Go to Settings → Devices & Services
- Click + Add Integration
- Search for "Entity Manager"
- Click to add it
No additional configuration is required.
- Dashboard Card: Manage entities directly from your Lovelace dashboard
- Services: Enable/disable entities programmatically through automations and scripts
- Voice Assistant Support: Control entities through voice commands (requires additional setup)
- WebSocket API: Real-time entity management through WebSocket commands
- Bulk Operations: Enable or disable multiple entities at once
The Entity Manager integration provides two services for managing entities:
Enable a disabled entity.
Service Data:
entity_id(required): The entity ID to enable.
Example:
service: entity_manager.enable_entity
data:
entity_id: sensor.my_sensorDisable an entity.
Service Data:
entity_id(required): The entity ID to disable. Voice Assistant Integration
Entity Manager provides services that can be used with voice assistants like Alexa and Google Home through automations.
Create automations to respond to voice commands:
automation:
- alias: "Voice - Disable Entity"
trigger:
- platform: conversation
command: "disable entity *"
action:
- service: entity_manager.disable_entity
data:
entity_id: "{{ trigger.sentence | replace('disable entity ', '') }}"
- alias: "Voice - Enable Entity"
trigger:
- platform: conversation
command: "enable entity *"
action:
- service: entity_manager.enable_entity
data:
entity_id: "{{ trigger.sentence | replace('enable entity ', '') }}"- Set up Home Assistant Cloud or Nabu Casa
- Expose the automation to your voice assistant
- Say: "Alexa, turn on voice disable entity" or "Hey Google, activate voice enable entity"
Alternatively, create routines in your Alexa or Google Home app that call the Entity Manager services directly.
Entity Manager includes a Lovelace card for managing entities from your dashboard:
type: custom:entity-manager-cardThe card provides:
- Search and filter entities by ID, device, or integration
- Multi-select entity management
- Bulk enable/disable operations
- Expandable groups by integration and device
Example:
service: entity_manager.disable_entity
data:
entity_id: sensor.my_sensor- Programmatically enable/disable entities based on conditions
- Bulk entity management through automations
- Dynamic entity control in scripts
- Integration with other Home Assistant automations
automation:
- alias: "Disable sensor when away"
trigger:
- platform: state
entity_id: input_boolean.away_mode
to: 'on'
action:
- service: entity_manager.disable_entity
data:
entity_id: sensor.energy_monitor- Entities must exist in the entity registry to be managed
- Disabled entities will not be available in the UI or automations until re-enabled
- Changes take effect immediately but may require a page refresh to see in the UI
For issues, questions, or contributions, please visit the GitHub repository.