diff --git a/machines/storage/s0/home-automation.nix b/machines/storage/s0/home-automation.nix index 34006fc..55c4cbd 100644 --- a/machines/storage/s0/home-automation.nix +++ b/machines/storage/s0/home-automation.nix @@ -47,6 +47,7 @@ enable = true; extraComponents = [ "default_config" + "rest_command" "esphome" "met" "radio_browser" @@ -75,7 +76,6 @@ "zha" "bluetooth" ]; - # config = null; config = { # Includes dependencies for a basic setup # https://www.home-assistant.io/integrations/default_config/ @@ -94,6 +94,15 @@ ]; # Allow using automations generated from the UI "automation ui" = "!include automations.yaml"; + + "rest_command" = { + json_post_request = { + url = "{{ url }}"; + method = "POST"; + content_type = "application/json"; + payload = "{{ payload | default('{}') }}"; + }; + }; }; }; }