This Emacs script is intended to be used with https://github.com/home-assistant/home-assistant. Once set up, you will be able to control your home automation system from within emacs!
You will have to tell your emacs where your home-assistant server is listening.
(setq mje/homeassistant-url "http://example.com:8123")
You will also likely want to set up a keyboard shortcut.
(global-set-key (kbd "C-c s h") 'helm-homeassistant)