Hey everyone, I wanted to share my recent journey setting up my smart home system. As a new user, I’ve been diving into the world of MQTT, automations, and integrating various smart devices. It’s been a bit of a learning curve, but I’m thrilled with the results so far!
My Setup Journey
I started by setting up an MQTT receiver to gather data from my solar inverter. Initially, I was a bit confused about how to name the sensors properly. After some research, I figured out how to structure my mqtt.yaml file to display the inverter data neatly on my homepage. Here’s what I ended up with:
yaml
sensor:
- name: “Inverter Total Yield”
state_topic: “sbfspot_ggtron”
unit_of_measurement: ‘kWh’
value_template: “{{ value_json.ETotal }}”
icon: mdi:solar-power - name: “Inverter Today Yield”
state_topic: “sbfspot_ggtron”
unit_of_measurement: ‘kWh’
value_template: “{{ value_json.EToday }}”
icon: mdi:solar-power
Automations Based on Time
Next, I wanted to create some time-based automations. I set up an automation to turn off my washing machine input boolean after certain conditions were met. It took a bit of tweaking, but I finally got it working! Here’s a snippet of my automation setup:
yaml
- alias: Washer Automation
trigger:- platform: state
entity_id: input_boolean.washer
to: ‘on’
condition:
condition: or
conditions:- condition: numeric_state
entity_id: sensor.washer_power
below: 20
for: seconds: 120 - condition: and
conditions:- condition: numeric_state
entity_id: sensor.washer_power
below: 40
for: seconds: 120 - condition: state
entity_id: input_boolean.washer
state: ‘on’
for: minutes: 60
action:
service: input_boolean.turn_off
entity_id: input_boolean.washer
- condition: numeric_state
- condition: numeric_state
- platform: state
Integrating Security Devices
I also integrated my Dahua keypad with Home Assistant. Initially, I wasn’t sure if the keypad events would be supported, but after some digging, I found the right integration module. It’s great to have my security system fully integrated now!
Tips for New Users
- Start Small: Begin with simple automations and gradually add more complex ones.
- Leverage MQTT: It’s a powerful tool for connecting various devices and sensors.
- Experiment and Learn: Don’t be afraid to tweak your configurations and learn from each iteration.
Final Thoughts
Setting up my smart home has been an incredibly rewarding experience. It’s amazing how technology can enhance our daily lives. I’m excited to continue exploring new integrations and automations. If anyone has tips or experiences to share, I’d love to hear them!
Happy smart home building! ![]()