Opening Entity Settings
Access entity settings by:- Clicking Edit on an existing entity in the entity list
- Clicking Add to configure a new entity
ConfigItem.qml) provides a form with all customization options.
Basic Entity Configuration
Entity ID
The Entity field (ConfigItem.qml:13-23) specifies which Home Assistant entity to display.
- Required field - must be set to a valid entity ID
- Supports autocomplete with all available entities
- Format:
domain.entity_name(e.g.,light.living_room,sensor.temperature)
The dialog’s OK button is only enabled when a valid entity ID is entered (
ConfigItems.qml:172).Custom Name
The Name field (ConfigItem.qml:43-48) allows you to override the default friendly name.
- Optional - leave blank to use the entity’s
friendly_nameattribute - Custom names appear in the plasmoid widget and configuration list
- Placeholder shows the entity’s current friendly name from Home Assistant
- Entity:
sensor.outdoor_temperature - Default friendly name: “Outdoor Temperature Sensor”
- Custom name: “Outside Temp”
Custom Icon
The Icon field (ConfigItem.qml:50-62) lets you specify a custom icon for the entity.
- Optional - leave blank to use the entity’s default icon
- Supports two icon formats:
- MDI icons:
mdi:icon-name(e.g.,mdi:lightbulb,mdi:thermometer) - Plasma icons:
plasma:icon-name(e.g.,plasma:home,plasma:weather)
- MDI icons:
- Icon preview appears next to the input field
- Placeholder shows the entity’s current icon from Home Assistant
Display Options
Display Attribute
The Display attribute option (ConfigItem.qml:25-41) allows you to show a specific entity attribute instead of the state.
Example use cases:
- Show
temperatureattribute of a climate entity - Display
brightnessof a light entity - Show
batterylevel of a sensor
The attribute dropdown is populated from the entity’s current attributes (
ConfigItem.qml:34). Different entity types have different available attributes.Service Actions
Service actions define what happens when you interact with the entity in the plasmoid widget. Actions are configured by selecting services from your Home Assistant instance.Click Action
The Click action (ConfigItem.qml:98-102) defines what service is called when you click the entity.
- Check the checkbox to enable click actions
- Select a service from the dropdown
- Available services are filtered by the entity’s domain
light.toggle- Toggle light on/offswitch.turn_on- Turn on a switchclimate.set_temperature- Open temperature control
Scroll Action
The Scroll action (ConfigItem.qml:104-119) defines what happens when you scroll on the entity with your mouse wheel.
- Check the checkbox to enable scroll actions
- Select a service from the dropdown
- Select a data field for the scroll operation
- Only services with numeric fields are available (
ConfigItem.qml:107) - The numeric field must match an entity attribute (
ConfigItem.qml:125) - Scrolling up/down adjusts the numeric value
light.turn_onwithbrightnessfield - Adjust light brightnessclimate.set_temperaturewithtemperaturefield - Adjust thermostatfan.set_percentagewithpercentagefield - Control fan speed
The scroll action dropdown is dynamically filtered to show only services with numeric fields that match the entity’s attributes (
ConfigItem.qml:121-128).Service Target and Data
When you configure an action, the plasmoid automatically constructs the service call (model.mjs:59-65):
- service: The full service name (e.g.,
light.toggle) - domain: Automatically extracted from entity ID
- target: Always set to the configured entity
- data_field: The attribute to modify (scroll actions only)
Notifications
The Notify about changes checkbox (ConfigItem.qml:64-68) enables desktop notifications when the entity’s state or attributes change.
- Enabled: Desktop notifications appear when the entity changes
- Disabled: No notifications are shown
- Entity name
- New state or attribute value
- Entity icon
Configuration Model
TheConfigEntity model (model.mjs:24-52) stores all entity settings:
- entity_id: Home Assistant entity identifier (required)
- name: Custom display name (optional)
- icon: Custom icon path (optional)
- attribute: Attribute to display instead of state (optional)
- default_action: Click action configuration (optional)
- scroll_action: Scroll action configuration (optional)
- notify: Enable change notifications (boolean)
- domain: Automatically derived from entity_id
Reactive Properties
The configuration model includes reactive properties (model.mjs:26-39):
- Changing
entity_idautomatically updates thedomain - Actions are validated when entity_id changes
- Invalid actions (wrong domain) are automatically cleared (
model.mjs:69-72)
Validation
The entity configuration dialog validates settings:- Required: Entity ID must be set and valid
- Optional: All other fields can be left empty
- Service availability: Action dropdowns only show applicable services
- Attribute availability: Attribute dropdown only shows actual entity attributes
The OK button remains disabled until a valid entity ID is entered (
ConfigItems.qml:172-177).Advanced Configuration
Service Field Detection
The plasmoid intelligently detects numeric service fields (ConfigItem.qml:121-128):
- Retrieves service definition from Home Assistant
- Recursively searches for fields with
selector.number - Filters to only fields matching entity attributes
- Populates the data field dropdown
Domain-Based Actions
Actions are filtered by entity domain to ensure compatibility:- A
lightentity only showslight.*services by default - Changing entity_id revalidates all configured actions
- Mismatched domain actions are automatically cleared
Examples
Example 1: Living Room Light
Example 2: Temperature Sensor
Example 3: Thermostat Control
Next Steps
Adding Entities
Learn how to add entities to your plasmoid
Backup & Restore
Save and restore entity configurations
