ha-device-conditions-actions

Generate Python templates for Home Assistant device conditions and actions.

6|1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/L3DigitalNet/Claude-Code-Plugins --skill ha-device-conditions-actions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ha-device-conditions-actions
Source: https://github.com/L3DigitalNet/Claude-Code-Plugins/tree/main/plugins/home-assistant-dev/skills/ha-device-conditions-actions
Command: npx skills add https://github.com/L3DigitalNet/Claude-Code-Plugins --skill ha-device-conditions-actions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the creation and management of device-specific conditions and actions within Home Assistant automations, enabling more robust and responsive smart home logic.

Core Features & Use Cases

  • Device Conditions: Define checks for device states (e.g., is_on, is_off, is_connected) to control automation flow.
  • Device Actions: Implement commands to control devices directly (e.g., turn_on, turn_off, toggle).
  • Use Case: Create an automation that only turns on your lights when you arrive home (device_condition) and then sets the thermostat to your preferred temperature (device_action).

Quick Start

Use the ha-device-conditions-actions skill to define a condition for checking if a device is on.

Frequently Asked Questions about ha-device-conditions-actions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define device conditions and actions in a Home Assistant integration?

Device conditions in Home Assistant are state checks like is_on, is_off, or is_connected that control automation flow, ensuring actions only execute when devices meet specific criteria.

How do I set up a Home Assistant automation that checks device state before triggering an action?

You combine device conditions and device actions within your automation logic, using Python templates to verify a state like is_on before executing a command like turn_on for the target device.

Do I need to follow a specific schema for Home Assistant device automations?

Yes, implementing device conditions and actions requires adherence to Home Assistant's device automation schema and utilizing its built-in helper functions for state checks and command execution.

Can I use Python to implement smart home device state checks and command execution in Home Assistant?

Yes, this approach provides Python code templates specifically for defining device conditions and actions, facilitating the implementation of state checks and command execution for smart home devices.

What's the best way to control multiple smart home devices conditionally in Home Assistant?

Use device conditions to verify states like is_connected and device actions to execute commands like toggle, chaining multiple state checks and command executions within a single automation flow.