Hey there, I just wanted to share my experience transitioning from Homematic to Home Assistant (HA). At first glance, HA does seem a bit more complex compared to my trusty CCU3 setup. However, once I dove into it, I realized it’s incredibly powerful and flexible!
In Homematic, I had two switches controlling a variable for my roller shutters—‘Automatik’ and ‘manuell’. The automation would check this variable and only trigger in ‘Automatik’ mode. I was curious how to replicate this in HA. After some research, I found that HA handles this beautifully using input booleans and conditional automations.
Here’s how I set it up:
-
Create an Input Boolean: I added an input boolean in my
configuration.yamlto represent the automation mode.
yaml
input_boolean:
roller_shutter_mode:
name: Roller Shutter Automation Mode
initial: off
icon:mdi:automation -
Link Switches to the Boolean: Each switch toggles the boolean state. For example, the ‘Automatik’ switch turns it on, and the ‘manuell’ switch turns it off.
-
Conditional Automation: I created an automation that triggers only when the boolean is ‘on’.
yaml
automation:
alias: Roller Shutter Automation
trigger:- platform: state
entity_id: input_boolean.roller_shutter_mode
to: ‘on’
condition: - condition: state
entity_id: input_boolean.roller_shutter_mode
state: ‘on’
action: - service: cover.open_cover
entity_id: cover.all_rollers
- platform: state
This setup mirrors my Homematic workflow perfectly! HA’s ability to use variables and conditional logic makes it incredibly versatile. Plus, the community resources and documentation are fantastic for troubleshooting and learning new features.
If anyone has questions or needs help setting something up, feel free to reach out. Happy automating! ![]()