{"id":566,"date":"2021-03-08T10:51:44","date_gmt":"2021-03-08T08:51:44","guid":{"rendered":"https:\/\/silviamarin.ro\/?p=566"},"modified":"2021-03-08T10:51:44","modified_gmt":"2021-03-08T08:51:44","slug":"home-assistant-automatizari","status":"publish","type":"post","link":"https:\/\/marinelvis.xyz\/index.php\/2021\/03\/08\/home-assistant-automatizari\/","title":{"rendered":"HOME ASSISTANT: AUTOMATIZARI"},"content":{"rendered":"<p><strong>Aprinde lumina la miscare<\/strong><br \/>\nIn fisierul <em>automation.yaml<\/em> se scrie:<\/p>\n<blockquote><p><em>&#8211; alias: Aprinde LampaCURTE la miscare<\/em><br \/>\n<em>\u00a0 trigger:<\/em><br \/>\n<em>\u00a0\u00a0\u00a0 &#8211; platform: mqtt<\/em><br \/>\n<em>\u00a0\u00a0\u00a0\u00a0\u00a0 topic: &#8222;miscare\/POARTA&#8221;<\/em><br \/>\n<em>\u00a0\u00a0\u00a0\u00a0\u00a0 payload: &#8222;on&#8221;<\/em><br \/>\n<em>#\u00a0 &#8211; platform: state<\/em><br \/>\n<em>#\u00a0\u00a0\u00a0 entity_id: sensor.senzor_miscare<\/em><br \/>\n<em>#\u00a0\u00a0\u00a0 to: &#8216;on&#8217;<\/em><br \/>\n<em>\u00a0 condition:<\/em><br \/>\n<em>#\u00a0\u00a0 \u00a0&#8211; condition: sun<\/em><br \/>\n<em>#\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0after: sunset<\/em><br \/>\n<em>#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 before: sunrise<\/em><br \/>\n<em>\u00a0\u00a0 &#8211; condition: time<\/em><br \/>\n<em>\u00a0\u00a0\u00a0\u00a0\u00a0 after: &#8222;19:00:00&#8221;<\/em><br \/>\n<em>\u00a0\u00a0\u00a0\u00a0\u00a0 before: &#8222;06:00:00&#8221;<\/em><br \/>\n<em>\u00a0\u00a0 &#8211; condition: state<\/em><br \/>\n<em>\u00a0\u00a0 \u00a0 \u00a0entity_id: light.lampacurte<\/em><br \/>\n<em>\u00a0\u00a0\u00a0\u00a0\u00a0 state: &#8222;off&#8221;<\/em><br \/>\n<em>\u00a0 action:<\/em><br \/>\n<em>\u00a0 &#8211; service: light.turn_on<\/em><br \/>\n<em>\u00a0\u00a0\u00a0 entity_id: light.lampacurte<\/em><br \/>\n<em>\u00a0 &#8211; delay:<\/em><br \/>\n<em>\u00a0\u00a0\u00a0\u00a0\u00a0 minutes: 1<\/em><br \/>\n<em>\u00a0 &#8211; service: light.turn_off<\/em><br \/>\n<em>\u00a0\u00a0\u00a0 entity_id: light.tasmota_3<\/em><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Aprinde lumina la miscare In fisierul automation.yaml se scrie: &#8211; alias: Aprinde LampaCURTE la miscare \u00a0 trigger: \u00a0\u00a0\u00a0 &#8211; platform: mqtt \u00a0\u00a0\u00a0\u00a0\u00a0 topic: &#8222;miscare\/POARTA&#8221; \u00a0\u00a0\u00a0\u00a0\u00a0 payload: &#8222;on&#8221; #\u00a0 &#8211; platform: state #\u00a0\u00a0\u00a0 entity_id: sensor.senzor_miscare #\u00a0\u00a0\u00a0 to: &#8216;on&#8217; \u00a0 condition: #\u00a0\u00a0 \u00a0&#8211; condition: sun #\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0after: sunset #\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 before: sunrise \u00a0\u00a0 &#8211; condition: time \u00a0\u00a0\u00a0\u00a0\u00a0 after: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-566","post","type-post","status-publish","format-standard","hentry","category-fara-categorie"],"_links":{"self":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/posts\/566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=566"}],"version-history":[{"count":0,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/posts\/566\/revisions"}],"wp:attachment":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}