I’ve got some window covering products. The hub that comes with it does only allow REST commands for scene activation (which are defined in the proprietary app).
I’d like to create a scene in HA which fires such a rest command. Right now my solution would be to use a shell command, but I don’t think that’s really nice.
Is there some “generic” REST component to play with ?
As far as I understand that’s an api to communicate with ha “from outside”. Not to communicate from within ha to another component… Or am I wrong?
There are a series of RESTful components:
home-assistant.io/components/switch.rest/
home-assistant.io/components/sensor.rest/
home-assistant.io/components/bi … nsor.rest/
Sorry. happyleaves has the good answer.
[quote=“happyleaves”]There are a series of RESTful components:
home-assistant.io/components/switch.rest/
home-assistant.io/components/sensor.rest/
home-assistant.io/components/bi … nsor.rest/[/quote]
Thanks,
I know those. I’ll stick with the shell command…
what is the reason for that?
I am going to be using the particle.io photons to do some automation, and i believe i need to use a POST to get them to switch, etc. am i going to have to go down the same path as you?
[quote=“palitu”]what is the reason for that?
I am going to be using the particle.io photons to do some automation, and i believe i need to use a POST to get them to switch, etc. am i going to have to go down the same path as you?[/quote]
I need to make a GET request for a scenario to activate.
A rest sensor can’t be manually triggered. They refresh on a set time interval. So they’re useless in my case.
The rest switch is an on/of toggle and a polling structure for status updates which I don’t want. This will not work either for me.
So a console command is my only option…