Simple plugin to provide some interaction with Home Assistant, currently supports:
- Rendering templates
Using packer.nvim, require plenary.nvim for its curl wrapper.
use({
"muniter/homeassistant.nvim",
requires = {
"nvim-lua/plenary.nvim",
},
})
Requires configuration before being able to use the defined command.
require("homeassistant").setup({
url = "http://homeassistant.loc:8123",
token = "my_long_lived_access_token"
})
To render a template, run the command HARender
and a floating window with the rendered template will pop up. Make sure the setup function has been run before using the command.