Open ScharV opened 4 years ago
Nice new feature. Do you know how popular is this plugin? This plugin has its own unique API so adding support for it would be more involved. The other power plugins work very similar (since they were done by the same developer) so adding support for them was not much work.
I'm with limited time these days so trying to optimize it. :)
Thanks, Gaston
Thanks for your fast reply💪🏼 Greetings Marv
Hi,
I'm the creator of Tradfri plugin, I'm also interesting with this feature. I don't have time to see how to implement this feature in your app. But if you want my help to add endpoint in the API I can do that ;)
Hey @ralmn, nice meeting you!! It would be convenient to have the following APIs:
Thanks, Gaston
Sorry for the delay.
The ikea plugin handle only one plug.
So the two endpoint are :
/plugin/ikea_tradfri/state
with method GET
would return json : { "state": true }
or { "state": false }
/plugin/ikea_tradfri/state
with method POST
and body in JSON (header Content-Type: application/json
) { "state": true }
or { "state": false }
: would set the plug state and return json : { "state": true }
or { "state": false }
It's on version 1.3.1 (https://github.com/ralmn/OctoPrint-Ikea-tradfri/releases/tag/1.3.1) & commit https://github.com/ralmn/OctoPrint-Ikea-tradfri/commit/12753023a808e9628b5896ffef902dfaa07d9fd7
Hey @gdombiak there is a new plugin called Ikea tradfri which allows you to switch on and off your printers ikea outlet. Would be nice to do this via octopod too. Plugin: https://github.com/ralmn/OctoPrint-Ikea-tradfri
Best regards ScharV