All integrations
Built inSmart home and web

Home Assistant

Included with Macro Deck

Switch lights, run scenes and scripts, and show live states from your Home Assistant on your deck.

  • Turn entities on, off or toggle them, with buttons that show their state
  • Set lights, covers, thermostats and media players
  • Run scenes, scripts and automations, or call any service
  • Live variables for any entity state or attribute
  • Triggers on state changes and on events from the event bus

The Home Assistant integration connects Macro Deck to your Home Assistant over its WebSocket API. Macro Deck keeps one connection open, so states arrive the moment they change in Home Assistant, and actions run right away. Home Assistant can run anywhere Macro Deck can reach it: on the same computer, a Raspberry Pi or server in your network, or a remote address.

What you can do

  • Turn one or more entities on or off, or toggle them. A button with Toggle lights up while the entity is on.
  • Set a light's state, brightness, color, color temperature and transition with Set Light.
  • Open, close, stop or position a cover, set a thermostat's temperature, mode, fan mode and preset, and control the playback and volume of a media player.
  • Activate a scene, run a script with variables, and trigger, enable or disable an automation.
  • Call any service with Call Service, with entities, devices or areas as the target and data as JSON.
  • Read an entity's state or attribute into a Macro Deck variable with Get Entity State.

Some example setups:

  • A button with Toggle for your desk lamp that shows whether the lamp is on.
  • A Movie button that activates your movie scene and pauses the music on a media player.
  • A slider bound to a light's brightness, so you dim it from the deck and see changes made in Home Assistant.
  • A button whose label shows the temperature of a sensor, and a flow on Entity State Changed that shows a notification when the front door opens.

Variables and live updates

Home Assistant offers far more values than Macro Deck lists up front. You find every entity in the collapsed Unbound variables group of the integration's variables, on the Variables page and in every variable picker. Open an entity to see its state and attributes and choose Bind on the one you need: it becomes a normal variable that updates live. A slider can control a light's brightness, a fan's speed, a cover's position, a media player's volume or a thermostat's temperature this way.

When the connection drops, Macro Deck reconnects by itself, waiting a little longer after each failed try, up to one minute. The Connected and Disconnected triggers fire when that happens, and actions fail with a message while Home Assistant is not connected. You can connect one Home Assistant.

AdGuard Home

Included with Macro Deck

Turn AdGuard Home protection on, off or pause it, and show its statistics on your deck.

RSS feeds

Included with Macro Deck

Follow RSS and Atom feeds, show their newest articles in widgets and react when new articles arrive.

HTTP

Included with Macro Deck

Send HTTP requests from a button and save values from the response into variables.

Weather

Included with Macro Deck

Show the current weather and the forecast for your locations on your deck, without an API key.