{"id":8229,"date":"2022-12-22T20:51:18","date_gmt":"2022-12-22T19:51:18","guid":{"rendered":"https:\/\/www.thermiq.net\/?page_id=8229"},"modified":"2024-02-05T14:11:01","modified_gmt":"2024-02-05T13:11:01","slug":"node-red-examples","status":"publish","type":"page","link":"https:\/\/www.thermiq.net\/se\/hw-2\/node-red-examples\/","title":{"rendered":"Node-RED Exempel"},"content":{"rendered":"<p>This is an examle room flow, Sending payload to my ThermIQ\u2019s SET-endpoint<\/p>\n<div class=\"lightbox-wrapper\">\n<p><a class=\"lightbox\" title=\"image\" href=\"https:\/\/community-assets.home-assistant.io\/original\/4X\/d\/3\/8\/d3810c87c7d69f5802182a3f7d5e38fb406d3101.png\" data-download-href=\"\/uploads\/short-url\/ub3epbtiARTePsBNlHUD9ugSsGl.png?dl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/community-assets.home-assistant.io\/original\/4X\/d\/3\/8\/d3810c87c7d69f5802182a3f7d5e38fb406d3101.png\" alt=\"image\" width=\"940\" height=\"64\" data-base62-sha1=\"ub3epbtiARTePsBNlHUD9ugSsGl\" data-small-upload=\"https:\/\/community-assets.home-assistant.io\/optimized\/4X\/d\/3\/8\/d3810c87c7d69f5802182a3f7d5e38fb406d3101_2_10x10.png\" \/><\/a><\/p>\n<div class=\"meta\"><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Where the extract_temperature creates the payload:<\/p>\n<blockquote><p>room_temp=msg.payload.temperature;<\/p>\n<p>msg.payload={INDR_T:room_temp};<\/p>\n<p>return msg;<\/p><\/blockquote>\n<div class=\"cooked\">\n<p>This is an example tibber flow which sends an EVU message on the hour.<br \/>\nCurrently selecting the cheapest 20 hours and if price is lower than treshold then enable, else disable<\/p>\n<p>&nbsp;<\/p>\n<div class=\"lightbox-wrapper\"><a class=\"lightbox\" title=\"image\" href=\"https:\/\/community-assets.home-assistant.io\/original\/4X\/7\/a\/b\/7ab49889913790fda5a6813c6b81969dc4b5e780.png\" data-download-href=\"\/uploads\/short-url\/hvvaVnrX8dwPDmjR7IIzQMN0bEk.png?dl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/community-assets.home-assistant.io\/optimized\/4X\/7\/a\/b\/7ab49889913790fda5a6813c6b81969dc4b5e780_2_690x226.png\" srcset=\"https:\/\/community-assets.home-assistant.io\/optimized\/4X\/7\/a\/b\/7ab49889913790fda5a6813c6b81969dc4b5e780_2_690x226.png, https:\/\/community-assets.home-assistant.io\/optimized\/4X\/7\/a\/b\/7ab49889913790fda5a6813c6b81969dc4b5e780_2_1035x339.png 1.5x, https:\/\/community-assets.home-assistant.io\/original\/4X\/7\/a\/b\/7ab49889913790fda5a6813c6b81969dc4b5e780.png 2x\" alt=\"image\" width=\"800\" height=\"262\" data-base62-sha1=\"hvvaVnrX8dwPDmjR7IIzQMN0bEk\" data-small-upload=\"https:\/\/community-assets.home-assistant.io\/optimized\/4X\/7\/a\/b\/7ab49889913790fda5a6813c6b81969dc4b5e780_2_10x10.png\" \/><\/a><\/div>\n<p>The enable function looks like this<\/p>\n<div>\n<blockquote>\n<div>msg.payload='{&#8221;EVU&#8221;:0}&#8217;;<\/div>\n<div>return msg;<\/div>\n<\/blockquote>\n<div>\n<p>The disable function looks like this<\/p>\n<div>\n<blockquote>\n<div>msg.payload='{&#8221;EVU&#8221;:1}&#8217;;<\/div>\n<div>return msg;<\/div>\n<\/blockquote>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is an examle room flow, Sending payload to my ThermIQ\u2019s SET-endpoint &nbsp; Where the extract_temperature creates the payload: room_temp=msg.payload.temperature;&hellip;<\/p>\n","protected":false},"author":786,"featured_media":0,"parent":6959,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-8229","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.thermiq.net\/se\/wp-json\/wp\/v2\/pages\/8229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thermiq.net\/se\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.thermiq.net\/se\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.thermiq.net\/se\/wp-json\/wp\/v2\/users\/786"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thermiq.net\/se\/wp-json\/wp\/v2\/comments?post=8229"}],"version-history":[{"count":3,"href":"https:\/\/www.thermiq.net\/se\/wp-json\/wp\/v2\/pages\/8229\/revisions"}],"predecessor-version":[{"id":8453,"href":"https:\/\/www.thermiq.net\/se\/wp-json\/wp\/v2\/pages\/8229\/revisions\/8453"}],"up":[{"embeddable":true,"href":"https:\/\/www.thermiq.net\/se\/wp-json\/wp\/v2\/pages\/6959"}],"wp:attachment":[{"href":"https:\/\/www.thermiq.net\/se\/wp-json\/wp\/v2\/media?parent=8229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}