{"id":497,"date":"2021-11-20T18:26:18","date_gmt":"2021-11-20T18:26:18","guid":{"rendered":"https:\/\/www.ifoedit.com\/wp_ps\/?page_id=497"},"modified":"2021-11-20T18:50:41","modified_gmt":"2021-11-20T18:50:41","slug":"api","status":"publish","type":"page","link":"https:\/\/www.ifoedit.com\/wp_ps\/index.php\/api\/","title":{"rendered":"API"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"497\" class=\"elementor elementor-497\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b0ffe8a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b0ffe8a\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-72dc610\" data-id=\"72dc610\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-91739aa elementor-widget elementor-widget-heading\" data-id=\"91739aa\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Locale Plugin (f\u00fcr Tasker, Llama, Automagic etc.)<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d0e6968 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d0e6968\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-53ed75d\" data-id=\"53ed75d\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-962e6c2 elementor-widget elementor-widget-text-editor\" data-id=\"962e6c2\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In der aktuellen Beta Version von PowerSwitch ist ein Locale Plugin integriert, welches in unterst\u00fctzten Apps wie Tasker, Llama, Automagic etc. als Aktion ausgew\u00e4hlt und einfach konfiguriert werden kann. M\u00f6chte man als Nutzer die Regeln f\u00fcr die Automatisierung mit komplexer gestalten, ist dies die einfachste Variante.<\/p><p>Das Plugin wird in den verschiedenen Apps an unterschiedlichen Stellen angezeigt, sollte aber immer entweder als &#8220;Locale Plugin&#8221; oder einfach nur &#8220;Plugin&#8221; zu erkennen sein. Bei der Konfiguration kann dann &#8220;PowerSwitch Action Plugin&#8221; ausgew\u00e4hlt und ebenfalls konfiguriert werden.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-fcda5b0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"fcda5b0\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f8e8710\" data-id=\"f8e8710\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2eac6e5 elementor-widget elementor-widget-heading\" data-id=\"2eac6e5\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Intent API<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9bc22f2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9bc22f2\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-da87fd4\" data-id=\"da87fd4\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a5a055c elementor-widget elementor-widget-text-editor\" data-id=\"a5a055c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Um Schalter in PowerSwitch auch von anderen Apps aus schalten zu k\u00f6nnen bietet PowerSwitch aber auch eine Schnittstelle \u00fcber das Intentsystem von Android an. Damit l\u00e4sst sich PowerSwitch mit Apps wie Tasker, Llama, Automagic und vielen weiteren (z.B. auch der eigens programmierten App) fernsteuern.<\/p><p>Damit PowerSwitch versteht, was getan werden soll m\u00fcssen daf\u00fcr bestimmte Spezifikationen eingehalten werden, die im Folgenden beschrieben werden (\u00c4nderungen vorbehalten):<\/p><p>Jeder Intent besteht aus einer &#8220;Action&#8221; und ein oder mehrereren Extras vom Typ String.<\/p><p>Empf\u00e4nger Aktion ausl\u00f6sen:<br \/>Das Ausf\u00fchren eines Buttons eines Empf\u00e4ngers in einem bestimmten Raum, innerhalb einer Wohnung.<\/p><p>Action: eu.power_switch.action<br \/>Extra 1: Key: &#8220;Room&#8221; Value: &#8220;Wohnzimmer&#8221;<br \/>Extra 2: Key: &#8220;Receiver&#8221; Value: &#8220;Schrank&#8221;<br \/>Extra 3: Key: &#8220;Button&#8221; Value: &#8220;An&#8221;<\/p><p>\u00a0<\/p><p>Raum Aktion ausl\u00f6sen:<br \/>Das Ausf\u00fchren eines Buttons f\u00fcr alle Empf\u00e4nger in einem bestimmten Raum, innerhalb einer Wohnung<\/p><p>Action: eu.power_switch.action<br \/>Extra 1: Key: &#8220;Apartment&#8221; Value: &#8220;Home&#8221;<br \/>Extra 2: Key: &#8220;Room&#8221; Value: &#8220;Wohnzimmer&#8221;<br \/>Extra 3: Key: &#8220;Button&#8221; Value: &#8220;An&#8221;<\/p><p>\u00a0<\/p><p>Szenen Aktion ausl\u00f6sen:<br \/>Das Aktivieren einer Szene innerhalb einer Wohnung<\/p><p>Action: eu.power_switch.action<br \/>Extra 1: Key: &#8220;Apartment&#8221; Value: &#8220;Home&#8221;<br \/>Extra 2: Key: &#8220;Scene&#8221; Value: &#8220;Kinofilm&#8221;<\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Locale Plugin (f\u00fcr Tasker, Llama, Automagic etc.) In der aktuellen Beta Version von PowerSwitch ist ein Locale Plugin integriert, welches in unterst\u00fctzten Apps wie Tasker, Llama, Automagic etc. als Aktion ausgew\u00e4hlt und einfach konfiguriert werden kann. M\u00f6chte man als Nutzer<\/p>\n","protected":false},"author":1,"featured_media":520,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-497","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/www.ifoedit.com\/wp_ps\/index.php\/wp-json\/wp\/v2\/pages\/497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ifoedit.com\/wp_ps\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.ifoedit.com\/wp_ps\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.ifoedit.com\/wp_ps\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ifoedit.com\/wp_ps\/index.php\/wp-json\/wp\/v2\/comments?post=497"}],"version-history":[{"count":9,"href":"https:\/\/www.ifoedit.com\/wp_ps\/index.php\/wp-json\/wp\/v2\/pages\/497\/revisions"}],"predecessor-version":[{"id":527,"href":"https:\/\/www.ifoedit.com\/wp_ps\/index.php\/wp-json\/wp\/v2\/pages\/497\/revisions\/527"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ifoedit.com\/wp_ps\/index.php\/wp-json\/wp\/v2\/media\/520"}],"wp:attachment":[{"href":"https:\/\/www.ifoedit.com\/wp_ps\/index.php\/wp-json\/wp\/v2\/media?parent=497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}