{"id":273,"date":"2019-11-28T12:56:32","date_gmt":"2019-11-28T12:56:32","guid":{"rendered":"http:\/\/jeedom.sigalou-domotique.fr\/lancer-une-commande-a-l-affichage-d-une-page-design-sur-jeedom"},"modified":"2024-04-21T13:17:26","modified_gmt":"2024-04-21T11:17:26","slug":"lancer-une-commande-a-l-affichage-d-une-page-design-sur-jeedom","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/lancer-une-commande-a-l-affichage-d-une-page-design-sur-jeedom","title":{"rendered":"Start an order when a Design page is displayed on Jeedom"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-270\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/11\/logojeedom.png\" alt=\"logojeedom\" width=\"270\" height=\"187\" \/><\/p>\n<p>I searched for how to start an order when opening a page <strong>design<\/strong>.<!--more--><\/p>\n<p>The most obvious solution would be to add the command to the command that opens the design, but sometimes, when using a menu in HTML, for example, you do not go through a command.<\/p>\n<p>The method was given to me on the forum by @<span class=\"first username\">Aidom, whom I still thank so much she is simple. Here it is:<\/span><\/p>\n<ul>\n<li>Recorded<strong>Id<\/strong> of the command you want to launch<\/li>\n<li>When you're on your <strong>design<\/strong>, right-click and then go to<strong> Add text\/html<\/strong><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-271\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/11\/design.png\" alt=\"design\" width=\"183\" height=\"395\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/11\/design.png 183w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/11\/design-139x300.png 139w\" sizes=\"auto, (max-width: 183px) 100vw, 183px\" \/><\/p>\n<ul>\n<li>In text, put:<\/li>\n<\/ul>\n<pre><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">script<\/span> <span class=\"hljs-attr\">type<\/span>=<span class=\"hljs-string\">\"text\/javascript\"<\/span>&gt;<\/span><span class=\"javascript\">     $(<span class=\"hljs-built_in\">document<\/span>).ready(jeedom.cmd.execute({<span class=\"hljs-attr\">id<\/span>: <span class=\"hljs-string\">'278'<\/span>})); <\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">script<\/span>&gt;<\/span>\n\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-272\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/11\/Screenshot_2019-11-28_Chauffage_-_Jeedom.png\" alt=\"Screenshot 2019 11 28 Heating Jeedom\" width=\"596\" height=\"141\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/11\/Screenshot_2019-11-28_Chauffage_-_Jeedom.png 596w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/11\/Screenshot_2019-11-28_Chauffage_-_Jeedom-300x71.png 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/>\n\n<\/pre>","protected":false},"excerpt":{"rendered":"<p>I looked at how to launch an order when opening a design page.<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,23],"tags":[],"class_list":["post-273","post","type-post","status-publish","format-standard","hentry","category-domotique","category-jeedom-2"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/comments?post=273"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/273\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}