luarmr
November 9, 2022, 4:50am
1
It is any way I can call an API with the method PUT in the Rule Machine?
1 Like
Not directly, as Rule Machine only has actions for GET and POST. However, you can do so with a custom app or driver, including this one:
Yes, this is very easy to accomplish on Hubitat's platform. It is really almost identical to ST's implementation.
For example, take a look at my "HTTP Momentary Switch" Driver for Hubitat.
Also, take a look at this WiKi post which highlights some of the simple changes necessary when porting apps/driver from ST to Hubitat.
You could also write a custom driver (or app/driver combo, if needed) directly for the device using similar methods, but something like this should get you started either way.
5 Likes
luarmr
November 9, 2022, 5:43am
3
Thanks for the answer; I will go for the custom driver. With a little extra effort, I think I can make something useful for others with this api.
1 Like
luarmr
November 9, 2022, 3:56pm
4
If interested, this is the driver
I just created a driver to interact with Pixela.
Currently, the driver allows you to send increments and decrements to the Pixela API.
If you don't know pixela (I didn't know until yesterday), Allow you to track things. It is a very simple API that allows you to track actions, resulting in this type of graph (They are 3 types of graphs, I believe):
[browse_detail_html]
You can follow the process to create a user on the pixela docs: Pixela | Record and Track your habits or effort. All by AP…
system
Closed
November 9, 2023, 3:56pm
5
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.