Selecionar Rádios com um aqara opple

Boas, deixo-vos aqui um flow que estive a trabalhar para poder escolher as rádios que quero ouvir assim como em que google home vai tocar. Tenho um google na sala, outro na cozinha e depois na app home criei um grupo com as 2 colunas que se chamei ambiente que aparece automaticamente no HA. Posso também desligar a música, assim como aumentar e diminuir o volume. Estou a usar um aqara opple…

[{"id":"40026675.b5bff8","type":"group","z":"fda7cba4.62e2f8","name":"","style":{"fill":"#92d04f","fill-opacity":"0.89","label":true},"nodes":["448f0e3a.d21f3","edb1ab9c.e81b58","e891bd6f.52d75","d4d267f2.381d48","827cb09b.25e18","9a2c408c.317db","58f71461.5ee5cc","1bd1e77e.d63709","36b53a2e.232ba6","b19d583c.4dfc08","4d64ea6a.d20204","3f96c87d.0c7e38","a82e1f3d.3ccff","22ba3460.ae80ac","bc3bab33.e83bb8","e8565bca.7ae3b8","4cb9037c.9f136c","2279fef0.91a8f2","3e9e9b77.87dd24","a4fb50ba.6b853","ccdaa4ad.b16a48","b0163bb0.bfe0c8","5894c64a.660d38","2f09ae9d.202622","cbca934f.6061d","e3fe067d.2462e8","f1bd23b3.21882","5049ee84.c53ab","df1162c5.ed731","f527e20f.3847a","c84d076d.9acde8","fe89f72e.f83b98","d0215c09.d65","45cc11.af1073f","50593fe0.347e","aede89fd.d5c5c8","3eb4c860.554cc8","f421249e.1a3c58","974daebc.19006","7196ea26.830c34","b1c67dc.8383f8","b490139c.80b63","49bef1ed.1bf59","85e906f2.094af8","e1e2f45b.88e798","1c853c50.e427a4","bb757cb8.cfd89","84a2c247.21003","22d8c23a.fbed4e","3eceab32.2b2244","6d5aaae3.2c4124","602d0868.1213b8","9a1fa12f.35ea7","ac9a18ad.a4ff98","6e59d2b2.4a86dc","cfb2f41b.130bf8","e4ba5c8a.bd9b6","1ed4486c.9b1638","77c30b1b.e30284","38d1f8a4.544c88","ec2b4946.870fa8","fc1a4851.c50d98","4ee682be.60308c","55c0fbcf.230f94","8f83b529.bbfff8","1ba74584.ad257a","88d59a3a.596b68","7a762bd2.8f05b4","35d2798f.ad8fd6","e869683.373f698","47e63684.eab708","270ea296.290a0e","61ec2a2f.13ecc4","5dde3a37.1b4584","96a33155.8bdb5","f9069864.fee698","c3dab359.3a805","ee2fa3a9.f8fbf","2a008610.c0ffea","e6c02c45.f817c","9d93a6a3.0941b8","3aab9884.b5b438","220db70b.49a7b8","69e2d4e3.200b8c","64f6705e.cd764","5038a6bb.07d078","93e8cf4e.b81ee","906558a7.da3bd8","51f8aca5.987ca4","59941d30.b97fb4","3ac52866.187678","ee87c91b.bf1408","680cbb79.345374","c032948d.b318c8","80e5ca52.367d48","5b773637.e51a08","cd53bac2.7d0158","fcb3f6bd.0982d8","f8b8f792.b88d48","53a3a0af.fda3d","2e449f0b.90f6b","96f23bd6.9382d8","8cbd3068.8ad46","3373fc53.4681d4","bc2fea08.06c3b8"],"x":14,"y":759,"w":1552,"h":922},{"id":"448f0e3a.d21f3","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"1","server":"","version":1,"outputs":2,"halt_if":"1.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1050,"y":840,"wires":[["edb1ab9c.e81b58"],[]]},{"id":"edb1ab9c.e81b58","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Comercial","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"play_media","entityId":"media_player.som_ambiente","data":"{\"media_content_id\":\"http://mcrscast1.mcr.iol.pt/comercial.mp3\",\"media_content_type\":\"audio/mp4\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1200,"y":840,"wires":[["2f09ae9d.202622"]]},{"id":"e891bd6f.52d75","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Selecionar estação","server":"","version":1,"debugenabled":false,"service_domain":"input_number","service":"increment","entityId":"input_number.radio_counter","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":130,"y":1240,"wires":[["a82e1f3d.3ccff","22ba3460.ae80ac","bc3bab33.e83bb8","fe89f72e.f83b98","8f83b529.bbfff8","84a2c247.21003","22d8c23a.fbed4e","3eceab32.2b2244","53a3a0af.fda3d","220db70b.49a7b8","69e2d4e3.200b8c","64f6705e.cd764","c84d076d.9acde8"]]},{"id":"d4d267f2.381d48","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Notificação comercial","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"Rádio Comercial\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":740,"y":840,"wires":[["827cb09b.25e18"]]},{"id":"827cb09b.25e18","type":"delay","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":920,"y":840,"wires":[["448f0e3a.d21f3"]]},{"id":"9a2c408c.317db","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"2","server":"","version":1,"outputs":2,"halt_if":"2.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1030,"y":900,"wires":[["cbca934f.6061d"],[]]},{"id":"58f71461.5ee5cc","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Notificação RFM","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"RFM\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":730,"y":900,"wires":[["1bd1e77e.d63709"]]},{"id":"1bd1e77e.d63709","type":"delay","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":900,"y":900,"wires":[["9a2c408c.317db"]]},{"id":"36b53a2e.232ba6","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"3","server":"","version":1,"outputs":2,"halt_if":"3.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1010,"y":960,"wires":[["f1bd23b3.21882"],[]]},{"id":"b19d583c.4dfc08","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Notificação M80","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"M80\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":720,"y":960,"wires":[["4d64ea6a.d20204"]]},{"id":"4d64ea6a.d20204","type":"delay","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":880,"y":960,"wires":[["36b53a2e.232ba6"]]},{"id":"3f96c87d.0c7e38","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"1","server":"","version":1,"outputs":2,"halt_if":"1.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":290,"y":840,"wires":[["d0215c09.d65"],[]]},{"id":"a82e1f3d.3ccff","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"2","server":"","version":1,"outputs":2,"halt_if":"2.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":290,"y":900,"wires":[["45cc11.af1073f"],[]]},{"id":"22ba3460.ae80ac","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"3","server":"","version":1,"outputs":2,"halt_if":"3.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":290,"y":960,"wires":[["50593fe0.347e"],[]]},{"id":"bc3bab33.e83bb8","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"4","server":"","version":1,"outputs":2,"halt_if":"4.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":290,"y":1020,"wires":[["aede89fd.d5c5c8"],[]]},{"id":"e8565bca.7ae3b8","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"4","server":"","version":1,"outputs":2,"halt_if":"4.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1050,"y":1020,"wires":[["df1162c5.ed731"],[]]},{"id":"4cb9037c.9f136c","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Notificação vodafone","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"Vodafone FM\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":740,"y":1020,"wires":[["2279fef0.91a8f2"]]},{"id":"2279fef0.91a8f2","type":"delay","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":920,"y":1020,"wires":[["e8565bca.7ae3b8"]]},{"id":"3e9e9b77.87dd24","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":840,"wires":[["d4d267f2.381d48"]]},{"id":"a4fb50ba.6b853","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":900,"wires":[["58f71461.5ee5cc"]]},{"id":"ccdaa4ad.b16a48","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":960,"wires":[["b19d583c.4dfc08"]]},{"id":"b0163bb0.bfe0c8","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":1020,"wires":[["4cb9037c.9f136c"]]},{"id":"5894c64a.660d38","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Reset ","server":"","version":1,"debugenabled":false,"service_domain":"input_number","service":"set_value","entityId":"input_number.radio_counter","data":"{\"value\":1}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":510,"y":1640,"wires":[[]]},{"id":"2f09ae9d.202622","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.cozinha, media_player.sala","data":"{\"volume_level\":\"0.2\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1480,"y":840,"wires":[[]]},{"id":"cbca934f.6061d","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"RFM","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"play_media","entityId":"media_player.som_ambiente","data":"{\"media_content_id\":\"https://20863.live.streamtheworld.com/RFM_SC\",\"media_content_type\":\"audio/mp4\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1170,"y":900,"wires":[["e3fe067d.2462e8"]]},{"id":"e3fe067d.2462e8","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.cozinha, media_player.sala","data":"{\"volume_level\":\"0.2\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1460,"y":900,"wires":[[]]},{"id":"f1bd23b3.21882","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"M80","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"play_media","entityId":"media_player.som_ambiente","data":"{\"media_content_id\":\"http://mcrscast.mcr.iol.pt/m80\",\"media_content_type\":\"audio/mp4\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1150,"y":960,"wires":[["5049ee84.c53ab"]]},{"id":"5049ee84.c53ab","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.cozinha, media_player.sala","data":"{\"volume_level\":\"0.2\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1440,"y":960,"wires":[[]]},{"id":"df1162c5.ed731","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Vodafone fm","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"play_media","entityId":"media_player.som_ambiente","data":"{\"media_content_id\":\"http://195.23.102.207/vodafone\",\"media_content_type\":\"audio/mp4\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1210,"y":1020,"wires":[["f527e20f.3847a"]]},{"id":"f527e20f.3847a","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.cozinha, media_player.sala","data":"{\"volume_level\":\"0.2\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1480,"y":1020,"wires":[[]]},{"id":"c84d076d.9acde8","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"5","server":"","version":1,"outputs":2,"halt_if":"5.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":370,"y":1640,"wires":[["5894c64a.660d38"],[]]},{"id":"fe89f72e.f83b98","type":"ha-wait-until","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","server":"","outputs":1,"entityId":"input_number.radio_counter","entityIdFilterType":"exact","property":"state","comparator":"is","value":"1.0","valueType":"str","timeout":0,"timeoutType":"num","timeoutUnits":"seconds","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":160,"y":840,"wires":[["3f96c87d.0c7e38"]]},{"id":"d0215c09.d65","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Ambiente","server":"","version":1,"outputs":2,"halt_if":"Ambiente","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":420,"y":840,"wires":[["3e9e9b77.87dd24"],[]]},{"id":"45cc11.af1073f","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Ambiente","server":"","version":1,"outputs":2,"halt_if":"Ambiente","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":420,"y":900,"wires":[["a4fb50ba.6b853"],[]]},{"id":"50593fe0.347e","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Ambiente","server":"","version":1,"outputs":2,"halt_if":"Ambiente","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":420,"y":960,"wires":[["ccdaa4ad.b16a48"],[]]},{"id":"aede89fd.d5c5c8","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Ambiente","server":"","version":1,"outputs":2,"halt_if":"Ambiente","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":420,"y":1020,"wires":[["b0163bb0.bfe0c8"],[]]},{"id":"3eb4c860.554cc8","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"1","server":"","version":1,"outputs":2,"halt_if":"1.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1050,"y":1120,"wires":[["f421249e.1a3c58"],[]]},{"id":"f421249e.1a3c58","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Comercial","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"play_media","entityId":"media_player.sala","data":"{\"media_content_id\":\"http://mcrscast1.mcr.iol.pt/comercial.mp3\",\"media_content_type\":\"audio/mp4\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1200,"y":1120,"wires":[["1ed4486c.9b1638"]]},{"id":"974daebc.19006","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Notificação comercial","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"Rádio Comercial\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":740,"y":1120,"wires":[["7196ea26.830c34"]]},{"id":"7196ea26.830c34","type":"delay","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":920,"y":1120,"wires":[["3eb4c860.554cc8"]]},{"id":"b1c67dc.8383f8","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"2","server":"","version":1,"outputs":2,"halt_if":"2.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1030,"y":1180,"wires":[["77c30b1b.e30284"],[]]},{"id":"b490139c.80b63","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Notificação RFM","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"RFM\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":730,"y":1180,"wires":[["49bef1ed.1bf59"]]},{"id":"49bef1ed.1bf59","type":"delay","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":900,"y":1180,"wires":[["b1c67dc.8383f8"]]},{"id":"85e906f2.094af8","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"3","server":"","version":1,"outputs":2,"halt_if":"3.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1010,"y":1240,"wires":[["ec2b4946.870fa8"],[]]},{"id":"e1e2f45b.88e798","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Notificação M80","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"M80\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":720,"y":1240,"wires":[["1c853c50.e427a4"]]},{"id":"1c853c50.e427a4","type":"delay","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":880,"y":1240,"wires":[["85e906f2.094af8"]]},{"id":"bb757cb8.cfd89","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"1","server":"","version":1,"outputs":2,"halt_if":"1.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":290,"y":1120,"wires":[["1ba74584.ad257a"],[]]},{"id":"84a2c247.21003","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"2","server":"","version":1,"outputs":2,"halt_if":"2.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":290,"y":1180,"wires":[["88d59a3a.596b68"],[]]},{"id":"22d8c23a.fbed4e","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"3","server":"","version":1,"outputs":2,"halt_if":"3.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":290,"y":1240,"wires":[["7a762bd2.8f05b4"],[]]},{"id":"3eceab32.2b2244","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"4","server":"","version":1,"outputs":2,"halt_if":"4.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":290,"y":1300,"wires":[["35d2798f.ad8fd6"],[]]},{"id":"6d5aaae3.2c4124","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"4","server":"","version":1,"outputs":2,"halt_if":"4.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1050,"y":1300,"wires":[["4ee682be.60308c"],[]]},{"id":"602d0868.1213b8","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Notificação vodafone","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"Vodafone FM\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":740,"y":1300,"wires":[["9a1fa12f.35ea7"]]},{"id":"9a1fa12f.35ea7","type":"delay","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":920,"y":1300,"wires":[["6d5aaae3.2c4124"]]},{"id":"ac9a18ad.a4ff98","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":1120,"wires":[["974daebc.19006"]]},{"id":"6e59d2b2.4a86dc","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":1180,"wires":[["b490139c.80b63"]]},{"id":"cfb2f41b.130bf8","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":1240,"wires":[["e1e2f45b.88e798"]]},{"id":"e4ba5c8a.bd9b6","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":1300,"wires":[["602d0868.1213b8"]]},{"id":"1ed4486c.9b1638","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.cozinha, media_player.sala","data":"{\"volume_level\":\"0.2\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1480,"y":1120,"wires":[[]]},{"id":"77c30b1b.e30284","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"RFM","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"play_media","entityId":"media_player.sala","data":"{\"media_content_id\":\"https://20863.live.streamtheworld.com/RFM_SC\",\"media_content_type\":\"audio/mp4\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1170,"y":1180,"wires":[["38d1f8a4.544c88"]]},{"id":"38d1f8a4.544c88","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.cozinha, media_player.sala","data":"{\"volume_level\":\"0.2\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1460,"y":1180,"wires":[[]]},{"id":"ec2b4946.870fa8","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"M80","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"play_media","entityId":"media_player.sala","data":"{\"media_content_id\":\"http://mcrscast.mcr.iol.pt/m80\",\"media_content_type\":\"audio/mp4\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1150,"y":1240,"wires":[["fc1a4851.c50d98"]]},{"id":"fc1a4851.c50d98","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.cozinha, media_player.sala","data":"{\"volume_level\":\"0.2\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1440,"y":1240,"wires":[[]]},{"id":"4ee682be.60308c","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Vodafone fm","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"play_media","entityId":"media_player.sala","data":"{\"media_content_id\":\"http://195.23.102.207/vodafone\",\"media_content_type\":\"audio/mp4\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1210,"y":1300,"wires":[["55c0fbcf.230f94"]]},{"id":"55c0fbcf.230f94","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.cozinha, media_player.sala","data":"{\"volume_level\":\"0.2\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1480,"y":1300,"wires":[[]]},{"id":"8f83b529.bbfff8","type":"ha-wait-until","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","server":"","outputs":1,"entityId":"input_number.radio_counter","entityIdFilterType":"exact","property":"state","comparator":"is","value":"1.0","valueType":"str","timeout":0,"timeoutType":"num","timeoutUnits":"seconds","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":160,"y":1120,"wires":[["bb757cb8.cfd89"]]},{"id":"1ba74584.ad257a","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Sala","server":"","version":1,"outputs":2,"halt_if":"Sala","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":410,"y":1120,"wires":[["ac9a18ad.a4ff98"],[]]},{"id":"88d59a3a.596b68","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Sala","server":"","version":1,"outputs":2,"halt_if":"Sala","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":410,"y":1180,"wires":[["6e59d2b2.4a86dc"],[]]},{"id":"7a762bd2.8f05b4","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Sala","server":"","version":1,"outputs":2,"halt_if":"Sala","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":410,"y":1240,"wires":[["cfb2f41b.130bf8"],[]]},{"id":"35d2798f.ad8fd6","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Sala","server":"","version":1,"outputs":2,"halt_if":"Sala","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":410,"y":1300,"wires":[["e4ba5c8a.bd9b6"],[]]},{"id":"e869683.373f698","type":"comment","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Rádios sala","info":"","x":580,"y":1080,"wires":[]},{"id":"47e63684.eab708","type":"comment","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Rádios Ambiente","info":"","x":580,"y":800,"wires":[]},{"id":"270ea296.290a0e","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"1","server":"","version":1,"outputs":2,"halt_if":"1.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1050,"y":1400,"wires":[["61ec2a2f.13ecc4"],[]]},{"id":"61ec2a2f.13ecc4","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Comercial","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"play_media","entityId":"media_player.cozinha","data":"{\"media_content_id\":\"http://mcrscast1.mcr.iol.pt/comercial.mp3\",\"media_content_type\":\"audio/mp4\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1200,"y":1400,"wires":[["680cbb79.345374"]]},{"id":"5dde3a37.1b4584","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Notificação comercial","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"Rádio Comercial\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":740,"y":1400,"wires":[["96a33155.8bdb5"]]},{"id":"96a33155.8bdb5","type":"delay","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":920,"y":1400,"wires":[["270ea296.290a0e"]]},{"id":"f9069864.fee698","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"2","server":"","version":1,"outputs":2,"halt_if":"2.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1030,"y":1460,"wires":[["c032948d.b318c8"],[]]},{"id":"c3dab359.3a805","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Notificação RFM","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"RFM\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":730,"y":1460,"wires":[["ee2fa3a9.f8fbf"]]},{"id":"ee2fa3a9.f8fbf","type":"delay","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":900,"y":1460,"wires":[["f9069864.fee698"]]},{"id":"2a008610.c0ffea","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"3","server":"","version":1,"outputs":2,"halt_if":"3.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1010,"y":1520,"wires":[["5b773637.e51a08"],[]]},{"id":"e6c02c45.f817c","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Notificação M80","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"M80\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":720,"y":1520,"wires":[["9d93a6a3.0941b8"]]},{"id":"9d93a6a3.0941b8","type":"delay","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":880,"y":1520,"wires":[["2a008610.c0ffea"]]},{"id":"3aab9884.b5b438","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"1","server":"","version":1,"outputs":2,"halt_if":"1.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":290,"y":1400,"wires":[["2e449f0b.90f6b"],[]]},{"id":"220db70b.49a7b8","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"2","server":"","version":1,"outputs":2,"halt_if":"2.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":290,"y":1460,"wires":[["96f23bd6.9382d8"],[]]},{"id":"69e2d4e3.200b8c","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"3","server":"","version":1,"outputs":2,"halt_if":"3.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":290,"y":1520,"wires":[["8cbd3068.8ad46"],[]]},{"id":"64f6705e.cd764","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"4","server":"","version":1,"outputs":2,"halt_if":"4.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":290,"y":1580,"wires":[["3373fc53.4681d4"],[]]},{"id":"5038a6bb.07d078","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"4","server":"","version":1,"outputs":2,"halt_if":"4.0","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.radio_counter","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1050,"y":1580,"wires":[["fcb3f6bd.0982d8"],[]]},{"id":"93e8cf4e.b81ee","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Notificação vodafone","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"Vodafone FM\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":740,"y":1580,"wires":[["906558a7.da3bd8"]]},{"id":"906558a7.da3bd8","type":"delay","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":920,"y":1580,"wires":[["5038a6bb.07d078"]]},{"id":"51f8aca5.987ca4","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":1400,"wires":[["5dde3a37.1b4584"]]},{"id":"59941d30.b97fb4","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":1460,"wires":[["c3dab359.3a805"]]},{"id":"3ac52866.187678","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":1520,"wires":[["e6c02c45.f817c"]]},{"id":"ee87c91b.bf1408","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":1580,"wires":[["93e8cf4e.b81ee"]]},{"id":"680cbb79.345374","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.cozinha, media_player.sala","data":"{\"volume_level\":\"0.2\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1480,"y":1400,"wires":[[]]},{"id":"c032948d.b318c8","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"RFM","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"play_media","entityId":"media_player.cozinha","data":"{\"media_content_id\":\"https://20863.live.streamtheworld.com/RFM_SC\",\"media_content_type\":\"audio/mp4\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1170,"y":1460,"wires":[["80e5ca52.367d48"]]},{"id":"80e5ca52.367d48","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.cozinha, media_player.sala","data":"{\"volume_level\":\"0.2\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1460,"y":1460,"wires":[[]]},{"id":"5b773637.e51a08","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"M80","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"play_media","entityId":"media_player.cozinha","data":"{\"media_content_id\":\"http://mcrscast.mcr.iol.pt/m80\",\"media_content_type\":\"audio/mp4\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1150,"y":1520,"wires":[["cd53bac2.7d0158"]]},{"id":"cd53bac2.7d0158","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.cozinha, media_player.sala","data":"{\"volume_level\":\"0.2\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1440,"y":1520,"wires":[[]]},{"id":"fcb3f6bd.0982d8","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Vodafone fm","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"play_media","entityId":"media_player.cozinha","data":"{\"media_content_id\":\"http://195.23.102.207/vodafone\",\"media_content_type\":\"audio/mp4\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1210,"y":1580,"wires":[["f8b8f792.b88d48"]]},{"id":"f8b8f792.b88d48","type":"api-call-service","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.cozinha, media_player.sala","data":"{\"volume_level\":\"0.2\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1480,"y":1580,"wires":[[]]},{"id":"53a3a0af.fda3d","type":"ha-wait-until","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"","server":"","outputs":1,"entityId":"input_number.radio_counter","entityIdFilterType":"exact","property":"state","comparator":"is","value":"1.0","valueType":"str","timeout":0,"timeoutType":"num","timeoutUnits":"seconds","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":160,"y":1400,"wires":[["3aab9884.b5b438"]]},{"id":"2e449f0b.90f6b","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Cozinha","server":"","version":1,"outputs":2,"halt_if":"Cozinha","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":420,"y":1400,"wires":[["51f8aca5.987ca4"],[]]},{"id":"96f23bd6.9382d8","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Cozinha","server":"","version":1,"outputs":2,"halt_if":"Cozinha","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":420,"y":1460,"wires":[["59941d30.b97fb4"],[]]},{"id":"8cbd3068.8ad46","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Cozinha","server":"","version":1,"outputs":2,"halt_if":"Cozinha","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":420,"y":1520,"wires":[["3ac52866.187678"],[]]},{"id":"3373fc53.4681d4","type":"api-current-state","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Cozinha","server":"","version":1,"outputs":2,"halt_if":"Cozinha","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":420,"y":1580,"wires":[["ee87c91b.bf1408"],[]]},{"id":"bc2fea08.06c3b8","type":"comment","z":"fda7cba4.62e2f8","g":"40026675.b5bff8","name":"Rádios Cozinha","info":"","x":590,"y":1360,"wires":[]},{"id":"47a7d108.99823","type":"group","z":"fda7cba4.62e2f8","name":"","style":{"fill":"#92d04f","fill-opacity":"0.84","label":true},"nodes":["2c0ad450.fef98c","ed097c74.e8a0c","37a6064f.dd5c5a","31b11bd7.0a6844","ee2597d0.76ecf8","2d67c48a.2004fc","6e126565.ecb02c","c2ec89f.aa62d78","801195c4.da00a8","d09dee43.a7894","3a25a991.c53076"],"x":14,"y":2039,"w":832,"h":322},{"id":"2c0ad450.fef98c","type":"link out","z":"fda7cba4.62e2f8","g":"47a7d108.99823","name":"","links":["9963490a.4c3938"],"x":335,"y":2320,"wires":[]},{"id":"ed097c74.e8a0c","type":"api-call-service","z":"fda7cba4.62e2f8","g":"47a7d108.99823","name":"diminui Volume cozinha","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_down","entityId":"media_player.cozinha","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":710,"y":2200,"wires":[[]]},{"id":"37a6064f.dd5c5a","type":"api-current-state","z":"fda7cba4.62e2f8","g":"47a7d108.99823","name":"Cozinha play?","server":"","version":1,"outputs":2,"halt_if":"playing","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"media_player.cozinha","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":500,"y":2200,"wires":[["ed097c74.e8a0c"],[]]},{"id":"31b11bd7.0a6844","type":"api-call-service","z":"fda7cba4.62e2f8","g":"47a7d108.99823","name":"diminui volume sala","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_down","entityId":"media_player.sala","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":670,"y":2260,"wires":[[]]},{"id":"ee2597d0.76ecf8","type":"api-current-state","z":"fda7cba4.62e2f8","g":"47a7d108.99823","name":"sala play?","server":"","version":1,"outputs":2,"halt_if":"playing","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"media_player.sala","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":480,"y":2260,"wires":[["31b11bd7.0a6844"],[]]},{"id":"2d67c48a.2004fc","type":"api-call-service","z":"fda7cba4.62e2f8","g":"47a7d108.99823","name":"desliga cozinha","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"media_stop","entityId":"media_player.cozinha","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":680,"y":2080,"wires":[[]]},{"id":"6e126565.ecb02c","type":"api-current-state","z":"fda7cba4.62e2f8","g":"47a7d108.99823","name":"Cozinha play?","server":"","version":1,"outputs":2,"halt_if":"playing","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"media_player.cozinha","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":500,"y":2080,"wires":[["2d67c48a.2004fc"],[]]},{"id":"c2ec89f.aa62d78","type":"api-call-service","z":"fda7cba4.62e2f8","g":"47a7d108.99823","name":"desliga sala","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"media_stop","entityId":"media_player.sala","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":630,"y":2140,"wires":[[]]},{"id":"801195c4.da00a8","type":"api-current-state","z":"fda7cba4.62e2f8","g":"47a7d108.99823","name":"sala play?","server":"","version":1,"outputs":2,"halt_if":"playing","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"media_player.sala","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":480,"y":2140,"wires":[["c2ec89f.aa62d78"],[]]},{"id":"d09dee43.a7894","type":"switch","z":"fda7cba4.62e2f8","g":"47a7d108.99823","name":"Terceiro botão baixo","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"2002","vt":"str"},{"t":"cont","v":"2004","vt":"str"},{"t":"cont","v":"2005","vt":"str"},{"t":"cont","v":"2001","vt":"str"},{"t":"cont","v":"2003","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":200,"y":2240,"wires":[["6e126565.ecb02c","801195c4.da00a8"],["37a6064f.dd5c5a","ee2597d0.76ecf8"],[],["2c0ad450.fef98c"],[]],"outputLabels":["single","dublo","triple","long press","release"]},{"id":"3a25a991.c53076","type":"link in","z":"fda7cba4.62e2f8","g":"47a7d108.99823","name":"","links":["c9dc8535.26b2d8"],"x":55,"y":2240,"wires":[["d09dee43.a7894"]]},{"id":"c2fdd09a.585dc","type":"group","z":"fda7cba4.62e2f8","name":"","style":{"fill":"#92d04f","fill-opacity":"0.85","label":true},"nodes":["bac720ed.b6b29","67816582.444c1c","28d668aa.5204d8","ac97cf2c.fe1a8","be871534.34b678","d79efcf1.cf72b","8ae3285d.06c5e8","d7a9e4a8.dccd48","5161d899.84a578","4e299d64.3c05a4","b77336e2.4a39f8","34b9e9fb.fce916","dfe2343d.e617f8","5209d573.52f07c","38429bbe.647654","a9c39146.20a73","52495d88.3df5c4","a239b4b3.c3d188","b5b7348b.d99418","e9def9fc.b70558","948a3757.093718","430d877f.e7b4f8","c9dc8535.26b2d8","467ef7b7.f438a8"],"x":14,"y":19,"w":1132,"h":722},{"id":"bac720ed.b6b29","type":"switch","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"Primeiro botão cima","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"5002","vt":"str"},{"t":"cont","v":"5004","vt":"str"},{"t":"cont","v":"5005","vt":"str"},{"t":"cont","v":"5001","vt":"str"},{"t":"cont","v":"5003","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":600,"y":120,"wires":[["be871534.34b678"],["948a3757.093718"],[],["a239b4b3.c3d188"],["38429bbe.647654"]],"outputLabels":["single 1up","dublo 1up","triple 1up","Long press 1up","release 1up"]},{"id":"67816582.444c1c","type":"switch","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"Primeiro Botão Baixo","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"6002","vt":"str"},{"t":"cont","v":"6004","vt":"str"},{"t":"cont","v":"6005","vt":"str"},{"t":"cont","v":"6001","vt":"str"},{"t":"cont","v":"6003","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":600,"y":280,"wires":[["d79efcf1.cf72b"],[],[],["52495d88.3df5c4"],["a9c39146.20a73"]],"outputLabels":["single","dublo","triple","long press","release"]},{"id":"28d668aa.5204d8","type":"switch","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"Botão meio cima","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"3002","vt":"str"},{"t":"cont","v":"3004","vt":"str"},{"t":"cont","v":"3005","vt":"str"},{"t":"cont","v":"3001","vt":"str"},{"t":"cont","v":"3003","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":610,"y":480,"wires":[["d7a9e4a8.dccd48"],[],[],["4e299d64.3c05a4"],["5161d899.84a578"]],"outputLabels":["single","dublo","triple","long press","release"]},{"id":"ac97cf2c.fe1a8","type":"switch","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"Botão meio baixo","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"4002","vt":"str"},{"t":"cont","v":"4004","vt":"str"},{"t":"cont","v":"4005","vt":"str"},{"t":"cont","v":"4001","vt":"str"},{"t":"cont","v":"4003","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":590,"y":620,"wires":[["8ae3285d.06c5e8"],[],[],["dfe2343d.e617f8"],["34b9e9fb.fce916"]],"outputLabels":["single","dublo","triple","long press","release"]},{"id":"be871534.34b678","type":"api-call-service","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"candeeiro direito on","server":"","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.candeeiro_direito","data":"{\"brightness\":255,\"kelvin\":\"5000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":810,"y":60,"wires":[[]]},{"id":"d79efcf1.cf72b","type":"api-call-service","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"candeeiro direito off","server":"","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.candeeiro_direito","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":810,"y":260,"wires":[[]]},{"id":"8ae3285d.06c5e8","type":"api-call-service","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"candeeiro esquerdo off","server":"","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.candeeiro_esquerdo","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":820,"y":600,"wires":[[]]},{"id":"d7a9e4a8.dccd48","type":"api-call-service","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"candeeiro esquerdo on","server":"","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.candeeiro_esquerdo","data":"{\"brightness\":255,\"kelvin\":\"5000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":840,"y":460,"wires":[[]]},{"id":"5161d899.84a578","type":"change","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"STOP","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":560,"wires":[["4e299d64.3c05a4"]]},{"id":"4e299d64.3c05a4","type":"looptimer","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","duration":"1","units":"Second","maxloops":"100","maxtimeout":"1","maxtimeoutunits":"Hour","name":"","x":840,"y":520,"wires":[["b77336e2.4a39f8"],[]]},{"id":"b77336e2.4a39f8","type":"api-call-service","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"","server":"","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.candeeiro_esquerdo","data":"{\"brightness_step\":\"30\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1030,"y":520,"wires":[[]]},{"id":"34b9e9fb.fce916","type":"change","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"STOP","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":700,"wires":[["dfe2343d.e617f8"]]},{"id":"dfe2343d.e617f8","type":"looptimer","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","duration":"1","units":"Second","maxloops":"100","maxtimeout":"1","maxtimeoutunits":"Hour","name":"","x":820,"y":660,"wires":[["5209d573.52f07c"],[]]},{"id":"5209d573.52f07c","type":"api-call-service","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"","server":"","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.candeeiro_esquerdo","data":"{\"brightness_step\":\"-30\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1010,"y":660,"wires":[[]]},{"id":"38429bbe.647654","type":"change","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"STOP","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":200,"wires":[["a239b4b3.c3d188"]]},{"id":"a9c39146.20a73","type":"change","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"STOP","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":360,"wires":[["52495d88.3df5c4"]]},{"id":"52495d88.3df5c4","type":"looptimer","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","duration":"1","units":"Second","maxloops":"100","maxtimeout":"1","maxtimeoutunits":"Hour","name":"","x":840,"y":320,"wires":[["e9def9fc.b70558"],[]]},{"id":"a239b4b3.c3d188","type":"looptimer","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","duration":"1","units":"Second","maxloops":"100","maxtimeout":"1","maxtimeoutunits":"Hour","name":"","x":840,"y":160,"wires":[["b5b7348b.d99418"],[]]},{"id":"b5b7348b.d99418","type":"api-call-service","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"","server":"","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.candeeiro_direito","data":"{\"brightness_step\":\"30\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1030,"y":160,"wires":[[]]},{"id":"e9def9fc.b70558","type":"api-call-service","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"","server":"","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.candeeiro_direito","data":"{\"brightness_step\":\"-30\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1030,"y":320,"wires":[[]]},{"id":"948a3757.093718","type":"api-call-service","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"candeeiro direito on","server":"","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.candeeiro_direito","data":"{\"brightness\":255,\"kelvin\":\"5000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":830,"y":120,"wires":[[]]},{"id":"430d877f.e7b4f8","type":"deconz-input","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"","server":"a11fd2f2.ecc9e","device":"04:cf:8c:df:3c:7c:ac:7d-01-0012","device_name":"Interruptor Sala : ZHASwitch","topic":"","state":"buttonevent","output":"always","outputAtStartup":false,"x":160,"y":340,"wires":[["bac720ed.b6b29","67816582.444c1c","28d668aa.5204d8","ac97cf2c.fe1a8","c9dc8535.26b2d8"],[]]},{"id":"c9dc8535.26b2d8","type":"link out","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"interuptor sala","links":["f27480d3.fa524","3a25a991.c53076","44d8fc44.813ee4","527e12a9.b9e83c","81cb7ef6.f926a"],"x":275,"y":400,"wires":[]},{"id":"467ef7b7.f438a8","type":"comment","z":"fda7cba4.62e2f8","g":"c2fdd09a.585dc","name":"Yeelights Sala","info":"","x":210,"y":60,"wires":[]},{"id":"a11fd2f2.ecc9e","type":"deconz-server","name":"Conbee 2","ip":"192.168.5.33","port":"40850","ws_port":"8085","secure":false,"polling":"15"},{"id":"ed9c913a.692e3","type":"group","z":"fda7cba4.62e2f8","name":"","style":{"fill":"#92d04f","fill-opacity":"0.87","label":true},"nodes":["8067fbbd.6aefc8","8c8b2d5c.d7b8f","c6e13d08.cffe1","c287e920.074438","6e4ff91e.5b45f8","3cdb99ad.467c46","f27480d3.fa524","f39b6dd4.f44c5","69eaa942.901888","8e8eabba.cb3fb8","fb3c9838.b69608","d3eb8d4c.df1cc","bb391728.20f2f8","808095d1.23f758","69fc22a5.217f2c","4b675dc.90b59a4","6f425204.a1255c"],"x":14,"y":1699,"w":1132,"h":322},{"id":"8067fbbd.6aefc8","type":"link out","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"luz quarto mafalda","links":["2d2adf13.dc533"],"x":315,"y":1860,"wires":[]},{"id":"8c8b2d5c.d7b8f","type":"api-call-service","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"Aumenta Volume cozinha","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_up","entityId":"media_player.cozinha","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":650,"y":1740,"wires":[[]]},{"id":"c6e13d08.cffe1","type":"api-call-service","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"Aumenta Volume sala","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_up","entityId":"media_player.sala","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":620,"y":1800,"wires":[[]]},{"id":"c287e920.074438","type":"api-current-state","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"sala play?","server":"","version":1,"outputs":2,"halt_if":"playing","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"media_player.sala","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":420,"y":1800,"wires":[["c6e13d08.cffe1"],[]]},{"id":"6e4ff91e.5b45f8","type":"api-current-state","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"Cozinha play?","server":"","version":1,"outputs":2,"halt_if":"playing","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"media_player.cozinha","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":440,"y":1740,"wires":[["8c8b2d5c.d7b8f"],[]]},{"id":"3cdb99ad.467c46","type":"switch","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"terceiro botão cima","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"1002","vt":"str"},{"t":"cont","v":"1004","vt":"str"},{"t":"cont","v":"1005","vt":"str"},{"t":"cont","v":"1001","vt":"str"},{"t":"cont","v":"1003","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":190,"y":1780,"wires":[["e891bd6f.52d75"],["6e4ff91e.5b45f8","c287e920.074438"],["f39b6dd4.f44c5"],["8067fbbd.6aefc8"],[]],"outputLabels":["single","dublo","triple","long press","release"]},{"id":"f27480d3.fa524","type":"link in","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"","links":["c9dc8535.26b2d8"],"x":55,"y":1780,"wires":[["3cdb99ad.467c46"]]},{"id":"f39b6dd4.f44c5","type":"api-call-service","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"Selecionar zona","server":"","version":1,"debugenabled":false,"service_domain":"input_select","service":"select_next","entityId":"input_select.escolhe_zona","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":460,"y":1920,"wires":[["69eaa942.901888","8e8eabba.cb3fb8","fb3c9838.b69608"]]},{"id":"69eaa942.901888","type":"api-current-state","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"Sala","server":"","version":1,"outputs":2,"halt_if":"Sala","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":710,"y":1860,"wires":[["d3eb8d4c.df1cc"],[]]},{"id":"8e8eabba.cb3fb8","type":"api-current-state","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"Cozinha","server":"","version":1,"outputs":2,"halt_if":"Cozinha","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":720,"y":1920,"wires":[["bb391728.20f2f8"],[]]},{"id":"fb3c9838.b69608","type":"api-current-state","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"Ambiente","server":"","version":1,"outputs":2,"halt_if":"Ambiente","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_select.escolhe_zona","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":720,"y":1980,"wires":[["808095d1.23f758"],[]]},{"id":"d3eb8d4c.df1cc","type":"api-call-service","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":840,"y":1860,"wires":[["69fc22a5.217f2c"]]},{"id":"bb391728.20f2f8","type":"api-call-service","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":860,"y":1920,"wires":[["4b675dc.90b59a4"]]},{"id":"808095d1.23f758","type":"api-call-service","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"volume","server":"","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.som_ambiente","data":"{\"volume_level\":\"0.3\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":860,"y":1980,"wires":[["6f425204.a1255c"]]},{"id":"69fc22a5.217f2c","type":"api-call-service","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"reproduzir na sala","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"Sala\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1010,"y":1860,"wires":[[]]},{"id":"4b675dc.90b59a4","type":"api-call-service","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"Notificação RFM","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"Cozinha\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1030,"y":1920,"wires":[[]]},{"id":"6f425204.a1255c","type":"api-call-service","z":"fda7cba4.62e2f8","g":"ed9c913a.692e3","name":"Notificação M80","server":"","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.som_ambiente","data":"{\"message\":\"Ambiente\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1020,"y":1980,"wires":[[]]}]

Vou deixar aqui um pequeno vídeo demonstrativo…

4 Likes

Copyright © 2017-2021. Todos os direitos reservados
CPHA.pt - info@cpha.pt


FAQ | Termos de Serviço/Regras | Política de Privacidade