Interfacing With Home Assistant

Invoking Actions In Home Assistant, And Reading Sensor Values From Other Devices Managed By Home Assistant

If your ESPHome device has been added to Home Assistant, you can interface your configuration with Home Assistant entities in a number of ways.

Your device must have been added to Home Assistant before you can access Home Assistant entities. Even if you are using ESPHome inside of Home Assistant, you still need to explicitly add your ESPHome device to Home Assistant. Typically, when you create a new ESPHome device, the first time you upload your firmware to it and run it, Home Assistant pops up an automatic notification about “newly discovered devices”. Click the notification and follow the instructions to add the device.

Overview

Here are a few use cases illustrating the potential of interfacing ESPHome configurations with Home Assistant:

  • Publishing Information: your microcontroller may be battery-driven, and you’d like to publish the current battery state to Home Assistant so in the Home Assistant dashboard, you can immediately see when the battery runs low.
  • Publishing Controls: you may want to use buttons on your device to control other devices managed by Home Assistant. For example, you may want to create a set of buttons that can switch on and off some lights in your house.
  • Receiving Device State: you want Home Assistant to inform your device when a given entity state changes. For example, you want your device to show icons based on which lamps in your house are currently turned on or off.

Slow Website?

This website is very fast, and pages should appear instantly. If this site is slow for you, then your routing may be messed up, and this issue does not only affect done.land, but potentially a few other websites and downloads as well. Here are simple steps to speed up your Internet experience and fix issues with slow websites and downloads..

Comments

Please do leave comments below. I am using utteran.ce, an open-source and ad-free light-weight commenting system.

Here is how your comments are stored

Whenever you leave a comment, a new github issue is created on your behalf.

  • All comments become trackable issues in the Github Issues section, and I (and you) can follow up on them.

  • There is no third-party provider, no disrupting ads, and everything remains transparent inside github.

Github Users Yes, Spammers No

To keep spammers out and comments attributable, all you do is log in using your (free) github account and grant utteranc.es the permission to submit issues on your behalf.

If you don’t have a github account yet, go get yourself one - it’s free and simple.

If for any reason you do not feel comfortable with letting the commenting system submit issues for you, then visit Github Issues directly, i.e. by clicking the red button Submit Issue at the bottom of each page, and submit your issue manually. You control everything.

Discussions

For chit-chat and quick questions, feel free to visit and participate in Discussions. They work much like classic forums or bulletin boards. Just keep in mind: your valued input isn’t equally well trackable there.

  Show on Github    Submit Issue

(content created Oct 15, 2024)