RESTful_command template for Home Assistant #71
Replies: 6 comments 13 replies
-
|
Ooo, that looks great. I will have to try it out. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
shiny |
Beta Was this translation helpful? Give feedback.
-
|
Hi, i've adopted a similar approach for applying scenes. Two improvements:
|
Beta Was this translation helpful? Give feedback.
-
|
While thinking about it: the serial equals the mac address of the device. With an unifi access point, you can use the unifi integration to find the mac address. Could be something? |
Beta Was this translation helpful? Give feedback.
-
|
I've expanded the functionality a little bit.
|
Beta Was this translation helpful? Give feedback.
-
|
Here's another RESTful Command, this time to trigger a two-hour clean cycle on all available HEV bulbs: lifx_clean:
url: "http://localhost:6100/v1/lifx/command"
method: put
content_type: application/json
payload: |
{
"command": "clean/start",
"args": {
"matcher": "cap=hev",
"duration": 7200
}
} |
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
I thought I'd share a
restful_commandtemplate you can add to your Home Assistantconfiguration.yamlto simplify making a kelvin-based transformations when using the Photons Interactor add-on.Essentially, using a template means you don't have to have lots of the same JSON repeated over and over in your configuration. Instead, you can use this simple YAML defintion.
Here's what you need to add to
configuration.yaml(or wherever you put yourrestful_commandconfiguration!):Beta Was this translation helpful? Give feedback.
All reactions