Post original no fórum: https://homeassistantbrasil.com.br/t/ha-integracao-com-central-de-alarme-intelbras/681/460?u=giggio
Last active
August 1, 2026 04:53
-
-
Save giggio/afe59043729c039bb3cb180571814bcc to your computer and use it in GitHub Desktop.
Alarme Intelbras e Home Assistant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "id": "af6d8c8a43d2f463", | |
| "type": "tab", | |
| "label": "AMT 4010/2018/1016", | |
| "disabled": false, | |
| "info": "", | |
| "env": [] | |
| }, | |
| { | |
| "id": "25262853a065ef2a", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Nível da Bateria / Data?", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "adda014b630b5eb8", | |
| "b92a26e487f05921", | |
| "53b3abe863a41d61" | |
| ], | |
| "x": 4504, | |
| "y": 3799, | |
| "w": 492, | |
| "h": 142 | |
| }, | |
| { | |
| "id": "7963eac05815a889", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Sirene PGMs", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "a52fec319f5abc59", | |
| "3ae610d54e1d2dcb", | |
| "29f9a569c29ea250", | |
| "1bf715b695eec21c", | |
| "e57a53884dca47ba" | |
| ], | |
| "x": 4504, | |
| "y": 4339, | |
| "w": 482, | |
| "h": 262 | |
| }, | |
| { | |
| "id": "e5cf96d69b180fba", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Sirene / Telefone / Comunicação", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "33d79819172dbf67", | |
| "9e390626c0d67ab2", | |
| "f1690afb7f5974ea", | |
| "2d5ec2b782b87241", | |
| "1acdc4cc7b4fe91f" | |
| ], | |
| "x": 4504, | |
| "y": 4639, | |
| "w": 482, | |
| "h": 262 | |
| }, | |
| { | |
| "id": "1ceab1293421ff77", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Central AMT - Bateria / Entrada AC", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "5bd4cd507fa06de6", | |
| "ef50c8233149c657", | |
| "1a48e5933b4f515e", | |
| "751ac8a0dc743c58", | |
| "bfc481280a0dc14a", | |
| "1e25053f9470c04e" | |
| ], | |
| "x": 4504, | |
| "y": 2119, | |
| "w": 492, | |
| "h": 322 | |
| }, | |
| { | |
| "id": "46d7fcd03f769e97", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Modelo / FW / Partições", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "a2b2407f37728ddb", | |
| "31c8623b6ea53a22", | |
| "80256beb2b2f06f5", | |
| "d8203ad37b78971f", | |
| "acd7298708bebf18", | |
| "73b68e0b398a04dd", | |
| "d3a9bb22637c9b30" | |
| ], | |
| "x": 4504, | |
| "y": 1399, | |
| "w": 482, | |
| "h": 382 | |
| }, | |
| { | |
| "id": "fda154b7718ee57c", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Tamper teclados", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "b1e8283eabacf518", | |
| "4936eae5528ad90a", | |
| "aa1689862035487b", | |
| "54874b31225b6c9d", | |
| "9c787a8e387606e0" | |
| ], | |
| "x": 4504, | |
| "y": 4039, | |
| "w": 482, | |
| "h": 262 | |
| }, | |
| { | |
| "id": "fcb1ab9f4add6791", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Expansores \\n Funções exlusivas na central AMT 4010.", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "d1b3a5d3277ea419", | |
| "fb6f47a669f1d79f", | |
| "ca2bfd4a54578961", | |
| "399d43523670e2f6", | |
| "a309989ea165dba6", | |
| "ef5f0fec088030da", | |
| "161f5d220a306b09", | |
| "de5e575fc104f637", | |
| "f1d7084d3fdfe560", | |
| "e7c3d08d38a70441", | |
| "a055b51af469c355" | |
| ], | |
| "x": 4504, | |
| "y": 3123, | |
| "w": 492, | |
| "h": 638 | |
| }, | |
| { | |
| "id": "706f3547f76fc842", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Teclados e Receptores", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "b8923e82362e3ab2", | |
| "4a0d1feb5ee6b223", | |
| "736261b34ccdde61", | |
| "e2205abc91fe8ada", | |
| "b63d41338014ecca", | |
| "be4fdff2c9d36d55", | |
| "f14210df22f5a1d8", | |
| "f90d5da8f84a8563", | |
| "5513a14393bd3c82" | |
| ], | |
| "x": 4504, | |
| "y": 2539, | |
| "w": 482, | |
| "h": 502 | |
| }, | |
| { | |
| "id": "78529bf8cc8aff65", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Status Central", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "dcdec41fa540c974", | |
| "a13040d8f4aa2392", | |
| "3772055c7f9756ca", | |
| "e508c23c8b312705", | |
| "edc930d7e9242055" | |
| ], | |
| "x": 4504, | |
| "y": 1819, | |
| "w": 482, | |
| "h": 262 | |
| }, | |
| { | |
| "id": "ac332f4b7055d075", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Configuração Senha e IP", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "c56542410a88c1a6", | |
| "3f534126bf92932f" | |
| ], | |
| "x": 34, | |
| "y": 59, | |
| "w": 452, | |
| "h": 122 | |
| }, | |
| { | |
| "id": "10c6f56801c6c3bf", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Zonas 08 a 16", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "1e174e56d0bc4cad", | |
| "d43487d6b67480f6", | |
| "b767bdfc8b6310b7", | |
| "d79f32041a23f28e", | |
| "00f882a6995bf511", | |
| "9b53c41f6f45591a", | |
| "2d64e5658858e1e0", | |
| "b4d1191e3e1eb440", | |
| "0ebb95703bb11dfa" | |
| ], | |
| "x": 3394, | |
| "y": 59, | |
| "w": 312, | |
| "h": 502 | |
| }, | |
| { | |
| "id": "6ef7a45f611b9040", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Zonas 01 a 08", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "dd7c7474465d89f2", | |
| "abd069cdf7e12a74", | |
| "3ff4b764ff29e985", | |
| "57f4112b8f0d23c0", | |
| "6106090948d3e4f9", | |
| "14fd61bc6fd68785", | |
| "b82e81a5932b907c", | |
| "17bbe99815d8bb8f", | |
| "7a9b281dfaa03623" | |
| ], | |
| "x": 3074, | |
| "y": 59, | |
| "w": 312, | |
| "h": 502 | |
| }, | |
| { | |
| "id": "f4e37856f6baf803", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Zonas 17 a 24", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "0e68ea90a4eccdcd", | |
| "10ca3f3aacbc147c", | |
| "6442958ec3302a5f", | |
| "e0a41490e1aadb16", | |
| "971716f76a043c26", | |
| "479542817755d24a", | |
| "1df7fa7f1c2c5906", | |
| "53de0f5d466c9747", | |
| "f61f6fbca2e969ea" | |
| ], | |
| "x": 3714, | |
| "y": 59, | |
| "w": 312, | |
| "h": 502 | |
| }, | |
| { | |
| "id": "eb4faac3533ead17", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Zonas 25 a 32", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "160f0cf91c8b4a54", | |
| "ce17cf322e91023a", | |
| "59e2907f1d0d21e8", | |
| "c16569e3a92b1162", | |
| "8b7b8701a259bdac", | |
| "b48ba3289096f67d", | |
| "4dcb09c943f09159", | |
| "e0fccfcb0ce05aa6", | |
| "c6311a59a6716572" | |
| ], | |
| "x": 4034, | |
| "y": 59, | |
| "w": 312, | |
| "h": 502 | |
| }, | |
| { | |
| "id": "8f6e6976e2267cb1", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Zonas 33 a 40", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "c54e13d751a42d7c", | |
| "19417fae03eb3bf1", | |
| "aaea09c60c88f197", | |
| "375ce5cd7eeb2c2b", | |
| "df7f2f8591881695", | |
| "a7d35eb98af1940f", | |
| "aa9cee073af5104c", | |
| "153cccdccee1eb53", | |
| "d32a38e51c2581de" | |
| ], | |
| "x": 4354, | |
| "y": 59, | |
| "w": 312, | |
| "h": 502 | |
| }, | |
| { | |
| "id": "551795c3e31f898c", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Zonas 41 a 48", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "10890a013bf5c56d", | |
| "d99076ded9abf49a", | |
| "e939dff4df1f5458", | |
| "49e9a4c7b31d8826", | |
| "5a9d5c284f624547", | |
| "1ade3d69c50a055c", | |
| "9e83b1f312c86c55", | |
| "8c053ba14cbca2c2", | |
| "d41288c68a8caa3c" | |
| ], | |
| "x": 4674, | |
| "y": 59, | |
| "w": 312, | |
| "h": 502 | |
| }, | |
| { | |
| "id": "c01eb811ebe37477", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Zonas 49 a 64 \\n Funções exlusivas na central AMT 4010.", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "51489869d06df2fe", | |
| "44478ca3c75f4deb", | |
| "f2f7f50685c748f8", | |
| "7c7285fe5903e3c3", | |
| "9b3a10717a6a684d", | |
| "32a45ab1e43c1868", | |
| "34eedb23be723532", | |
| "256cb5702b219c86", | |
| "8b909c5a88d4b345", | |
| "8759bbd930c27057", | |
| "11413f95ceb079b5", | |
| "da490f63202ea694", | |
| "84ab978d64fa3357", | |
| "1f645627c98b2650", | |
| "f96ea3605b74c740", | |
| "2941e4d5779614c9", | |
| "66d941173682ca42", | |
| "74d872d9b3c64791" | |
| ], | |
| "x": 4394, | |
| "y": 663, | |
| "w": 592, | |
| "h": 518 | |
| }, | |
| { | |
| "id": "7be5a23a76cda6ac", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Sensores Adicionais", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "e3165761e14ac4bf", | |
| "b797b509b4c58be8", | |
| "84f536ebe87e4a1f", | |
| "992e048b7a00b2f6", | |
| "875c8e1529067aa1", | |
| "76ebbdb5bb0c6203", | |
| "8d99f1b70937af7c", | |
| "941ea84b6b55629c", | |
| "d4196524eeb86e74", | |
| "74b7d24c71ec721b" | |
| ], | |
| "x": 2344, | |
| "y": 59, | |
| "w": 732, | |
| "h": 502 | |
| }, | |
| { | |
| "id": "f518c6fef4d1efae", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Comandos", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "da479ea81b96f3e8", | |
| "dc4b94e4e6a04ce3", | |
| "058c9e7ad31f55fa", | |
| "f82fe4092a58bbdf", | |
| "cc571c9f56266e70", | |
| "10068dd5d8b4122f", | |
| "cc5f71fc96499d09", | |
| "59c524a6b63409a0", | |
| "4260eca7316f20fa", | |
| "7ed21ed9a179c49c", | |
| "985744ef0d6f0edf", | |
| "a68563ddc3e10be2", | |
| "6151b45d455ee2d4", | |
| "ee66ac5e31468fc4", | |
| "195ee5427ddcf491", | |
| "f27fd1739e11af14", | |
| "e1e3ecc426718683", | |
| "2196ffca0cf407f9", | |
| "d604403fe02451e9", | |
| "3da30e5d26507443", | |
| "42a61cfa1e905453", | |
| "39658cc68e020579", | |
| "3f37455feb345d64", | |
| "3619fa29e9c002ad", | |
| "8b1c68fa4a461b49", | |
| "add4d9edfc81fc68", | |
| "224280d930f74d63", | |
| "2ad67e379003f3f3", | |
| "5c0dfd7bc47105d6", | |
| "4fb9f28de9f82471" | |
| ], | |
| "x": 4, | |
| "y": 1479, | |
| "w": 722, | |
| "h": 1642 | |
| }, | |
| { | |
| "id": "f6705937848dcdbf", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Requisição desligada / Central desconectada", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "168f22e76d1b0f18", | |
| "afda27e5a12ea55a", | |
| "3b283e11156da62f", | |
| "f1f2aec1b79c3dd9", | |
| "f25ca11abb4c29b9", | |
| "51dd6c0d83f843b8", | |
| "1fcbca4b906e601b", | |
| "13c6e50a9987a1f5", | |
| "eea0c8c97cee7296", | |
| "38caaff4.03f6d", | |
| "6e1d852b06d00863", | |
| "33709becfa69f56a", | |
| "6a01d9aa44e03f92", | |
| "6182ef08558c8b07", | |
| "9c0b70bb6a015d1d", | |
| "6c89cff9974466de", | |
| "4b84ac70f23d5642" | |
| ], | |
| "x": 1114, | |
| "y": 1179, | |
| "w": 1172, | |
| "h": 382 | |
| }, | |
| { | |
| "id": "a73b2911d33ee21b", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Envio de comandos", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "25c0ab8360e88406", | |
| "87632a5d957f2628", | |
| "c4a7ffec90e0d191", | |
| "1ac7e967545fb3a1", | |
| "efc4d88437383375", | |
| "875dc04ddcc61f66", | |
| "3b55b90d769457fe", | |
| "f97d88da10440636", | |
| "5b732101a55cac1b", | |
| "3b8c20b34957a4c0", | |
| "ada9ff854d07a4fd", | |
| "6d843104f7dfe29d", | |
| "b15125481689e3ed", | |
| "1f9e97fafcfef96f", | |
| "992adf4a9b074b23", | |
| "37c432b523c62c58", | |
| "46cb510a66dcc4ee" | |
| ], | |
| "x": 54, | |
| "y": 719, | |
| "w": 872, | |
| "h": 462 | |
| }, | |
| { | |
| "id": "e2c2e3ba5a8854c8", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Nova tentativa em caso de falha no boot", | |
| "style": { | |
| "label": true | |
| }, | |
| "nodes": [ | |
| "fd9691b4a53f6a0d", | |
| "7cc8ceb0f593b06c", | |
| "8ab6ac32914dc2c2", | |
| "7b9e2a7d0d3953d4" | |
| ], | |
| "x": 34, | |
| "y": 199, | |
| "w": 259, | |
| "h": 202 | |
| }, | |
| { | |
| "id": "fe29484544c23ff9", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Processamento da resposta", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "49407a4f9f3e07d1", | |
| "1af644b3b80d3667", | |
| "456f1c9bf83653fa", | |
| "f74b6fb94a72536b", | |
| "c27463becba61c4a", | |
| "1db4da62533e65cb", | |
| "33e5c0be50275d66", | |
| "178c391c799c5bfc", | |
| "eaa6628f30d02764", | |
| "9e83010a7491ae66", | |
| "0ecf7a73f45765c1", | |
| "1203132061b6e84b", | |
| "b531e8a1e617303d", | |
| "2b16e95d4d6f3a30", | |
| "715d943f905eb787", | |
| "ca4562cd84c0b37d", | |
| "10f906df5b94ef21", | |
| "19b6a116b69d1ce7" | |
| ], | |
| "x": 1114, | |
| "y": 719, | |
| "w": 992, | |
| "h": 422 | |
| }, | |
| { | |
| "id": "c0497c8865d4c35b", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Geração de comandos", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "fc603a3838ed74ef", | |
| "bc9ce500498b50bc", | |
| "ae18e0c8bf18004d", | |
| "ab751210f68b96cb", | |
| "01c35bdd6cf90fc3", | |
| "a9d130c4f6ea6abb", | |
| "369b6241672f1286", | |
| "dc613de564587442", | |
| "10c0a4d3e49da98d", | |
| "b4a83a89bfbd2a0d", | |
| "d0eb147dd97eb756", | |
| "f8c012705a007d92", | |
| "99058222351a9158", | |
| "02bb0edb99dc210c", | |
| "cccfd6ab92d00d2a", | |
| "df057f4cdab98c24", | |
| "d958c2df48a4b96d", | |
| "02acc75d59c51243", | |
| "b4b99c4104ee2527", | |
| "51b3766fddd77bd3", | |
| "31e29c67c25f70aa", | |
| "ddce9da6dae5a88f", | |
| "276e507a7a5e2633" | |
| ], | |
| "x": 586.5000152587891, | |
| "y": 55.24999713897705, | |
| "w": 1039.499984741211, | |
| "h": 525.750002861023 | |
| }, | |
| { | |
| "id": "71ecb19db8dab14c", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "style": { | |
| "stroke": "#999999", | |
| "stroke-opacity": "1", | |
| "fill": "none", | |
| "fill-opacity": "1", | |
| "label": true, | |
| "label-position": "nw", | |
| "color": "#a4a4a4" | |
| }, | |
| "nodes": [ | |
| "df591e21a6d94425", | |
| "7003721789a1c7a8", | |
| "dbc8d7c897c0905a", | |
| "fb61a2856e7d72d6", | |
| "3cb72ac46e4cb85f", | |
| "63ecdfe28465dd9a", | |
| "a742fe0d29e24739", | |
| "9ebfec7e0671c219", | |
| "513f9c869e0368c1", | |
| "35c830abea1e209e", | |
| "6911f7070ab24ac0", | |
| "f4e25015f5620f73", | |
| "1075b94b1d7d2312" | |
| ], | |
| "x": 794, | |
| "y": 1759, | |
| "w": 832, | |
| "h": 562 | |
| }, | |
| { | |
| "id": "aaf43474a9869113", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Pegar ID do dispositivo e \\n gerar um Array com todas suas entidades", | |
| "style": { | |
| "label": true, | |
| "label-position": "n", | |
| "color": "#ff0000" | |
| }, | |
| "nodes": [ | |
| "53e46215401df191", | |
| "11ae8acb259891d5", | |
| "a312240dd7848b28", | |
| "872a887fa928452a", | |
| "e70a72b58f4fa277", | |
| "9f5cc9d64e510ca6" | |
| ], | |
| "x": 1674, | |
| "y": 63, | |
| "w": 512, | |
| "h": 218 | |
| }, | |
| { | |
| "id": "d4196524eeb86e74", | |
| "type": "group", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7be5a23a76cda6ac", | |
| "name": "Editar entity_id", | |
| "style": { | |
| "label": true | |
| }, | |
| "nodes": [ | |
| "362af2fa41d8d398" | |
| ], | |
| "x": 2394, | |
| "y": 219, | |
| "w": 312, | |
| "h": 82 | |
| }, | |
| { | |
| "id": "da479ea81b96f3e8", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - PGM 1 Ativar", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "05a35230c79bbee1", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Ativar PGM 1", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_pgm_1", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 150, | |
| "y": 2480, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "dc4b94e4e6a04ce3", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - PGM 3 Ativar", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "6a75eae9d4af12a0", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Ativar PGM 3", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_pgm_3", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 150, | |
| "y": 2720, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "058c9e7ad31f55fa", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - PGM 2 Ativar", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "7ce60599c4239eef", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Ativar PGM 2", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_pgm_2", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 150, | |
| "y": 2600, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "f82fe4092a58bbdf", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Ativar AMT", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "c53e057f7cb8e027", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Ativar AMT", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_ativar", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 140, | |
| "y": 2360, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "cc571c9f56266e70", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Desativar AMT", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "5da769e0d96c0f6b", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Desativar AMT", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_desativar", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 160, | |
| "y": 2420, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "10068dd5d8b4122f", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Ativar Partição A", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "8614604a70f3f1b8", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Ativar Partição A", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_ativar_a", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 160, | |
| "y": 1640, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "cc5f71fc96499d09", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Desativar Partição A", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "c19c0769a2fdbc63", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Desativar Partição A", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_desativar_a", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 170, | |
| "y": 1700, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "59c524a6b63409a0", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Desativar Partição B", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "a7f56a04fce82a5b", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Desativar Partição B", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_desativar_b", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 170, | |
| "y": 1880, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "4260eca7316f20fa", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Desativar Partição C", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "79e6f9ee14fbb8e5", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Desativar Partição C", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_desativar_c", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 170, | |
| "y": 2060, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "7ed21ed9a179c49c", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Ativar Partição D", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "383d5f0ec205ec93", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Ativar Partição D", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_ativar_d", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 160, | |
| "y": 2180, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "985744ef0d6f0edf", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Desativar Partição D", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "39edc598a246f4a5", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Desativar Partição D", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_desativar_d", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 170, | |
| "y": 2240, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "a68563ddc3e10be2", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Ativar Partição B", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "de6acd33c6f32693", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Ativar Partição B", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_ativar_b", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 160, | |
| "y": 1820, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "6151b45d455ee2d4", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Ativar Partição C", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "8c5094cad5d46fe7", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Ativar Partição C", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_ativar_c", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 160, | |
| "y": 2000, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "ee66ac5e31468fc4", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Stay", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "316935cfb1457329", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Stay", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_stay", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 130, | |
| "y": 2300, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "195ee5427ddcf491", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Stay A", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "26da8b8450e127a7", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Stay A", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_stay_a", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 130, | |
| "y": 1580, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "f27fd1739e11af14", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Stay B", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "3aee1dd7065403d1", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Stay B", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_stay_b", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 130, | |
| "y": 1760, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "e1e3ecc426718683", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Stay C", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "8141122539e8eb24", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Stay C", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_stay_c", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 130, | |
| "y": 1940, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "2196ffca0cf407f9", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Stay D", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "ddc9445f093e5c7f", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Stay D", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_stay_d", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 130, | |
| "y": 2120, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "d604403fe02451e9", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Anular Zonas Abertas", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "48676cbe85028daa", | |
| "outputProperties": [ | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "zonas_anular0", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Anular Zonas Abertas", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 180, | |
| "y": 2960, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "3da30e5d26507443", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Anular Zonas Disparadas", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "5caa8fb2c48e806d", | |
| "outputProperties": [ | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "zonas_anular1", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Anular Zonas Disparadas", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 190, | |
| "y": 3020, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "a52fec319f5abc59", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7963eac05815a889", | |
| "name": "Central AMT - PGM 1", | |
| "entityConfig": "3b595b739be8fd42", | |
| "version": 0, | |
| "state": "pgm_1", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4800, | |
| "y": 4440, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "3ae610d54e1d2dcb", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7963eac05815a889", | |
| "name": "Central AMT - PGM 2", | |
| "entityConfig": "0366e8e05a0893fe", | |
| "version": 0, | |
| "state": "pgm_2", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4800, | |
| "y": 4500, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "29f9a569c29ea250", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7963eac05815a889", | |
| "name": "Central AMT - PGM 3", | |
| "entityConfig": "c560c407e6bc4c4c", | |
| "version": 0, | |
| "state": "pgm_3", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4800, | |
| "y": 4560, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "a2b2407f37728ddb", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "46d7fcd03f769e97", | |
| "name": "Central AMT - PARTIÇÃO A", | |
| "entityConfig": "d119e3c5968d82b6", | |
| "version": 0, | |
| "state": "$not($boolean(partition_a))", | |
| "stateType": "jsonata", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4830, | |
| "y": 1560, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "31c8623b6ea53a22", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "46d7fcd03f769e97", | |
| "name": "Central AMT - PARTIÇÃO B", | |
| "entityConfig": "601792ebe57a9e15", | |
| "version": 0, | |
| "state": "$not($boolean(partition_b))", | |
| "stateType": "jsonata", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4830, | |
| "y": 1620, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "80256beb2b2f06f5", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "46d7fcd03f769e97", | |
| "name": "Central AMT - PARTIÇÃO C", | |
| "entityConfig": "628390c7d00f6752", | |
| "version": 0, | |
| "state": "$not($boolean(partition_c))", | |
| "stateType": "jsonata", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4840, | |
| "y": 1680, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "d8203ad37b78971f", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "46d7fcd03f769e97", | |
| "name": "Central AMT - PARTIÇÃO D", | |
| "entityConfig": "0fe5fc46745c15ea", | |
| "version": 0, | |
| "state": "$not($boolean(partition_d))", | |
| "stateType": "jsonata", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4840, | |
| "y": 1740, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "dcdec41fa540c974", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "78529bf8cc8aff65", | |
| "name": "Central AMT - CENTRAL ATIVADA", | |
| "entityConfig": "2858f77deaaa7727", | |
| "version": 0, | |
| "state": "$not($boolean(activated))", | |
| "stateType": "jsonata", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4800, | |
| "y": 1980, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "a13040d8f4aa2392", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "78529bf8cc8aff65", | |
| "name": "Central AMT - Problema na central", | |
| "entityConfig": "94cb08d1015d28d8", | |
| "version": 0, | |
| "state": "pc", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4800, | |
| "y": 1860, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "3772055c7f9756ca", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "78529bf8cc8aff65", | |
| "name": "Central AMT - ZONA ABERTA", | |
| "entityConfig": "87662184722ec3a7", | |
| "version": 0, | |
| "state": "za", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4780, | |
| "y": 1920, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "e508c23c8b312705", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "78529bf8cc8aff65", | |
| "name": "Central AMT - CENTRAL DISPARADA", | |
| "entityConfig": "9aed8217761a11e5", | |
| "version": 0, | |
| "state": "cd", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4810, | |
| "y": 2040, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "1bf715b695eec21c", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7963eac05815a889", | |
| "name": "Central AMT - STATUS SIRENE", | |
| "entityConfig": "a46cb637b555f89b", | |
| "version": 0, | |
| "state": "ss", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4830, | |
| "y": 4380, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "33d79819172dbf67", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "e5cf96d69b180fba", | |
| "name": "Central AMT - Sirene Corte de fiação", | |
| "entityConfig": "b8681b82ac7e7cc5", | |
| "version": 0, | |
| "state": "scf", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4780, | |
| "y": 4680, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "9e390626c0d67ab2", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "e5cf96d69b180fba", | |
| "name": "Central AMT - Sirene em curto", | |
| "entityConfig": "3b29d4d849708774", | |
| "version": 0, | |
| "state": "sc", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4760, | |
| "y": 4740, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "5bd4cd507fa06de6", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "1ceab1293421ff77", | |
| "name": "Central AMT - Entrada AC", | |
| "entityConfig": "792a394efe8ed698", | |
| "version": 0, | |
| "state": "$not($boolean(acpower))", | |
| "stateType": "jsonata", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4810, | |
| "y": 2160, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "ef50c8233149c657", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "1ceab1293421ff77", | |
| "name": "Central AMT - Sobrecarga AUX", | |
| "entityConfig": "c3d242fa5602513f", | |
| "version": 0, | |
| "state": "s_aux", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4830, | |
| "y": 2400, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "1a48e5933b4f515e", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "1ceab1293421ff77", | |
| "name": "Central AMT - Bateria conectada", | |
| "entityConfig": "f0fa59a07ad4a6b3", | |
| "version": 0, | |
| "state": "b_con", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4830, | |
| "y": 2280, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "751ac8a0dc743c58", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "1ceab1293421ff77", | |
| "name": "Central AMT - Bateria em curto", | |
| "entityConfig": "0ebbe207589d2043", | |
| "version": 0, | |
| "state": "b_curto", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4820, | |
| "y": 2340, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "f1690afb7f5974ea", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "e5cf96d69b180fba", | |
| "name": "Central AMT - Corte Telefone", | |
| "entityConfig": "4642dfb75538ff03", | |
| "version": 0, | |
| "state": "ct", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4760, | |
| "y": 4800, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "2d5ec2b782b87241", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "e5cf96d69b180fba", | |
| "name": "Central AMT - Falha ao comunicar evento", | |
| "entityConfig": "f237200acb61b8f4", | |
| "version": 0, | |
| "state": "fce", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4800, | |
| "y": 4860, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "b8923e82362e3ab2", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "706f3547f76fc842", | |
| "name": "Central AMT - Problema no teclado 1", | |
| "entityConfig": "10e00f4a73006503", | |
| "version": 0, | |
| "state": "pt_[1]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4800, | |
| "y": 2580, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "4a0d1feb5ee6b223", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "706f3547f76fc842", | |
| "name": "Central AMT - Problema no teclado 2", | |
| "entityConfig": "3656d611c9288e41", | |
| "version": 0, | |
| "state": "pt_[2]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4800, | |
| "y": 2640, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "736261b34ccdde61", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "706f3547f76fc842", | |
| "name": "Central AMT - Problema no teclado 3", | |
| "entityConfig": "4e418a2bddae9d19", | |
| "version": 0, | |
| "state": "pt_[3]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4800, | |
| "y": 2700, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "e2205abc91fe8ada", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "706f3547f76fc842", | |
| "name": "Central AMT - Problema no teclado 4", | |
| "entityConfig": "643c3edab8e72b50", | |
| "version": 0, | |
| "state": "pt_[4]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4800, | |
| "y": 2760, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "b63d41338014ecca", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "706f3547f76fc842", | |
| "name": "Central AMT - Problema no receptor 1", | |
| "entityConfig": "ce174e37dfec6c2f", | |
| "version": 0, | |
| "state": "pr_[1]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4810, | |
| "y": 2820, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "be4fdff2c9d36d55", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "706f3547f76fc842", | |
| "name": "Central AMT - Problema no receptor 2", | |
| "entityConfig": "e050eaa70f08849a", | |
| "version": 0, | |
| "state": "pr_[2]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4810, | |
| "y": 2880, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "f14210df22f5a1d8", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "706f3547f76fc842", | |
| "name": "Central AMT - Problema no receptor 4", | |
| "entityConfig": "044d601bddbb4a7e", | |
| "version": 0, | |
| "state": "pr_[3]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4810, | |
| "y": 3000, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "f90d5da8f84a8563", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "706f3547f76fc842", | |
| "name": "Central AMT - Problema no receptor 3", | |
| "entityConfig": "4e203c7764473cae", | |
| "version": 0, | |
| "state": "pr_[3]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4810, | |
| "y": 2940, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "d1b3a5d3277ea419", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fcb1ab9f4add6791", | |
| "name": "Central AMT - Problema no expansor de PGM 1", | |
| "entityConfig": "5b6b36dcca6cb459", | |
| "version": 0, | |
| "state": "pep_[1]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4780, | |
| "y": 3180, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "fb6f47a669f1d79f", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fcb1ab9f4add6791", | |
| "name": "Central AMT - Problema no expansor de PGM 2", | |
| "entityConfig": "1342c09f47fb217b", | |
| "version": 0, | |
| "state": "pep_[2]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4780, | |
| "y": 3240, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "ca2bfd4a54578961", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fcb1ab9f4add6791", | |
| "name": "Central AMT - Problema no expansor de PGM 3", | |
| "entityConfig": "29a18f2ff1815533", | |
| "version": 0, | |
| "state": "pep_[3]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4780, | |
| "y": 3300, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "399d43523670e2f6", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fcb1ab9f4add6791", | |
| "name": "Central AMT - Problema no expansor de PGM 4", | |
| "entityConfig": "6a3631f56f117b35", | |
| "version": 0, | |
| "state": "pep_[4]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4780, | |
| "y": 3360, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "a309989ea165dba6", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fcb1ab9f4add6791", | |
| "name": "Central AMT - Problema no expansor de zonas 1", | |
| "entityConfig": "02a9aebf5c574b6f", | |
| "version": 0, | |
| "state": "pez_[1]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4780, | |
| "y": 3420, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "ef5f0fec088030da", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fcb1ab9f4add6791", | |
| "name": "Central AMT - Problema no expansor de zonas 2", | |
| "entityConfig": "0741f37504026ab7", | |
| "version": 0, | |
| "state": "pez_[2]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4780, | |
| "y": 3480, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "161f5d220a306b09", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fcb1ab9f4add6791", | |
| "name": "Central AMT - Problema no expansor de zonas 3", | |
| "entityConfig": "8594478fc05b2f70", | |
| "version": 0, | |
| "state": "pez_[3]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4780, | |
| "y": 3540, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "de5e575fc104f637", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fcb1ab9f4add6791", | |
| "name": "Central AMT - Problema no expansor de zonas 4", | |
| "entityConfig": "bb0821c11ffcf20d", | |
| "version": 0, | |
| "state": "pez_[4]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4780, | |
| "y": 3600, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "f1d7084d3fdfe560", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fcb1ab9f4add6791", | |
| "name": "Central AMT - Problema no expansor de zonas 5", | |
| "entityConfig": "a31531d16d6b9541", | |
| "version": 0, | |
| "state": "pez_[5]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4780, | |
| "y": 3660, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "e7c3d08d38a70441", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fcb1ab9f4add6791", | |
| "name": "Central AMT - Problema no expansor de zonas 6", | |
| "entityConfig": "cd694dfd883da5d4", | |
| "version": 0, | |
| "state": "pez_[6]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4780, | |
| "y": 3720, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "b1e8283eabacf518", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fda154b7718ee57c", | |
| "name": "Central AMT - Tamper no teclado 1", | |
| "entityConfig": "01ef1191cf6db183", | |
| "version": 0, | |
| "state": "tc_[1]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4820, | |
| "y": 4080, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "4936eae5528ad90a", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fda154b7718ee57c", | |
| "name": "Central AMT - Tamper no teclado 2", | |
| "entityConfig": "d7ffce80c570adec", | |
| "version": 0, | |
| "state": "tc_[2]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4820, | |
| "y": 4140, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "aa1689862035487b", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fda154b7718ee57c", | |
| "name": "Central AMT - Tamper no teclado 3", | |
| "entityConfig": "369d39dd44e8bb45", | |
| "version": 0, | |
| "state": "tc_[3]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4820, | |
| "y": 4200, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "54874b31225b6c9d", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fda154b7718ee57c", | |
| "name": "Central AMT - Tamper no teclado 4", | |
| "entityConfig": "f1dba32f2cd0a111", | |
| "version": 0, | |
| "state": "tc_[4]", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4820, | |
| "y": 4260, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "adda014b630b5eb8", | |
| "type": "ha-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "25262853a065ef2a", | |
| "name": "Central AMT - Nível da Bateria", | |
| "entityConfig": "b0c2e6500aba70e0", | |
| "version": 0, | |
| "state": "bateria", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4840, | |
| "y": 3900, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "42a61cfa1e905453", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Ligar Sirene", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "d49d39e1e21c0f2b", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Ligar Sirene", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_liga_sirene", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 150, | |
| "y": 2840, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "39658cc68e020579", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Desligar Sirene", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "f38633bfc3192607", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Desligar Sirene", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_desliga_sirene", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 160, | |
| "y": 2900, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "acd7298708bebf18", | |
| "type": "ha-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "46d7fcd03f769e97", | |
| "name": "Central AMT - Firmware", | |
| "entityConfig": "aa0db4c1863ef9be", | |
| "version": 0, | |
| "state": "fw", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4820, | |
| "y": 1440, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "bfc481280a0dc14a", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "1ceab1293421ff77", | |
| "name": "Central AMT - Bateria baixa", | |
| "entityConfig": "7cf687fdfe718ae4", | |
| "version": 0, | |
| "state": "b_baixa", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4810, | |
| "y": 2220, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "a055b51af469c355", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fcb1ab9f4add6791", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 4545, | |
| "y": 3460, | |
| "wires": [ | |
| [ | |
| "d1b3a5d3277ea419", | |
| "fb6f47a669f1d79f", | |
| "ca2bfd4a54578961", | |
| "399d43523670e2f6", | |
| "a309989ea165dba6", | |
| "ef5f0fec088030da", | |
| "161f5d220a306b09", | |
| "de5e575fc104f637", | |
| "f1d7084d3fdfe560", | |
| "e7c3d08d38a70441" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "9c787a8e387606e0", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fda154b7718ee57c", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 4545, | |
| "y": 4160, | |
| "wires": [ | |
| [ | |
| "b1e8283eabacf518", | |
| "4936eae5528ad90a", | |
| "aa1689862035487b", | |
| "54874b31225b6c9d" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "73b68e0b398a04dd", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "46d7fcd03f769e97", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 4545, | |
| "y": 1620, | |
| "wires": [ | |
| [ | |
| "a2b2407f37728ddb", | |
| "31c8623b6ea53a22", | |
| "80256beb2b2f06f5", | |
| "d8203ad37b78971f", | |
| "acd7298708bebf18", | |
| "d3a9bb22637c9b30" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "e57a53884dca47ba", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7963eac05815a889", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 4545, | |
| "y": 4460, | |
| "wires": [ | |
| [ | |
| "1bf715b695eec21c", | |
| "a52fec319f5abc59", | |
| "3ae610d54e1d2dcb", | |
| "29f9a569c29ea250" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "edc930d7e9242055", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "78529bf8cc8aff65", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 4545, | |
| "y": 1980, | |
| "wires": [ | |
| [ | |
| "a13040d8f4aa2392", | |
| "3772055c7f9756ca", | |
| "dcdec41fa540c974", | |
| "e508c23c8b312705" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "1acdc4cc7b4fe91f", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "e5cf96d69b180fba", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 4545, | |
| "y": 4760, | |
| "wires": [ | |
| [ | |
| "33d79819172dbf67", | |
| "9e390626c0d67ab2", | |
| "f1690afb7f5974ea", | |
| "2d5ec2b782b87241" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "1e25053f9470c04e", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "1ceab1293421ff77", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 4545, | |
| "y": 2300, | |
| "wires": [ | |
| [ | |
| "ef50c8233149c657", | |
| "751ac8a0dc743c58", | |
| "1a48e5933b4f515e", | |
| "bfc481280a0dc14a", | |
| "5bd4cd507fa06de6" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "b92a26e487f05921", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "25262853a065ef2a", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 4545, | |
| "y": 3880, | |
| "wires": [ | |
| [ | |
| "adda014b630b5eb8", | |
| "53b3abe863a41d61" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "5513a14393bd3c82", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "706f3547f76fc842", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 4545, | |
| "y": 2800, | |
| "wires": [ | |
| [ | |
| "b8923e82362e3ab2", | |
| "4a0d1feb5ee6b223", | |
| "736261b34ccdde61", | |
| "e2205abc91fe8ada", | |
| "b63d41338014ecca", | |
| "be4fdff2c9d36d55", | |
| "f90d5da8f84a8563", | |
| "f14210df22f5a1d8" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "d3a9bb22637c9b30", | |
| "type": "ha-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "46d7fcd03f769e97", | |
| "name": "Central AMT - Modelo", | |
| "entityConfig": "89a6804599a6829d", | |
| "version": 0, | |
| "state": "model", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4820, | |
| "y": 1500, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "c56542410a88c1a6", | |
| "type": "comment", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "ac332f4b7055d075", | |
| "name": "IMPORTANTE, LEIAME!!!!! Senha geral, padrão 123456", | |
| "info": "As senhas e o IP NÃO ficam mais neste flow.\nEles são lidos do contexto global `amt`,\nalimentado por `functionGlobalContext` em\n`/config/settings.js` do add-on Node-RED\n(fora do Home Assistant: \n`/addon_configs/a0d7b954_nodered/settings.js`),\nque carrega `/config/amt_secrets.json`.\n\nO nó \"SENHAS e IP da central!!!!\" apenas\ncopia `global.amt.*` para `msg.*`.\nDepois de editar o arquivo, reinicie o add-on.\n\nFormato das senhas em amt_secrets.json:\n\n6 digitos:\n\"123456\"\n4 digitos:\n\"1234\"\n\nSenha com digitos separados por \",\".\n\n# SENHAS ESPECÍFICA\nUsando apenas uma senha geral em central **particionada**, \npode ocorrer um bug na central no seguinte cenário:\n\n2 partições estão ativadas, ex. partição A e partição B\ne é enviado um comando para desativar apenas a partição B,\na partição A acaba sendo desativada também.\n\nNesse caso é recomendado cria 5 senhas Na CENTRAL:\nSenha 1 com permissão para ativar e desativar Todas as partições e Bypass \nSenha 2 com permissão para ativar e desativar Apenas a partições A e Bypass \nSenha 3 com permissão para ativar e desativar Apenas a partições B e Bypass\nSenha 4 com permissão para ativar e desativar Apenas a partições C e Bypass\nSenha 5 com permissão para ativar e desativar Apenas a partições D e Bypass\n", | |
| "x": 260, | |
| "y": 100, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "3f37455feb345d64", | |
| "type": "comment", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Comandos das partições C, D, Stay C, Stay D e PGM 3 exlusivos para AMT 4010", | |
| "info": "", | |
| "x": 360, | |
| "y": 1520, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "1e174e56d0bc4cad", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "10c6f56801c6c3bf", | |
| "name": "Central AMT - Zona 11", | |
| "entityConfig": "03196c866a45fb5c", | |
| "version": 0, | |
| "state": "zone_[11]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[11]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[11]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[11]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[11]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[11]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3580, | |
| "y": 220, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "d43487d6b67480f6", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "10c6f56801c6c3bf", | |
| "name": "Central AMT - Zona 12", | |
| "entityConfig": "d190afd24f2e9075", | |
| "version": 0, | |
| "state": "zone_[12]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[12]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[12]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[12]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "lowbattery_[12]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[12]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3580, | |
| "y": 280, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "b767bdfc8b6310b7", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "10c6f56801c6c3bf", | |
| "name": "Central AMT - Zona 13", | |
| "entityConfig": "2cff34c8820e76e6", | |
| "version": 0, | |
| "state": "zone_[13]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[13]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[13]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[13]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[13]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[13]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3580, | |
| "y": 340, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "d79f32041a23f28e", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "10c6f56801c6c3bf", | |
| "name": "Central AMT - Zona 14", | |
| "entityConfig": "4565c4eff3321320", | |
| "version": 0, | |
| "state": "zone_[14]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[14]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[14]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[14]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[14]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[14]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3580, | |
| "y": 400, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "00f882a6995bf511", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "10c6f56801c6c3bf", | |
| "name": "Central AMT - Zona 15", | |
| "entityConfig": "b7011ae97763e89b", | |
| "version": 0, | |
| "state": "zone_[15]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[15]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[15]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[15]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[15]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[15]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3580, | |
| "y": 460, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "9b53c41f6f45591a", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "10c6f56801c6c3bf", | |
| "name": "Central AMT - Zona 16", | |
| "entityConfig": "120a89cc9717c1b1", | |
| "version": 0, | |
| "state": "zone_[16]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[16]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[16]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[16]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[16]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[16]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3580, | |
| "y": 520, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "2d64e5658858e1e0", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "10c6f56801c6c3bf", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 3435, | |
| "y": 300, | |
| "wires": [ | |
| [ | |
| "1e174e56d0bc4cad", | |
| "d43487d6b67480f6", | |
| "b767bdfc8b6310b7", | |
| "d79f32041a23f28e", | |
| "00f882a6995bf511", | |
| "9b53c41f6f45591a", | |
| "0ebb95703bb11dfa", | |
| "b4d1191e3e1eb440" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "dd7c7474465d89f2", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "6ef7a45f611b9040", | |
| "name": "Central AMT - Zona 01", | |
| "entityConfig": "e21675d9676c31a4", | |
| "version": 0, | |
| "state": "zone_[1]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[1]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[1]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[1]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[1]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[1]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3260, | |
| "y": 100, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "abd069cdf7e12a74", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "6ef7a45f611b9040", | |
| "name": "Central AMT - Zona 02", | |
| "entityConfig": "2aed303459ff89fe", | |
| "version": 0, | |
| "state": "zone_[2]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[2]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[2]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[2]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[2]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[2]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3260, | |
| "y": 160, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "3ff4b764ff29e985", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "6ef7a45f611b9040", | |
| "name": "Central AMT - Zona 03", | |
| "entityConfig": "293ddd2db59dba2a", | |
| "version": 0, | |
| "state": "zone_[3]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[3]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[3]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[3]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[3]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[3]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3260, | |
| "y": 220, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "57f4112b8f0d23c0", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "6ef7a45f611b9040", | |
| "name": "Central AMT - Zona 04", | |
| "entityConfig": "141f6770030aabcb", | |
| "version": 0, | |
| "state": "zone_[4]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[4]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[4]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[4]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[4]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[4]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3260, | |
| "y": 280, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "6106090948d3e4f9", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "6ef7a45f611b9040", | |
| "name": "Central AMT - Zona 05", | |
| "entityConfig": "8afd32d6ac149100", | |
| "version": 0, | |
| "state": "zone_[5]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[5]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[5]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[5]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[5]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[5]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3260, | |
| "y": 340, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "14fd61bc6fd68785", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "6ef7a45f611b9040", | |
| "name": "Central AMT - Zona 06", | |
| "entityConfig": "4b12a0beef69e387", | |
| "version": 0, | |
| "state": "zone_[6]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[6]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[6]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[6]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[6]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[6]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3260, | |
| "y": 400, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "b82e81a5932b907c", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "6ef7a45f611b9040", | |
| "name": "Central AMT - Zona 07", | |
| "entityConfig": "3b272a8be6be3246", | |
| "version": 0, | |
| "state": "zone_[7]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[7]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[7]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[7]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[7]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[7]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3260, | |
| "y": 460, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "17bbe99815d8bb8f", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "6ef7a45f611b9040", | |
| "name": "Central AMT - Zona 08", | |
| "entityConfig": "f25126b6046ab69d", | |
| "version": 0, | |
| "state": "zone_[8]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[8]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[8]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[8]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[8]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[8]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3260, | |
| "y": 520, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "7a9b281dfaa03623", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "6ef7a45f611b9040", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 3115, | |
| "y": 300, | |
| "wires": [ | |
| [ | |
| "dd7c7474465d89f2", | |
| "abd069cdf7e12a74", | |
| "3ff4b764ff29e985", | |
| "57f4112b8f0d23c0", | |
| "6106090948d3e4f9", | |
| "14fd61bc6fd68785", | |
| "b82e81a5932b907c", | |
| "17bbe99815d8bb8f" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "0e68ea90a4eccdcd", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f4e37856f6baf803", | |
| "name": "Central AMT - Zona 24", | |
| "entityConfig": "f7f128923db704b5", | |
| "version": 0, | |
| "state": "zone_[24]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[24]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[24]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[24]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3900, | |
| "y": 520, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "10ca3f3aacbc147c", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f4e37856f6baf803", | |
| "name": "Central AMT - Zona 22", | |
| "entityConfig": "e22602ea9476ba83", | |
| "version": 0, | |
| "state": "zone_[22]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[22]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[22]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[22]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3900, | |
| "y": 400, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "6442958ec3302a5f", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f4e37856f6baf803", | |
| "name": "Central AMT - Zona 17", | |
| "entityConfig": "0158c49bb9c4c152", | |
| "version": 0, | |
| "state": "zone_[17]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[17]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[17]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[17]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[17]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[17]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3900, | |
| "y": 100, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "e0a41490e1aadb16", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f4e37856f6baf803", | |
| "name": "Central AMT - Zona 18", | |
| "entityConfig": "bb68f86d9e64aee8", | |
| "version": 0, | |
| "state": "zone_[18]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[18]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[18]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[18]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_[18]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Curto Circuito", | |
| "value": "shortcircuit_[18]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3900, | |
| "y": 160, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "971716f76a043c26", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f4e37856f6baf803", | |
| "name": "Central AMT - Zona 19", | |
| "entityConfig": "641bb689d64d09c6", | |
| "version": 0, | |
| "state": "zone_[19]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[19]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[19]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[19]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3900, | |
| "y": 220, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "479542817755d24a", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f4e37856f6baf803", | |
| "name": "Central AMT - Zona 20", | |
| "entityConfig": "4b237727def6a69e", | |
| "version": 0, | |
| "state": "zone_[20]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[20]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[20]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[20]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3900, | |
| "y": 280, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "1df7fa7f1c2c5906", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f4e37856f6baf803", | |
| "name": "Central AMT - Zona 21", | |
| "entityConfig": "51fe635b82062696", | |
| "version": 0, | |
| "state": "zone_[21]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[21]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[21]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[21]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3900, | |
| "y": 340, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "53de0f5d466c9747", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f4e37856f6baf803", | |
| "name": "Central AMT - Zona 23", | |
| "entityConfig": "864f3e462df284f7", | |
| "version": 0, | |
| "state": "zone_[23]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[23]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[23]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[23]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3900, | |
| "y": 460, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "f61f6fbca2e969ea", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f4e37856f6baf803", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 3755, | |
| "y": 320, | |
| "wires": [ | |
| [ | |
| "6442958ec3302a5f", | |
| "e0a41490e1aadb16", | |
| "971716f76a043c26", | |
| "479542817755d24a", | |
| "1df7fa7f1c2c5906", | |
| "10ca3f3aacbc147c", | |
| "53de0f5d466c9747", | |
| "0e68ea90a4eccdcd" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "160f0cf91c8b4a54", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "eb4faac3533ead17", | |
| "name": "Central AMT - Zona 25", | |
| "entityConfig": "11d56c14547048dc", | |
| "version": 0, | |
| "state": "zone_[25]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[25]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[25]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[25]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4220, | |
| "y": 100, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "ce17cf322e91023a", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "eb4faac3533ead17", | |
| "name": "Central AMT - Zona 26", | |
| "entityConfig": "b26f937f0846d501", | |
| "version": 0, | |
| "state": "zone_[26]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[26]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[26]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[26]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4220, | |
| "y": 160, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "59e2907f1d0d21e8", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "eb4faac3533ead17", | |
| "name": "Central AMT - Zona 27", | |
| "entityConfig": "33b41caaad4025c5", | |
| "version": 0, | |
| "state": "zone_[27]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[27]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[27]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[27]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4220, | |
| "y": 220, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "c16569e3a92b1162", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "eb4faac3533ead17", | |
| "name": "Central AMT - Zona 28", | |
| "entityConfig": "be269d2fc8cdf405", | |
| "version": 0, | |
| "state": "zone_[28]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[28]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[28]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[28]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4220, | |
| "y": 280, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "8b7b8701a259bdac", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "eb4faac3533ead17", | |
| "name": "Central AMT - Zona 29", | |
| "entityConfig": "93d267942854f84c", | |
| "version": 0, | |
| "state": "zone_[29]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[29]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[29]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[29]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4220, | |
| "y": 340, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "b48ba3289096f67d", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "eb4faac3533ead17", | |
| "name": "Central AMT - Zona 30", | |
| "entityConfig": "82e16b0e4e73d626", | |
| "version": 0, | |
| "state": "zone_[30]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[30]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[30]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[30]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4220, | |
| "y": 400, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "4dcb09c943f09159", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "eb4faac3533ead17", | |
| "name": "Central AMT - Zona 31", | |
| "entityConfig": "ee2111feb365ac01", | |
| "version": 0, | |
| "state": "zone_[31]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[31]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[31]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[31]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4220, | |
| "y": 460, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "e0fccfcb0ce05aa6", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "eb4faac3533ead17", | |
| "name": "Central AMT - Zona 32", | |
| "entityConfig": "144547cf09861732", | |
| "version": 0, | |
| "state": "zone_[32]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[32]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[32]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[32]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4220, | |
| "y": 520, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "c6311a59a6716572", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "eb4faac3533ead17", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 4075, | |
| "y": 320, | |
| "wires": [ | |
| [ | |
| "160f0cf91c8b4a54", | |
| "ce17cf322e91023a", | |
| "59e2907f1d0d21e8", | |
| "c16569e3a92b1162", | |
| "8b7b8701a259bdac", | |
| "b48ba3289096f67d", | |
| "4dcb09c943f09159", | |
| "e0fccfcb0ce05aa6" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "c54e13d751a42d7c", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "8f6e6976e2267cb1", | |
| "name": "Central AMT - Zona 37", | |
| "entityConfig": "3568d2671db973ac", | |
| "version": 0, | |
| "state": "zone_[37]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[37]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[37]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[37]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4540, | |
| "y": 340, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "19417fae03eb3bf1", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "8f6e6976e2267cb1", | |
| "name": "Central AMT - Zona 33", | |
| "entityConfig": "ef15444dadcb05a3", | |
| "version": 0, | |
| "state": "zone_[33]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[33]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[33]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[33]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4540, | |
| "y": 100, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "aaea09c60c88f197", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "8f6e6976e2267cb1", | |
| "name": "Central AMT - Zona 34", | |
| "entityConfig": "db60c365f374d01a", | |
| "version": 0, | |
| "state": "zone_[34]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[34]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[34]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[34]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4540, | |
| "y": 160, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "375ce5cd7eeb2c2b", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "8f6e6976e2267cb1", | |
| "name": "Central AMT - Zona 35", | |
| "entityConfig": "bc522a84b422639e", | |
| "version": 0, | |
| "state": "zone_[35]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[35]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[35]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[35]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4540, | |
| "y": 220, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "df7f2f8591881695", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "8f6e6976e2267cb1", | |
| "name": "Central AMT - Zona 36", | |
| "entityConfig": "2d185a622dd7d760", | |
| "version": 0, | |
| "state": "zone_[36]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[36]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[36]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[36]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4540, | |
| "y": 280, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "a7d35eb98af1940f", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "8f6e6976e2267cb1", | |
| "name": "Central AMT - Zona 38", | |
| "entityConfig": "96ed5fa5d06fdbc8", | |
| "version": 0, | |
| "state": "zone_[38]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[38]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[38]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[38]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4540, | |
| "y": 400, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "aa9cee073af5104c", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "8f6e6976e2267cb1", | |
| "name": "Central AMT - Zona 39", | |
| "entityConfig": "221cda296d401cdf", | |
| "version": 0, | |
| "state": "zone_[39]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[39]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[39]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[39]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4540, | |
| "y": 460, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "153cccdccee1eb53", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "8f6e6976e2267cb1", | |
| "name": "Central AMT - Zona 40", | |
| "entityConfig": "67f977178378955d", | |
| "version": 0, | |
| "state": "zone_[40]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[40]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[40]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[40]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4540, | |
| "y": 520, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "d32a38e51c2581de", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "8f6e6976e2267cb1", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 4395, | |
| "y": 320, | |
| "wires": [ | |
| [ | |
| "19417fae03eb3bf1", | |
| "aaea09c60c88f197", | |
| "375ce5cd7eeb2c2b", | |
| "df7f2f8591881695", | |
| "c54e13d751a42d7c", | |
| "a7d35eb98af1940f", | |
| "aa9cee073af5104c", | |
| "153cccdccee1eb53" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "10890a013bf5c56d", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "551795c3e31f898c", | |
| "name": "Central AMT - Zona 41", | |
| "entityConfig": "6788898ea3575085", | |
| "version": 0, | |
| "state": "zone_[41]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[41]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[41]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[41]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 100, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "d99076ded9abf49a", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "551795c3e31f898c", | |
| "name": "Central AMT - Zona 42", | |
| "entityConfig": "c9a3fe2af27f1e4d", | |
| "version": 0, | |
| "state": "zone_[42]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[42]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[42]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[42]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 160, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "e939dff4df1f5458", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "551795c3e31f898c", | |
| "name": "Central AMT - Zona 43", | |
| "entityConfig": "90c793dd830ac15b", | |
| "version": 0, | |
| "state": "zone_[43]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[43]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[43]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[43]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 220, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "49e9a4c7b31d8826", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "551795c3e31f898c", | |
| "name": "Central AMT - Zona 44", | |
| "entityConfig": "9cfd49210d675f4d", | |
| "version": 0, | |
| "state": "zone_[44]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[44]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[44]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[44]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 280, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "5a9d5c284f624547", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "551795c3e31f898c", | |
| "name": "Central AMT - Zona 45", | |
| "entityConfig": "28f1946a45bf9c36", | |
| "version": 0, | |
| "state": "zone_[45]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[45]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[45]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[45]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 340, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "1ade3d69c50a055c", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "551795c3e31f898c", | |
| "name": "Central AMT - Zona 46", | |
| "entityConfig": "c53eb2b85979608b", | |
| "version": 0, | |
| "state": "zone_[46]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[46]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[46]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[46]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 400, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "9e83b1f312c86c55", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "551795c3e31f898c", | |
| "name": "Central AMT - Zona 47", | |
| "entityConfig": "fb14be7a137d0ff3", | |
| "version": 0, | |
| "state": "zone_[47]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[47]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[47]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[47]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 460, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "8c053ba14cbca2c2", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "551795c3e31f898c", | |
| "name": "Central AMT - Zona 48", | |
| "entityConfig": "535b8858a8c1b4f3", | |
| "version": 0, | |
| "state": "zone_[48]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[48]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[48]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[48]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 520, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "d41288c68a8caa3c", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "551795c3e31f898c", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 4715, | |
| "y": 320, | |
| "wires": [ | |
| [ | |
| "10890a013bf5c56d", | |
| "d99076ded9abf49a", | |
| "e939dff4df1f5458", | |
| "49e9a4c7b31d8826", | |
| "5a9d5c284f624547", | |
| "1ade3d69c50a055c", | |
| "9e83b1f312c86c55", | |
| "8c053ba14cbca2c2" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "51489869d06df2fe", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 49", | |
| "entityConfig": "c3984b3394f7b206", | |
| "version": 0, | |
| "state": "zone_[49]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[49]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[49]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[49]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4580, | |
| "y": 720, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "44478ca3c75f4deb", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 50", | |
| "entityConfig": "cb87a836d3fb6301", | |
| "version": 0, | |
| "state": "zone_[50]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[50]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[50]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[50]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4580, | |
| "y": 780, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "f2f7f50685c748f8", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 51", | |
| "entityConfig": "9fec99d77388bfee", | |
| "version": 0, | |
| "state": "zone_[51]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[51]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[51]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[51]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4580, | |
| "y": 840, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "7c7285fe5903e3c3", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 52", | |
| "entityConfig": "d65c5a4258863317", | |
| "version": 0, | |
| "state": "zone_[52]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[52]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[52]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[52]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4580, | |
| "y": 900, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "9b3a10717a6a684d", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 53", | |
| "entityConfig": "0104b237965acbe8", | |
| "version": 0, | |
| "state": "zone_[53]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[53]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[53]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[53]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4580, | |
| "y": 960, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "32a45ab1e43c1868", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 54", | |
| "entityConfig": "ca9e697a8ec57b9c", | |
| "version": 0, | |
| "state": "zone_[54]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[54]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[54]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[54]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4580, | |
| "y": 1020, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "34eedb23be723532", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 55", | |
| "entityConfig": "49fbf79743240ddb", | |
| "version": 0, | |
| "state": "zone_[55]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[55]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[55]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[55]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4580, | |
| "y": 1080, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "256cb5702b219c86", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 56", | |
| "entityConfig": "5b59736ce9b42151", | |
| "version": 0, | |
| "state": "zone_[56]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[56]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[56]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[56]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4580, | |
| "y": 1140, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "8b909c5a88d4b345", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 4435, | |
| "y": 940, | |
| "wires": [ | |
| [ | |
| "51489869d06df2fe", | |
| "44478ca3c75f4deb", | |
| "f2f7f50685c748f8", | |
| "7c7285fe5903e3c3", | |
| "9b3a10717a6a684d", | |
| "32a45ab1e43c1868", | |
| "34eedb23be723532", | |
| "256cb5702b219c86" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "8759bbd930c27057", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 57", | |
| "entityConfig": "ad32e28cb1af3672", | |
| "version": 0, | |
| "state": "zone_[57]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[57]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[57]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[57]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 720, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "11413f95ceb079b5", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 58", | |
| "entityConfig": "6ed458f71d1c5131", | |
| "version": 0, | |
| "state": "zone_[58]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[58]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[58]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[58]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 780, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "da490f63202ea694", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 59", | |
| "entityConfig": "33d0f106b52cd8e8", | |
| "version": 0, | |
| "state": "zone_[59]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[59]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[59]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[59]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 840, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "84ab978d64fa3357", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 60", | |
| "entityConfig": "674306b2d4610675", | |
| "version": 0, | |
| "state": "zone_[60]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[60]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[60]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[60]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 900, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "1f645627c98b2650", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 61", | |
| "entityConfig": "65294f07883445b3", | |
| "version": 0, | |
| "state": "zone_[61]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[61]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[61]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[61]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 960, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "f96ea3605b74c740", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 62", | |
| "entityConfig": "cf10665e21a4a471", | |
| "version": 0, | |
| "state": "zone_[62]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[62]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[62]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[62]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 1020, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "2941e4d5779614c9", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 63", | |
| "entityConfig": "dbc79a822d6006d4", | |
| "version": 0, | |
| "state": "zone_[63]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[63]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[63]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[63]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 1080, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "66d941173682ca42", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Central AMT - Zona 64", | |
| "entityConfig": "a318878b62ac0d6f", | |
| "version": 0, | |
| "state": "zone_[64]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[64]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[64]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[64]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4860, | |
| "y": 1140, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "74d872d9b3c64791", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c01eb811ebe37477", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 4715, | |
| "y": 940, | |
| "wires": [ | |
| [ | |
| "8759bbd930c27057", | |
| "11413f95ceb079b5", | |
| "da490f63202ea694", | |
| "84ab978d64fa3357", | |
| "1f645627c98b2650", | |
| "f96ea3605b74c740", | |
| "2941e4d5779614c9", | |
| "66d941173682ca42" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "3ba1669d42e7425f", | |
| "type": "link out", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Indisponivel no boot", | |
| "mode": "link", | |
| "links": [ | |
| "51dd6c0d83f843b8", | |
| "992adf4a9b074b23" | |
| ], | |
| "x": 425, | |
| "y": 440, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "49407a4f9f3e07d1", | |
| "type": "ha-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "Central AMT - ACK", | |
| "entityConfig": "4264d3923fe3f00f", | |
| "version": 0, | |
| "state": "payload", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Comando", | |
| "value": "button_press", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 1910, | |
| "y": 1000, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "362af2fa41d8d398", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "d4196524eeb86e74", | |
| "name": "Sensores Adicionais (Set State)", | |
| "func": "var i;\nvar entities = [];\nvar partitions = [4];\n\nif (flow.get(\"temp_entities\") === undefined) {\n \n const haCtx = global.get(\"homeassistant\"); const configCtx = haCtx.homeAssistant;\n\n // O Home Assistant prefixa o entity_id com o nome do dispositivo quando ele\n // e renomeado (ex. binary_sensor.sala_central_de_alarme_central_amt_zona_01).\n // Procuramos pelo final do id para funcionar com ou sem prefixo.\n const acharPorSufixo = function (idBase) {\n if (configCtx.states[idBase] !== undefined) { return configCtx.states[idBase]; }\n const corte = idBase.indexOf(\".\") + 1;\n const dominio = idBase.slice(0, corte);\n const fim = \"_\" + idBase.slice(corte);\n const achado = Object.keys(configCtx.states).find(function (k) {\n return k.startsWith(dominio) && k.endsWith(fim);\n });\n return achado === undefined ? undefined : configCtx.states[achado];\n };\n\n for (i = 0; i < 65; i++) {\n if (i < 10) {\n if (i > 0) {\n entities[i] = acharPorSufixo(\"binary_sensor.central_amt_zona_0\" + [i]);\n }\n } else {\n entities[i] = acharPorSufixo(\"binary_sensor.central_amt_zona_\" + [i]);\n }\n }\n partitions[0] = acharPorSufixo(\"binary_sensor.central_amt_particao_a\");\n partitions[1] = acharPorSufixo(\"binary_sensor.central_amt_particao_b\");\n partitions[2] = acharPorSufixo(\"binary_sensor.central_amt_particao_c\");\n partitions[3] = acharPorSufixo(\"binary_sensor.central_amt_particao_d\");\n\n // So guarda em cache se realmente achou as zonas. Guardar undefined aqui\n // deixava o no quebrado para sempre, ate limpar o contexto do flow.\n if (entities[1] === undefined) {\n node.error(\"[AMT] zonas nao encontradas no Home Assistant. Verifique os entity_id de binary_sensor.*central_amt_zona_01\", msg);\n return;\n }\n\n msg.entities = entities;\n flow.set(\"temp_entities\", entities);\n msg.partitions = partitions;\n flow.set(\"temp_entities_partitions\", partitions);\n }\nvar i;\nentities = flow.get(\"temp_entities\");// pegar o valor do flow_name\n\npartitions = flow.get(\"temp_entities_partitions\");// pegar o valor do flow_name\nmsg.partitions = partitions;\n\nvar zone_ = msg.zone_\nvar violated_ = msg.violated_\nvar anulated_ = msg.anulated_\nvar lowbattery_ = msg.lowbattery_\nvar tamper_ = msg.tamper_\nvar shortcircuit_ = msg.shortcircuit_\nvar aberta_count = 0;\nvar disparada_count = 0;\nvar anulada_count = 0;\nvar bateria_baixa_count = 0;\nvar tamper_count = 0;\nvar curto_circuito_count = 0;\nvar particoes_ativadas_count = 0;\n\nmsg.aberta = \"NA\"\nmsg.disparada = \"NA\";\nmsg.anulada = \"NA\";\nmsg.tamper = \"NA\";\nmsg.curto_circuito = \"NA\";\nmsg.bateria_baixa = \"NA\";\nmsg.particoes_ativadas = \"NA\";\n\nfor (i = 0; i < 65; i++) {\n\n if (i > 0) {\n\n entities[i].state = zone_[i];\n entities[i].attributes.disparada = violated_[i];\n entities[i].attributes.anulada = anulated_[i];\n entities[i].attributes.bateria_baixa = lowbattery_[i];\n\n if (entities[i].state == 1) {\n msg.aberta = msg.aberta + \", \" + entities[i].attributes.friendly_name\n aberta_count++;\n }\n\n if (entities[i].attributes.disparada == 1) {\n msg.disparada = msg.disparada + \", \" + entities[i].attributes.friendly_name;\n disparada_count++;\n\n }\n\n if (entities[i].attributes.anulada == 1) {\n msg.anulada = msg.anulada + \", \" + entities[i].attributes.friendly_name\n anulada_count++;\n\n }\n\n if (entities[i].attributes.bateria_baixa == 1) {\n msg.bateria_baixa = msg.bateria_baixa + \", \" + entities[i].attributes.friendly_name\n bateria_baixa_count++;\n\n }\n\n if ((i < 19) && (i != 9) && (i != 10)) {\n //if (i < 19) {\n entities[i].attributes.tamper = tamper_[i]\n entities[i].attributes.curto_circuito = shortcircuit_[i]\n\n if (entities[i].attributes.tamper == 1) {\n msg.tamper = msg.tamper + \", \" + entities[i].attributes.friendly_name\n tamper_count++;\n\n }\n\n if (entities[i].attributes.curto_circuito == 1) {\n msg.curto_circuito = msg.curto_circuito + \", \" + entities[i].attributes.friendly_name\n curto_circuito_count++;\n\n }\n }\n\n\n\n }\n}\n\n\n// Particoes C e D nao existem em todos os modelos, entao podem estar ausentes.\nvar estados_particoes = [msg.partition_a, msg.partition_b, msg.partition_c, msg.partition_d];\nfor (i = 0; i < partitions.length; i++) {\n if (partitions[i] !== undefined) { partitions[i].state = estados_particoes[i]; }\n}\n\n// Numero de particoes reais deste modelo: a 2018/1016 so tem A e B.\nvar n_particoes = msg.particoes_cd_existem === false ? 2 : partitions.length;\n\nfor (i = 0; i < n_particoes; i++) {\n\n if (partitions[i] !== undefined && partitions[i].state == true) {\n msg.particoes_ativadas = msg.particoes_ativadas + \", \" + partitions[i].attributes.friendly_name.replace(\"Central AMT - PARTIÇÃO \", \"\")\n particoes_ativadas_count++;\n }\n\n}\nmsg.particoes_ativadas = msg.particoes_ativadas.replace(\"NA, \", \"\");\n\nmsg.entities = entities; // apenas para teste\nmsg.aberta = msg.aberta.replace(\"NA, \", \"\");\nmsg.disparada = msg.disparada.replace(\"NA, \", \"\");\nmsg.anulada = msg.anulada.replace(\"NA, \", \"\");\nmsg.tamper = msg.tamper.replace(\"NA, \", \"\");\nmsg.curto_circuito = msg.curto_circuito.replace(\"NA, \", \"\");\nmsg.bateria_baixa = msg.bateria_baixa.replace(\"NA, \", \"\");\n\nmsg.aberta_count = aberta_count;\nmsg.disparada_count = disparada_count;\nmsg.anulada_count = anulada_count;\nmsg.bateria_baixa_count = bateria_baixa_count;\nmsg.tamper_count = tamper_count;\nmsg.curto_circuito_count = curto_circuito_count;\nmsg.particoes_ativadas_count = particoes_ativadas_count;\n\ndelete msg.entities\ndelete msg.partitions\n\n\ndelete msg.zone_\ndelete msg.violated_\ndelete msg.anulated_\ndelete msg.lowbattery_\ndelete msg.tamper_\ndelete msg.shortcircuit_\ndelete msg.fw\ndelete msg.model\ndelete msg.partition_a\ndelete msg.partition_b\ndelete msg.partition_c\ndelete msg.partition_d\ndelete msg.pc\ndelete msg.za\ndelete msg.activated\ndelete msg.cd\ndelete msg.acpower\ndelete msg.b_baixa\ndelete msg.b_con\ndelete msg.b_curto\ndelete msg.s_aux\ndelete msg.pt_\ndelete msg.pr_\ndelete msg.pep_\ndelete msg.pez_\ndelete msg.bateria\ndelete msg.tc_\ndelete msg.ss\ndelete msg.pgm_1\ndelete msg.pgm_2\ndelete msg.pgm_3\ndelete msg.scf\ndelete msg.sc\ndelete msg.ct\ndelete msg.fce\ndelete msg.clock\nreturn msg;", | |
| "outputs": 1, | |
| "timeout": "", | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 2550, | |
| "y": 260, | |
| "wires": [ | |
| [ | |
| "8d99f1b70937af7c", | |
| "76ebbdb5bb0c6203", | |
| "992e048b7a00b2f6", | |
| "84f536ebe87e4a1f", | |
| "875c8e1529067aa1", | |
| "b797b509b4c58be8", | |
| "74b7d24c71ec721b", | |
| "941ea84b6b55629c" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "b797b509b4c58be8", | |
| "type": "ha-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7be5a23a76cda6ac", | |
| "name": "Central AMT - Zonas Abertas", | |
| "entityConfig": "cb081378b3fe3eaa", | |
| "version": 0, | |
| "state": "aberta", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Abertas", | |
| "value": "aberta_count", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 2880, | |
| "y": 100, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "875c8e1529067aa1", | |
| "type": "ha-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7be5a23a76cda6ac", | |
| "name": "Central AMT - Zonas Bateria Baixa", | |
| "entityConfig": "5afa0831035c5c46", | |
| "version": 0, | |
| "state": "bateria_baixa", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "bateria_baixa_count", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 2900, | |
| "y": 280, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "84f536ebe87e4a1f", | |
| "type": "ha-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7be5a23a76cda6ac", | |
| "name": "Central AMT - Zonas Disparadas", | |
| "entityConfig": "d34e4ba32171b160", | |
| "version": 0, | |
| "state": "disparada", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparadas", | |
| "value": "disparada_count", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 2890, | |
| "y": 160, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "992e048b7a00b2f6", | |
| "type": "ha-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7be5a23a76cda6ac", | |
| "name": "Central AMT - Zonas Anuladas", | |
| "entityConfig": "28d995e277bb59fb", | |
| "version": 0, | |
| "state": "anulada", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Anuladas", | |
| "value": "anulada_count", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 2880, | |
| "y": 220, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "76ebbdb5bb0c6203", | |
| "type": "ha-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7be5a23a76cda6ac", | |
| "name": "Central AMT - Zonas Tamper Violado", | |
| "entityConfig": "efc4f8265aea47fc", | |
| "version": 0, | |
| "state": "tamper", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Tamper", | |
| "value": "tamper_count", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 2900, | |
| "y": 340, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "8d99f1b70937af7c", | |
| "type": "ha-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7be5a23a76cda6ac", | |
| "name": "Central AMT - Zonas em Curto", | |
| "entityConfig": "15ae050e5ef0906f", | |
| "version": 0, | |
| "state": "curto_circuito", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Curto Circuito", | |
| "value": "curto_circuito_count", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 2880, | |
| "y": 400, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "e3165761e14ac4bf", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7be5a23a76cda6ac", | |
| "name": "Sensores", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 2385, | |
| "y": 260, | |
| "wires": [ | |
| [ | |
| "362af2fa41d8d398" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "1af644b3b80d3667", | |
| "type": "rbe", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "Status filter", | |
| "func": "rbe", | |
| "gap": "", | |
| "start": "", | |
| "inout": "out", | |
| "septopics": false, | |
| "property": "payload", | |
| "topi": "topic", | |
| "x": 1390, | |
| "y": 920, | |
| "wires": [ | |
| [ | |
| "eaa6628f30d02764", | |
| "1203132061b6e84b", | |
| "c27463becba61c4a" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "456f1c9bf83653fa", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "Status Sem filtro", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1240, | |
| "y": 760, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "f74b6fb94a72536b", | |
| "type": "switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "", | |
| "property": "payload[0]", | |
| "propertyType": "msg", | |
| "rules": [ | |
| { | |
| "t": "gte", | |
| "v": "0x2b", | |
| "vt": "str" | |
| }, | |
| { | |
| "t": "eq", | |
| "v": "2", | |
| "vt": "str" | |
| }, | |
| { | |
| "t": "else" | |
| } | |
| ], | |
| "checkall": "true", | |
| "repair": false, | |
| "outputs": 3, | |
| "x": 1190, | |
| "y": 940, | |
| "wires": [ | |
| [ | |
| "1af644b3b80d3667" | |
| ], | |
| [ | |
| "1db4da62533e65cb", | |
| "715d943f905eb787", | |
| "10f906df5b94ef21" | |
| ], | |
| [ | |
| "33e5c0be50275d66" | |
| ] | |
| ], | |
| "outputLabels": [ | |
| "Status", | |
| "Comandos", | |
| "???" | |
| ] | |
| }, | |
| { | |
| "id": "c27463becba61c4a", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "Status Com Filtro", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1590, | |
| "y": 760, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "1db4da62533e65cb", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "Comando", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1400, | |
| "y": 1060, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "33e5c0be50275d66", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "what?", | |
| "active": true, | |
| "tosidebar": true, | |
| "console": true, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1400, | |
| "y": 1100, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "168f22e76d1b0f18", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "Central AMT - Central Online", | |
| "entityConfig": "56df060c8f86a932", | |
| "version": 0, | |
| "state": "payload", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [ | |
| { | |
| "property": "reset", | |
| "propertyType": "msg", | |
| "value": "true", | |
| "valueType": "bool" | |
| } | |
| ], | |
| "x": 1680, | |
| "y": 1280, | |
| "wires": [ | |
| [ | |
| "1af644b3b80d3667" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "178c391c799c5bfc", | |
| "type": "link out", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "Sensores", | |
| "mode": "link", | |
| "links": [ | |
| "1acdc4cc7b4fe91f", | |
| "1e25053f9470c04e", | |
| "2d64e5658858e1e0", | |
| "5513a14393bd3c82", | |
| "73b68e0b398a04dd", | |
| "74d872d9b3c64791", | |
| "7a9b281dfaa03623", | |
| "8b909c5a88d4b345", | |
| "9c787a8e387606e0", | |
| "a055b51af469c355", | |
| "b92a26e487f05921", | |
| "c6311a59a6716572", | |
| "d32a38e51c2581de", | |
| "d41288c68a8caa3c", | |
| "e3165761e14ac4bf", | |
| "e57a53884dca47ba", | |
| "edc930d7e9242055", | |
| "f61f6fbca2e969ea", | |
| "a742fe0d29e24739" | |
| ], | |
| "x": 2065, | |
| "y": 820, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "afda27e5a12ea55a", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "Indisponível", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 2170, | |
| "y": 1460, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "3b283e11156da62f", | |
| "type": "api-call-service", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "Central Desconectada", | |
| "server": "e0000d7f6aec4209", | |
| "version": 7, | |
| "debugenabled": false, | |
| "action": "persistent_notification.create", | |
| "floorId": [], | |
| "areaId": [], | |
| "deviceId": [], | |
| "entityId": [], | |
| "labelId": [], | |
| "data": "{\"message\":\"Central Desconectada\",\"title\":\"CENTRAL AMT\",\"notification_id\":\"central_amt\"}", | |
| "dataType": "jsonata", | |
| "mergeContext": "", | |
| "mustacheAltTags": false, | |
| "outputProperties": [], | |
| "queue": "none", | |
| "blockInputOverrides": false, | |
| "domain": "persistent_notification", | |
| "service": "create", | |
| "x": 1700, | |
| "y": 1400, | |
| "wires": [ | |
| [ | |
| "eea0c8c97cee7296" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "f1f2aec1b79c3dd9", | |
| "type": "api-call-service", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "Central Conectada", | |
| "server": "e0000d7f6aec4209", | |
| "version": 7, | |
| "debugenabled": false, | |
| "action": "persistent_notification.dismiss", | |
| "floorId": [], | |
| "areaId": [], | |
| "deviceId": [], | |
| "entityId": [], | |
| "labelId": [], | |
| "data": "{\"notification_id\":\"central_amt\"}", | |
| "dataType": "jsonata", | |
| "mergeContext": "", | |
| "mustacheAltTags": false, | |
| "outputProperties": [], | |
| "queue": "none", | |
| "blockInputOverrides": false, | |
| "domain": "persistent_notification", | |
| "service": "dismiss", | |
| "x": 1690, | |
| "y": 1340, | |
| "wires": [ | |
| [ | |
| "6c89cff9974466de" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "f25ca11abb4c29b9", | |
| "type": "ha-switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "Central AMT - Requisição de Status", | |
| "version": 0, | |
| "inputs": 1, | |
| "outputs": 2, | |
| "entityConfig": "3415cf1acf72aef7", | |
| "enableInput": true, | |
| "outputOnStateChange": true, | |
| "outputProperties": [ | |
| { | |
| "property": "swicth", | |
| "propertyType": "msg", | |
| "value": "boolean", | |
| "valueType": "entityState" | |
| }, | |
| { | |
| "property": "check_status", | |
| "propertyType": "flow", | |
| "value": "boolean", | |
| "valueType": "entityState" | |
| } | |
| ], | |
| "x": 1700, | |
| "y": 1520, | |
| "wires": [ | |
| [ | |
| "1fcbca4b906e601b" | |
| ], | |
| [ | |
| "1fcbca4b906e601b" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "51dd6c0d83f843b8", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "Indisponivel no boot", | |
| "links": [ | |
| "3ba1669d42e7425f", | |
| "276e507a7a5e2633" | |
| ], | |
| "x": 1155, | |
| "y": 1300, | |
| "wires": [ | |
| [ | |
| "6e1d852b06d00863", | |
| "38caaff4.03f6d" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "eaa6628f30d02764", | |
| "type": "switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "Verificação do Modelo", | |
| "property": "payload[0]", | |
| "propertyType": "msg", | |
| "rules": [ | |
| { | |
| "t": "eq", | |
| "v": "0x37", | |
| "vt": "str" | |
| }, | |
| { | |
| "t": "eq", | |
| "v": "0x2C", | |
| "vt": "str" | |
| }, | |
| { | |
| "t": "eq", | |
| "v": "0x60", | |
| "vt": "str" | |
| }, | |
| { | |
| "t": "else" | |
| } | |
| ], | |
| "checkall": "true", | |
| "repair": false, | |
| "outputs": 4, | |
| "x": 1620, | |
| "y": 920, | |
| "wires": [ | |
| [ | |
| "9e83010a7491ae66" | |
| ], | |
| [ | |
| "0ecf7a73f45765c1" | |
| ], | |
| [ | |
| "19b6a116b69d1ce7" | |
| ], | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "9e83010a7491ae66", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "AMT 4010", | |
| "func": "if (global.get(\"homeassistant.homeAssistant.isConnected\") == true) {\n\n var zone_ = Buffer.alloc(65);\n var violated_ = Buffer.alloc(65);\n var anulated_ = Buffer.alloc(65);\n var lowbattery_ = Buffer.alloc(65);\n var n_zone;\n var i;\n var j;\n for (i = 0; i < 64 / 8; i++) {\n for (j = 0; j < 8; j++) {\n\n n_zone = ((i * 8) + 1 + j);\n zone_[n_zone] = ((msg.payload[i + 1 + 1] >> j) & 1);\n violated_[n_zone] = (msg.payload[i + 1 + 9] >> j) & 1;\n anulated_[n_zone] = (msg.payload[i + 1 + 17] >> j) & 1;\n\n if (n_zone < 17) {\n lowbattery_[n_zone] = 0;\n } else {\n\n lowbattery_[n_zone] = (msg.payload[i + 1 + 45] >> j) & 1;\n\n }\n }\n }\n msg.zone_ = zone_;\n msg.violated_ = violated_;\n msg.anulated_ = anulated_;\n msg.lowbattery_ = lowbattery_;\n\n var tamper_ = Buffer.alloc(19);\n var shortcircuit_ = Buffer.alloc(19);\n n_zone = 0;\n for (i = 0; i < 8 / 8; i++) {\n for (j = 0; j < 8; j++) {\n\n n_zone = ((i * 8) + 1 + j);\n tamper_[n_zone] = (msg.payload[i + 1 + 44] >> j) & 1;\n shortcircuit_[n_zone] = (msg.payload[i + 1 + 45] >> j) & 1;\n tamper_[n_zone + 10] = 0;\n shortcircuit_[n_zone + 10] = 0;\n }\n }\n\n msg.tamper_ = tamper_;\n msg.shortcircuit_ = shortcircuit_;\n\n var fw1 = (msg.payload[26 + 1]) & 0xf0;\n var fw2 = (msg.payload[26 + 1]) & 0x0f;\n fw1 = (fw1 / 16);\n msg.fw = (fw1 + \".\" + fw2);\n if (msg.payload[25 + 1] == 0x41) {\n msg.model = \"AMT 4010 SMART\"\n } else {\n msg.model = \"Desconhecido\"\n }\n\n msg.partition_a = Boolean((msg.payload[28 + 1] >> 0) & 1);\n msg.partition_b = Boolean((msg.payload[28 + 1] >> 1) & 1);\n msg.partition_c = Boolean((msg.payload[29 + 1] >> 0) & 1);\n msg.partition_d = Boolean((msg.payload[29 + 1] >> 1) & 1);\nmsg.particoes_cd_existem = true;\n\n msg.pc = (msg.payload[30 + 1] >> 0) & 1;\n msg.za = (msg.payload[30 + 1] >> 2) & 1;\n msg.activated = Boolean((msg.payload[30 + 1] >> 3) & 1);\n msg.cd = (msg.payload[30 + 1] >> 6) & 1;\n\n msg.acpower = Boolean((msg.payload[36 + 1] >> 0) & 1);\n msg.b_baixa = (msg.payload[36 + 1] >> 1) & 1;\n msg.b_con = (msg.payload[36 + 1] >> 2) & 1;\n msg.b_curto = (msg.payload[36 + 1] >> 3) & 1;\n msg.s_aux = (msg.payload[36 + 1] >> 4) & 1;\n\n var pt_ = Buffer.alloc(5);\n var pr_ = Buffer.alloc(5);\n n_zone = 0;\n for (i = 0; i < 4; i++) {\n for (j = 0; j < 4; j++) {\n\n n_zone = ((i * 8) + 1 + j);\n pt_[n_zone] = (msg.payload[i + 1 + 37] >> j) & 1;\n pr_[n_zone] = (msg.payload[i + 1 + 37] >> j + 4) & 1;\n }\n }\n\n msg.pt_ = pt_;\n msg.pr_ = pr_;\n\n var pep_ = Buffer.alloc(5);\n var pez_ = Buffer.alloc(9);\n n_zone = 0;\n for (i = 0; i < 4; i++) {\n for (j = 0; j < 4; j++) {\n\n n_zone = ((i * 8) + 1 + j);\n pep_[n_zone] = (msg.payload[i + 1 + 38] >> j) & 1;\n pez_[n_zone + 4] = (msg.payload[i + 1 + 39] >> j) & 1;\n pez_[n_zone] = (msg.payload[i + 1 + 38] >> j + 4) & 1;\n }\n }\n\n msg.pep_ = pep_;\n msg.pez_ = pez_;\n\n msg.b_con = (msg.payload[36 + 1] >> 2) & 1;\n if (msg.b_con == 0) {\n msg.bateria = (msg.payload[41 + 1]) & 0x0f;\n if (msg.bateria == 0x0f) {\n msg.bateria = 100;\n } else if (msg.bateria == 0x07) {\n msg.bateria = 75;\n } else if (msg.bateria == 0x03) {\n msg.bateria = 50;\n } else if (msg.bateria == 0x01) {\n msg.bateria = 25;\n } else if (msg.bateria == 0x00) {\n msg.bateria = 0;\n }/* else {\nmsg.bateria = -10\n}*/\n } else {\n msg.bateria = 0;\n }\n\n var tc_ = Buffer.alloc(5);\n n_zone = 0;\n for (i = 0; i < 4; i++) {\n for (j = 0; j < 4; j++) {\n\n n_zone = ((i * 8) + 1 + j);\n tc_[n_zone] = (msg.payload[i + 1 + 42] >> j + 4) & 1;\n }\n }\n\n msg.tc_ = tc_;\n\n msg.ss = Boolean((msg.payload[46 + 1] >> 3) & 1);\n msg.pgm_1 = Boolean((msg.payload[46 + 1] >> 6) & 1);\n msg.pgm_2 = Boolean((msg.payload[46 + 1] >> 5) & 1);\n msg.pgm_3 = Boolean((msg.payload[46 + 1] >> 4) & 1);\n\n msg.scf = (msg.payload[43 + 1] >> 0) & 1;\n msg.sc = (msg.payload[43 + 1] >> 1) & 1;\n msg.ct = (msg.payload[43 + 1] >> 2) & 1;\n msg.fce = (msg.payload[43 + 1] >> 3) & 1;\n\n var yy;\n var mm;\n var dd;\n var hh;\n var min;\n\n //year\n if (msg.payload[35 + 1] < 10) {\n yy = \"0\" + msg.payload[35 + 1]\n } else {\n yy = msg.payload[35 + 1]\n }\n //month\n if (msg.payload[34 + 1] < 10) {\n mm = \"0\" + msg.payload[34 + 1]\n } else {\n mm = msg.payload[34 + 1]\n }\n //day\n if (msg.payload[33 + 1] < 10) {\n dd = \"0\" + msg.payload[33 + 1]\n } else {\n dd = msg.payload[33 + 1]\n }\n //hour\n if (msg.payload[31 + 1] < 10) {\n hh = \"0\" + msg.payload[31 + 1]\n } else {\n hh = msg.payload[31 + 1]\n }\n //minutes\n if (msg.payload[32 + 1] < 10) {\n min = \"0\" + msg.payload[32 + 1]\n } else {\n min = msg.payload[32 + 1]\n }\n\n var clock = (\n \"20\" + yy + \"-\" +\n mm + \"-\" +\n dd + \"T\" +\n hh + \":\" +\n min + \":00+0000\"\n )\n\n var clock2 = Math.trunc((((Date.now() - 10800000) - (Date.parse(clock) - 0)) / 1000));\n\n if (clock2 > -600 && clock2 < 600) {// se a diferença for mais que 10 minutos\n\n msg.clock = \"Data e hora sincronizada\"\n\n } else {\n\n msg.clock = \"Data e hora desincronizada\"\n\n }\n\n //msg.frombuffer = Date.parse(clock);\n //msg.fromnow = Date.now();\n\n delete msg.payload\n delete msg.port\n delete msg.host\n\n return msg;\n}", | |
| "outputs": 1, | |
| "timeout": "", | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 1870, | |
| "y": 820, | |
| "wires": [ | |
| [ | |
| "178c391c799c5bfc", | |
| "b531e8a1e617303d" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "0ecf7a73f45765c1", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "AMT 2018 1016", | |
| "func": "if (global.get(\"homeassistant.homeAssistant.isConnected\") == true) {\n\nvar zone_ = Buffer.alloc(65);\nvar violated_ = Buffer.alloc(65);\nvar anulated_ = Buffer.alloc(65);\nvar lowbattery_ = Buffer.alloc(65);\nvar n_zone;\nvar i;\nvar j;\nfor (i = 0; i < 64 / 8; i++) {\n for (j = 0; j < 8; j++) {\n n_zone = ((i * 8) + 1 + j);\n if (n_zone < 49) {\n zone_[n_zone] = ((msg.payload[i + 1 + 1] >> j) & 1);\n violated_[n_zone] = (msg.payload[i + 1 + 7] >> j) & 1;\n anulated_[n_zone] = (msg.payload[i + 1 + 13] >> j) & 1;\n } else {\n zone_[n_zone] = 0;\n violated_[n_zone] = 0;\n anulated_[n_zone] = 0;\n }\n if (n_zone < 41) {\n lowbattery_[n_zone] = (msg.payload[i + 1 + 39] >> j) & 1;\n //lowbattery_[n_zone] = 0;\n } else {\n lowbattery_[n_zone] = 0;\n\n }\n\n\n }\n}\nmsg.zone_ = zone_;\nmsg.violated_ = violated_;\nmsg.anulated_ = anulated_;\nmsg.lowbattery_ = lowbattery_;\n\n\n\n\n\n\nvar tamper_ = Buffer.alloc(19);\nvar shortcircuit_ = Buffer.alloc(19);\nn_zone = 0;\nfor (i = 0; i < 8 / 8; i++) {\n for (j = 0; j < 8; j++) {\n\n n_zone = ((i * 8) + 1 + j);\n tamper_[n_zone] = (msg.payload[i + 1 + 34] >> j) & 1;\n shortcircuit_[n_zone] = (msg.payload[i + 1 + 36] >> j) & 1;\n\n tamper_[n_zone + 10] = (msg.payload[i + 1 + 35] >> j) & 1;\n shortcircuit_[n_zone + 10] = (msg.payload[i + 1 + 37] >> j) & 1;\n\n }\n}\n\nmsg.tamper_ = tamper_;\nmsg.shortcircuit_ = shortcircuit_;\n\nvar fw1 = (msg.payload[20 + 1]) & 0xf0;\nvar fw2 = (msg.payload[20 + 1]) & 0x0f;\nfw1 = (fw1 / 16);\nmsg.fw = (fw1 + \".\" + fw2);\nif (msg.payload[19 + 1] == 0x1E) {\n msg.model = \"AMT 2018 E/EG\"\n} else if (msg.payload[19 + 1] == 0x61) {\n msg.model = \"AMT 1016 NET\"\n} else if (msg.payload[19 + 1] == 0x24) {\n msg.model = \"AMN 24 NET\"\n} else {\n msg.model = \"Desconhecido\"\n}\nmsg.partition_a = Boolean((msg.payload[22 + 1] >> 0) & 1);\nmsg.partition_b = Boolean((msg.payload[22 + 1] >> 1) & 1);\n// A AMT 2018/1016 nao tem as particoes C e D, mas os binary_sensor precisam\n// de um valor: o no de entidade rejeita state undefined com \"Invalid state\"\n// (SensorBaseController). Com true e o device_class \"lock\" do sensor, a\n// expressao $not($boolean(partition_c)) da off, ou seja \"trancada\".\n// A flag abaixo e o que impede o \"Status Switch\" de forcar os switches C e D\n// e o que os tira da lista de \"Particoes Ativadas\".\nmsg.partition_c = true;\nmsg.partition_d = true;\nmsg.particoes_cd_existem = false;\n\nmsg.pc = (msg.payload[23 + 1] >> 0) & 1;\nmsg.za = (msg.payload[23 + 1] >> 2) & 1;\nmsg.activated = Boolean((msg.payload[23 + 1] >> 3) & 1);\nmsg.cd = (msg.payload[23 + 1] >> 6) & 1;\n\nmsg.acpower = Boolean((msg.payload[29 + 1] >> 0) & 1);\nmsg.b_baixa = (msg.payload[29 + 1] >> 1) & 1;\nmsg.b_con = (msg.payload[29 + 1] >> 2) & 1;\nmsg.b_curto = (msg.payload[29 + 1] >> 3) & 1;\nmsg.s_aux = (msg.payload[29 + 1] >> 4) & 1;\n\nvar pt_ = Buffer.alloc(5);\nvar pr_ = Buffer.alloc(5);\nn_zone = 0;\nfor (i = 0; i < 4; i++) {\n for (j = 0; j < 4; j++) {\n\n n_zone = ((i * 8) + 1 + j);\n pt_[n_zone] = (msg.payload[i + 1 + 30] >> j) & 1;\n pr_[n_zone] = (msg.payload[i + 1 + 30] >> j + 4) & 1;\n }\n}\n\nmsg.pt_ = pt_;\nmsg.pr_ = pr_;\n\nvar pep_ = Buffer.alloc(5);\nvar pez_ = Buffer.alloc(9);\nn_zone = 0;\nfor (i = 0; i < 4; i++) {\n for (j = 0; j < 4; j++) {\n\n n_zone = ((i * 8) + 1 + j);\n pep_[n_zone] = 0;\n pez_[n_zone + 4] = 0;\n pez_[n_zone] = 0;\n }\n}\n\nmsg.pep_ = pep_;\nmsg.pez_ = pez_;\n\nmsg.b_con = (msg.payload[29 + 1] >> 2) & 1;\nif (msg.b_con == 0) {\n msg.bateria = (msg.payload[31 + 1]) & 0x0f;\n if (msg.bateria == 0x0f) {\n msg.bateria = 100;\n } else if (msg.bateria == 0x07) {\n msg.bateria = 75;\n } else if (msg.bateria == 0x03) {\n msg.bateria = 50;\n } else if (msg.bateria == 0x01) {\n msg.bateria = 25;\n } else if (msg.bateria == 0x00) {\n msg.bateria = 0;\n }/* else {\n msg.bateria = -10\n}*/\n} else {\n msg.bateria = 0;\n}\n\nvar tc_ = Buffer.alloc(5);\nn_zone = 0;\nfor (i = 0; i < 4; i++) {\n for (j = 0; j < 4; j++) {\n\n n_zone = ((i * 8) + 1 + j);\n tc_[n_zone] = (msg.payload[i + 1 + 32] >> j + 4) & 1;\n }\n}\n\nmsg.tc_ = tc_;\n\nmsg.ss = (msg.payload[38 + 1] >> 3) & 1;\nmsg.pgm_1 = Boolean((msg.payload[38 + 1] >> 6) & 1);\nmsg.pgm_2 = Boolean((msg.payload[38 + 1] >> 5) & 1);\nmsg.pgm_3 = false;\n\nmsg.scf = (msg.payload[33 + 1] >> 0) & 1;\nmsg.sc = (msg.payload[33 + 1] >> 1) & 1;\nmsg.ct = (msg.payload[33 + 1] >> 2) & 1;\nmsg.fce = (msg.payload[33 + 1] >> 3) & 1;\n\n\n var yy;\n var mm;\n var dd;\n var hh;\n var min;\n\n //year\n if (msg.payload[28 + 1] < 10) {\n yy = \"0\" + msg.payload[28 + 1]\n } else {\n yy = msg.payload[28 + 1]\n }\n //month\n if (msg.payload[27 + 1] < 10) {\n mm = \"0\" + msg.payload[27 + 1]\n } else {\n mm = msg.payload[27 + 1]\n }\n //day\n if (msg.payload[26 + 1] < 10) {\n dd = \"0\" + msg.payload[26 + 1]\n } else {\n dd = msg.payload[26 + 1]\n }\n //hour\n if (msg.payload[24 + 1] < 10) {\n hh = \"0\" + msg.payload[24 + 1]\n } else {\n hh = msg.payload[24 + 1]\n }\n //minutes\n if (msg.payload[25 + 1] < 10) {\n min = \"0\" + msg.payload[25 + 1]\n } else {\n min = msg.payload[25 + 1]\n }\n\n var clock = (\n \"20\" + yy + \"-\" +\n mm + \"-\" +\n dd + \"T\" +\n hh + \":\" +\n min + \":00+0000\"\n )\n\n var clock2 = Math.trunc((((Date.now() - 10800000) - (Date.parse(clock) - 0)) / 1000));\n\n if (clock2 > -600 && clock2 < 600) {// se a diferença for mais que 10 minutos\n\n msg.clock = \"Data e hora sincronizada\"\n\n } else {\n\n msg.clock = \"Data e hora desincronizada\"\n\n }\n\ndelete msg.payload\ndelete msg.port\ndelete msg.host\n\nreturn msg;\n}", | |
| "outputs": 1, | |
| "timeout": "", | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 1880, | |
| "y": 860, | |
| "wires": [ | |
| [ | |
| "178c391c799c5bfc", | |
| "b531e8a1e617303d" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "1203132061b6e84b", | |
| "type": "link out", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "Anular Zonas", | |
| "mode": "link", | |
| "links": [ | |
| "fc603a3838ed74ef" | |
| ], | |
| "x": 1445, | |
| "y": 840, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "b531e8a1e617303d", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "Processamento da resposta", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1920, | |
| "y": 760, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "1fcbca4b906e601b", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "Entidades para ===>", | |
| "func": "\n// A clausula msg.ha_connected == true foi removida daqui: era codigo morto.\n// Este no so recebe mensagem da saida 2 do \"Watchdog Indisponivel 10s\", que\n// emite payload false, e do no ha-switch. msg.ha_connected so e definido na\n// mensagem de boot, que vai para a saida 1 do trigger, nunca para a 2.\nif (msg.swicth == false || msg.payload == false) {\n\n\n // flow.set(\"check_status\", 0);\n if (flow.get(\"entidades_indisponiveis\") !== undefined) {\n\n var entidades_indisponiveis = flow.get(\"entidades_indisponiveis\");// pegar o valor do flow_name\n\n for (var i = 0; i < entidades_indisponiveis.length; i++) {\n\n msg.payload = entidades_indisponiveis[i];\n // msg.payload = entidades_indisponiveis[i].entity_id;\n\n node.send([null,msg]);\n }\n }\n} else if (msg.swicth == true || msg.payload == true) {\n\n\n}", | |
| "outputs": 2, | |
| "timeout": "", | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 1700, | |
| "y": 1460, | |
| "wires": [ | |
| [ | |
| "168f22e76d1b0f18" | |
| ], | |
| [ | |
| "13c6e50a9987a1f5" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "13c6e50a9987a1f5", | |
| "type": "api-call-service", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "Indisponível", | |
| "server": "e0000d7f6aec4209", | |
| "version": 7, | |
| "debugenabled": false, | |
| "action": "python_script.set_state", | |
| "floorId": [], | |
| "areaId": [], | |
| "deviceId": [], | |
| "entityId": [], | |
| "labelId": [], | |
| "data": "{\"entity_id\":\"{{payload}}\",\"state\":\"unavailable\"}", | |
| "dataType": "json", | |
| "mergeContext": "", | |
| "mustacheAltTags": false, | |
| "outputProperties": [], | |
| "queue": "none", | |
| "blockInputOverrides": false, | |
| "domain": "python_script", | |
| "service": "set_state", | |
| "x": 1990, | |
| "y": 1460, | |
| "wires": [ | |
| [ | |
| "afda27e5a12ea55a" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "2b16e95d4d6f3a30", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "Teste de payload/sensores", | |
| "links": [], | |
| "x": 1535, | |
| "y": 840, | |
| "wires": [ | |
| [ | |
| "eaa6628f30d02764" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "eea0c8c97cee7296", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "Postar Notificação Persistente ", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "payload", | |
| "targetType": "msg", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 2030, | |
| "y": 1400, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "53b3abe863a41d61", | |
| "type": "ha-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "25262853a065ef2a", | |
| "name": "Central AMT - Data", | |
| "entityConfig": "44a431ffd83c10ec", | |
| "version": 0, | |
| "state": "clock", | |
| "stateType": "msg", | |
| "attributes": [], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 4870, | |
| "y": 3840, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "74b7d24c71ec721b", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7be5a23a76cda6ac", | |
| "name": "Sensores Adicionais", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 2900, | |
| "y": 520, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "0ebb95703bb11dfa", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "10c6f56801c6c3bf", | |
| "name": "Central AMT - Zona 09", | |
| "entityConfig": "44af3a6345990532", | |
| "version": 0, | |
| "state": "zone_[09]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[09]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[09]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[09]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3580, | |
| "y": 100, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "b4d1191e3e1eb440", | |
| "type": "ha-binary-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "10c6f56801c6c3bf", | |
| "name": "Central AMT - Zona 10", | |
| "entityConfig": "97a222a5698f97ef", | |
| "version": 0, | |
| "state": "zone_[10]", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Disparada", | |
| "value": "violated_[10]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Anulada", | |
| "value": "anulated_[10]", | |
| "valueType": "msg" | |
| }, | |
| { | |
| "property": "Bateria Baixa", | |
| "value": "lowbattery_[10]", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 3580, | |
| "y": 160, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "3619fa29e9c002ad", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - Anular Zonas Abertas e Disparadas", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "310a986812b77be3", | |
| "outputProperties": [ | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "zonas_anular2", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Anular Zonas Abertas e Disparadas", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 220, | |
| "y": 3080, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "224280d930f74d63", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "button_press", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 610, | |
| "y": 2400, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "38caaff4.03f6d", | |
| "type": "trigger", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "Watchdog Central Online 5s", | |
| "op1": "true", | |
| "op2": "false", | |
| "op1type": "bool", | |
| "op2type": "bool", | |
| "duration": "5", | |
| "extend": true, | |
| "overrideDelay": false, | |
| "units": "s", | |
| "reset": "", | |
| "bytopic": "all", | |
| "topic": "topic", | |
| "outputs": 2, | |
| "x": 1340, | |
| "y": 1280, | |
| "wires": [ | |
| [ | |
| "168f22e76d1b0f18", | |
| "f1f2aec1b79c3dd9", | |
| "9c0b70bb6a015d1d" | |
| ], | |
| [ | |
| "168f22e76d1b0f18", | |
| "3b283e11156da62f", | |
| "33709becfa69f56a" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "6e1d852b06d00863", | |
| "type": "trigger", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "Watchdog Indisponivel 10s", | |
| "op1": "true", | |
| "op2": "false", | |
| "op1type": "bool", | |
| "op2type": "bool", | |
| "duration": "10", | |
| "extend": true, | |
| "overrideDelay": false, | |
| "units": "s", | |
| "reset": "", | |
| "bytopic": "all", | |
| "topic": "topic", | |
| "outputs": 2, | |
| "x": 1340, | |
| "y": 1340, | |
| "wires": [ | |
| [ | |
| "168f22e76d1b0f18", | |
| "f1f2aec1b79c3dd9" | |
| ], | |
| [ | |
| "1fcbca4b906e601b", | |
| "f25ca11abb4c29b9", | |
| "6a01d9aa44e03f92", | |
| "fe6f199088012ac3" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "33709becfa69f56a", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "Aviso desconexão", | |
| "active": true, | |
| "tosidebar": true, | |
| "console": true, | |
| "tostatus": false, | |
| "complete": "\"Central Desconectada\"", | |
| "targetType": "jsonata", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1340, | |
| "y": 1420, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "6a01d9aa44e03f92", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "Sensores Indisponíveis", | |
| "active": true, | |
| "tosidebar": true, | |
| "console": true, | |
| "tostatus": false, | |
| "complete": "\"Sensores Indisponíveis\"", | |
| "targetType": "jsonata", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1350, | |
| "y": 1480, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "715d943f905eb787", | |
| "type": "trigger", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "Delay Limpa ACK", | |
| "op1": "", | |
| "op2": ";-)", | |
| "op1type": "nul", | |
| "op2type": "str", | |
| "duration": "15", | |
| "extend": true, | |
| "overrideDelay": false, | |
| "units": "s", | |
| "reset": "", | |
| "bytopic": "all", | |
| "topic": "topic", | |
| "outputs": 2, | |
| "x": 1710, | |
| "y": 1000, | |
| "wires": [ | |
| [], | |
| [ | |
| "49407a4f9f3e07d1" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "8b1c68fa4a461b49", | |
| "type": "link out", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "TCP REQUEST", | |
| "mode": "link", | |
| "links": [ | |
| "c4a7ffec90e0d191", | |
| "add4d9edfc81fc68" | |
| ], | |
| "x": 465, | |
| "y": 2240, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "ca4562cd84c0b37d", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "ACK", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "payload", | |
| "targetType": "msg", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1890, | |
| "y": 1060, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "875dc04ddcc61f66", | |
| "type": "change", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "", | |
| "rules": [ | |
| { | |
| "t": "set", | |
| "p": "reset", | |
| "pt": "msg", | |
| "to": "true", | |
| "tot": "bool" | |
| }, | |
| { | |
| "t": "set", | |
| "p": "payload", | |
| "pt": "msg", | |
| "to": "comando_status", | |
| "tot": "flow" | |
| }, | |
| { | |
| "t": "set", | |
| "p": "error.source.count", | |
| "pt": "msg", | |
| "to": "0", | |
| "tot": "num" | |
| }, | |
| { | |
| "t": "set", | |
| "p": "port", | |
| "pt": "msg", | |
| "to": "9015", | |
| "tot": "num" | |
| } | |
| ], | |
| "action": "", | |
| "property": "", | |
| "from": "", | |
| "to": "", | |
| "reg": false, | |
| "x": 340, | |
| "y": 760, | |
| "wires": [ | |
| [ | |
| "1ac7e967545fb3a1", | |
| "1f9e97fafcfef96f" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "25c0ab8360e88406", | |
| "type": "inject", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "STATUS", | |
| "props": [ | |
| { | |
| "p": "payload" | |
| } | |
| ], | |
| "repeat": "0.33", | |
| "crontab": "", | |
| "once": true, | |
| "onceDelay": "5", | |
| "topic": "", | |
| "payload": "comando_status", | |
| "payloadType": "flow", | |
| "x": 160, | |
| "y": 940, | |
| "wires": [ | |
| [ | |
| "1ac7e967545fb3a1", | |
| "5b732101a55cac1b" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "87632a5d957f2628", | |
| "type": "tcp request", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "Conexão TCP", | |
| "server": "", | |
| "port": "", | |
| "out": "time", | |
| "ret": "buffer", | |
| "splitc": "50", | |
| "newline": "", | |
| "trim": false, | |
| "tls": "", | |
| "x": 800, | |
| "y": 940, | |
| "wires": [ | |
| [ | |
| "456f1c9bf83653fa", | |
| "f74b6fb94a72536b", | |
| "efc4d88437383375", | |
| "ada9ff854d07a4fd", | |
| "4b84ac70f23d5642" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "c4a7ffec90e0d191", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "TCP REQUEST", | |
| "links": [ | |
| "8b1c68fa4a461b49", | |
| "9ebfec7e0671c219" | |
| ], | |
| "x": 375, | |
| "y": 980, | |
| "wires": [ | |
| [ | |
| "1ac7e967545fb3a1" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "1ac7e967545fb3a1", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "Simple triggered queue", | |
| "func": "var check_status = flow.get(\"check_status\")\nif (check_status == true) {\n\n msg.host = flow.get(\"host\");\n msg.port = flow.get(\"port\");\n // const haCtx = global.get(\"homeassistant\");\n // const configCtx = haCtx.homeAssistant;\n // const entityState = configCtx.states[\"switch.central_amt_requisicao_de_status\"];\n // msg.entityState = entityState.state;\n\n //if (entityState.state == \"on\") {\n\n context.comando = context.comando || false;\n if (msg.reset == true) {\n context.busy = false;\n }\n if ((msg.payload[0] == 0x0a && msg.payload[9] == 0x5a || msg.payload[9] == 0x5b || msg.payload[9] == 0x5d)\n ||\n (msg.payload[0] == 0x08 && msg.payload[7] == 0x5a || msg.payload[7] == 0x5b || msg.payload[7] == 0x5d)) {\n //recebendo status\n //msg.teste = \"status\"\n context.comando = false;\n\n } else {\n //recebendo comando\n //msg.teste = \"comando\"\n context.comando = true;\n\n }\n //return msg;\n\n // if queue doesn't exist, create it\n context.queue = context.queue || [];\n context.busy = context.busy || false;\n\n // if the msg is a trigger one release next message\n if (msg.hasOwnProperty(\"trigger\")) {\n if (context.queue.length > 0) {\n var m = context.queue.shift();\n var h = context.queue.shift();\n var p = context.queue.shift();\n var b = context.queue.shift();\n var t = context.queue.shift();\n return { payload: m, host: h, port: p, button_press: b, time: t };\n\n }\n else {\n context.busy = false;\n }\n }\n else {\n if (context.busy) {\n // if busy add to queue\n if (context.comando) {\n // if command add to queue\n\n context.queue.push(msg.payload, msg.host, msg.port, msg.button_press, msg.time);\n\n }\n }\n else {\n // otherwise we are empty so just pass through and set busy flag\n if (context.comando == false) {\n // if (entityState.state == \"on\") {// && check_status == 1) {\n\n context.busy = true;\n return msg;\n // }\n } else {\n\n context.busy = true;\n return msg;\n\n }\n }\n\n return null;\n }\n}", | |
| "outputs": 1, | |
| "timeout": "", | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 550, | |
| "y": 940, | |
| "wires": [ | |
| [ | |
| "87632a5d957f2628", | |
| "37c432b523c62c58" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "efc4d88437383375", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "set trigger", | |
| "func": "// handle the return from the exec in here \n// if all is good then set msg.trigger property to exist\nmsg.trigger = 1;\nreturn msg;", | |
| "outputs": 1, | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 540, | |
| "y": 880, | |
| "wires": [ | |
| [ | |
| "1ac7e967545fb3a1", | |
| "f97d88da10440636" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "3b55b90d769457fe", | |
| "type": "catch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "", | |
| "scope": [ | |
| "87632a5d957f2628" | |
| ], | |
| "uncaught": false, | |
| "x": 130, | |
| "y": 760, | |
| "wires": [ | |
| [ | |
| "875dc04ddcc61f66", | |
| "3b8c20b34957a4c0" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "f97d88da10440636", | |
| "type": "trigger", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "Watchdog 2000ms", | |
| "op1": "", | |
| "op2": "reset", | |
| "op1type": "nul", | |
| "op2type": "str", | |
| "duration": "1000", | |
| "extend": true, | |
| "overrideDelay": false, | |
| "units": "ms", | |
| "reset": "", | |
| "bytopic": "all", | |
| "topic": "topic", | |
| "outputs": 2, | |
| "x": 550, | |
| "y": 820, | |
| "wires": [ | |
| [], | |
| [ | |
| "875dc04ddcc61f66" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "fd9691b4a53f6a0d", | |
| "type": "catch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "e2c2e3ba5a8854c8", | |
| "name": "", | |
| "scope": [ | |
| "2fcebe01bab68902" | |
| ], | |
| "uncaught": false, | |
| "x": 110, | |
| "y": 360, | |
| "wires": [ | |
| [ | |
| "7cc8ceb0f593b06c" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "3f534126bf92932f", | |
| "type": "change", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "ac332f4b7055d075", | |
| "name": "SENHAS e IP da central!!!!", | |
| "rules": [ | |
| { | |
| "t": "set", | |
| "p": "senha", | |
| "pt": "msg", | |
| "to": "amt.senha", | |
| "tot": "global" | |
| }, | |
| { | |
| "t": "set", | |
| "p": "senha_a", | |
| "pt": "msg", | |
| "to": "amt.senha_a", | |
| "tot": "global" | |
| }, | |
| { | |
| "t": "set", | |
| "p": "senha_b", | |
| "pt": "msg", | |
| "to": "amt.senha_b", | |
| "tot": "global" | |
| }, | |
| { | |
| "t": "set", | |
| "p": "senha_c", | |
| "pt": "msg", | |
| "to": "amt.senha_c", | |
| "tot": "global" | |
| }, | |
| { | |
| "t": "set", | |
| "p": "senha_d", | |
| "pt": "msg", | |
| "to": "amt.senha_d", | |
| "tot": "global" | |
| }, | |
| { | |
| "t": "set", | |
| "p": "host", | |
| "pt": "msg", | |
| "to": "amt.host", | |
| "tot": "global" | |
| }, | |
| { | |
| "t": "set", | |
| "p": "port", | |
| "pt": "msg", | |
| "to": "9009", | |
| "tot": "num" | |
| }, | |
| { | |
| "t": "set", | |
| "p": "check_status", | |
| "pt": "flow", | |
| "to": "false", | |
| "tot": "bool" | |
| }, | |
| { | |
| "t": "set", | |
| "p": "time", | |
| "pt": "msg", | |
| "to": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "tot": "jsonata" | |
| } | |
| ], | |
| "action": "", | |
| "property": "", | |
| "from": "", | |
| "to": "", | |
| "reg": false, | |
| "x": 220, | |
| "y": 140, | |
| "wires": [ | |
| [ | |
| "01c35bdd6cf90fc3" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "7b9e2a7d0d3953d4", | |
| "type": "delay", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "e2c2e3ba5a8854c8", | |
| "name": "", | |
| "pauseType": "delay", | |
| "timeout": "30", | |
| "timeoutUnits": "seconds", | |
| "rate": "1", | |
| "nbRateUnits": "1", | |
| "rateUnits": "second", | |
| "randomFirst": "1", | |
| "randomLast": "5", | |
| "randomUnits": "seconds", | |
| "drop": false, | |
| "allowrate": false, | |
| "outputs": 1, | |
| "x": 120, | |
| "y": 240, | |
| "wires": [ | |
| [ | |
| "3f534126bf92932f" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "8ab6ac32914dc2c2", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "e2c2e3ba5a8854c8", | |
| "name": "function 44", | |
| "func": "console.log(msg.time + \"[AMT] Sem conexão com a central. Nova tentativa em 30 segundos.\");\n\nreturn msg;", | |
| "outputs": 1, | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 130, | |
| "y": 280, | |
| "wires": [ | |
| [ | |
| "7b9e2a7d0d3953d4" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "7cc8ceb0f593b06c", | |
| "type": "change", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "e2c2e3ba5a8854c8", | |
| "name": "", | |
| "rules": [ | |
| { | |
| "t": "set", | |
| "p": "time", | |
| "pt": "msg", | |
| "to": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "tot": "jsonata" | |
| } | |
| ], | |
| "action": "", | |
| "property": "", | |
| "from": "", | |
| "to": "", | |
| "reg": false, | |
| "x": 130, | |
| "y": 320, | |
| "wires": [ | |
| [ | |
| "8ab6ac32914dc2c2" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "5b732101a55cac1b", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "Status", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 150, | |
| "y": 1000, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "3b8c20b34957a4c0", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "Catch TCP Status", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 190, | |
| "y": 840, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "ada9ff854d07a4fd", | |
| "type": "trigger", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "Watchdog 2000ms", | |
| "op1": "", | |
| "op2": "reset", | |
| "op1type": "nul", | |
| "op2type": "str", | |
| "duration": "1000", | |
| "extend": true, | |
| "overrideDelay": false, | |
| "units": "ms", | |
| "reset": "", | |
| "bytopic": "all", | |
| "topic": "topic", | |
| "outputs": 2, | |
| "x": 290, | |
| "y": 1080, | |
| "wires": [ | |
| [], | |
| [ | |
| "6d843104f7dfe29d" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "6d843104f7dfe29d", | |
| "type": "change", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "", | |
| "rules": [ | |
| { | |
| "t": "set", | |
| "p": "host", | |
| "pt": "msg", | |
| "to": "host", | |
| "tot": "flow" | |
| }, | |
| { | |
| "t": "set", | |
| "p": "port", | |
| "pt": "msg", | |
| "to": "9015", | |
| "tot": "num" | |
| } | |
| ], | |
| "action": "", | |
| "property": "", | |
| "from": "", | |
| "to": "", | |
| "reg": false, | |
| "x": 500, | |
| "y": 1080, | |
| "wires": [ | |
| [ | |
| "46cb510a66dcc4ee", | |
| "ada9ff854d07a4fd", | |
| "b15125481689e3ed" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "46cb510a66dcc4ee", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "debug 97", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 720, | |
| "y": 1140, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "add4d9edfc81fc68", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "TCP REQUEST", | |
| "links": [ | |
| "8b1c68fa4a461b49", | |
| "9ebfec7e0671c219" | |
| ], | |
| "x": 545, | |
| "y": 2240, | |
| "wires": [ | |
| [ | |
| "224280d930f74d63" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "588b1a01970f40b6", | |
| "type": "inject", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Start", | |
| "props": [], | |
| "repeat": "", | |
| "crontab": "", | |
| "once": true, | |
| "onceDelay": "3", | |
| "topic": "", | |
| "x": 110, | |
| "y": 500, | |
| "wires": [ | |
| [ | |
| "157ab0e2e60115ed" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "157ab0e2e60115ed", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "HA Conectado?", | |
| "func": "if (global.get(\"homeassistant.homeAssistant.isConnected\") == true) {\n msg.ha_connected = true;\n flow.set(\"ha_connected\", true)\n return [msg, null];\n} else {\n\n flow.set(\"ha_connected\", false)\n msg.ha_connected = false;\n return [null, msg];\n\n}\n\n", | |
| "outputs": 2, | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 280, | |
| "y": 500, | |
| "wires": [ | |
| [ | |
| "e1635f8019d7fa23", | |
| "c165fa68695ab2ed" | |
| ], | |
| [ | |
| "fc75a3513cdcb737" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "fc75a3513cdcb737", | |
| "type": "delay", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Aguardando Conexão com HA", | |
| "pauseType": "delay", | |
| "timeout": "500", | |
| "timeoutUnits": "milliseconds", | |
| "rate": "1", | |
| "nbRateUnits": "1", | |
| "rateUnits": "second", | |
| "randomFirst": "1", | |
| "randomLast": "5", | |
| "randomUnits": "seconds", | |
| "drop": false, | |
| "allowrate": false, | |
| "outputs": 1, | |
| "x": 190, | |
| "y": 560, | |
| "wires": [ | |
| [ | |
| "157ab0e2e60115ed" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "e1635f8019d7fa23", | |
| "type": "delay", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Conectado ao HA", | |
| "pauseType": "delay", | |
| "timeout": "4", | |
| "timeoutUnits": "seconds", | |
| "rate": "1", | |
| "nbRateUnits": "1", | |
| "rateUnits": "second", | |
| "randomFirst": "1", | |
| "randomLast": "5", | |
| "randomUnits": "seconds", | |
| "drop": false, | |
| "allowrate": false, | |
| "outputs": 1, | |
| "x": 150, | |
| "y": 440, | |
| "wires": [ | |
| [ | |
| "3ba1669d42e7425f", | |
| "3f534126bf92932f", | |
| "044eff5ac5aa63dd" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "044eff5ac5aa63dd", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Conectado ao HA", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 410, | |
| "y": 400, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "941ea84b6b55629c", | |
| "type": "ha-sensor", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "7be5a23a76cda6ac", | |
| "name": "Central AMT - Partições Ativadas", | |
| "entityConfig": "63a7cf1702d5225d", | |
| "version": 0, | |
| "state": "particoes_ativadas", | |
| "stateType": "msg", | |
| "attributes": [ | |
| { | |
| "property": "Partições Ativadas", | |
| "value": "particoes_ativadas_count", | |
| "valueType": "msg" | |
| } | |
| ], | |
| "inputOverride": "allow", | |
| "outputProperties": [], | |
| "x": 2890, | |
| "y": 460, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "fc603a3838ed74ef", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Anular Zonas", | |
| "links": [ | |
| "1203132061b6e84b" | |
| ], | |
| "x": 645, | |
| "y": 540, | |
| "wires": [ | |
| [ | |
| "a9d130c4f6ea6abb" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "bc9ce500498b50bc", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Comandos", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1472.500015258789, | |
| "y": 536.249997138977, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "ae18e0c8bf18004d", | |
| "type": "tcp request", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Conexção TCP", | |
| "server": "", | |
| "port": "", | |
| "out": "time", | |
| "ret": "buffer", | |
| "splitc": "50", | |
| "newline": "", | |
| "trim": false, | |
| "tls": "", | |
| "x": 1302.500015258789, | |
| "y": 296.24999713897705, | |
| "wires": [ | |
| [ | |
| "02acc75d59c51243", | |
| "51b3766fddd77bd3", | |
| "ab751210f68b96cb" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "ab751210f68b96cb", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Verificação de Comando Status", | |
| "func": "if (msg.payload[2] == 0xE5) {\n\n console.log(msg.time + \"[AMT] Comando \" + msg.comando + \": Descontinuado.\");\n\n} else if (msg.payload[0] > 0x04) {\n\n console.log(msg.time + \"[AMT] Comando \" + msg.comando + \": Status OK\");\n\n if (msg.payload[0] == 0x37) {\n if (msg.payload[25 + 1] == 0x41) {\n msg.model = \"AMT 4010 SMART\"\n } else {\n msg.model = \"Desconhecido\"\n }\n\n } else if (msg.payload[0] == 0x2c) {\n if (msg.payload[19 + 1] == 0x1E) {\n msg.model = \"AMT 2018 E/EG\"\n } else if (msg.payload[19 + 1] == 0x34) {\n msg.model = \"AMT 2018 E SMART\"\n } else if (msg.payload[19 + 1] == 0x61) {\n msg.model = \"AMT 1016 NET\"\n } else if (msg.payload[19 + 1] == 0x24) {\n msg.model = \"AMN 24 NET\"\n } else {\n msg.model = \"Desconhecido\"\n }\n\n } else if (msg.payload[0] == 0x5e) {\n if (msg.payload[19 + 1] == 0x34) {\n msg.model = \"AMT 2018 E SMART (beta)\"\n } else {\n msg.model = \"Desconhecido\"\n }\n } else {\n msg.model = \"Desconhecido\"\n }\n\n msg.payload = msg.temp_status;\n\n flow.set(\"comando_status\", msg.temp_status);\n\n return msg;\n\n} else if (msg.payload[2] == 0xE1) {\n\n console.log(msg.time + \"[AMT] Senha incorreta.\" + '\\r\\n' + \"Verique a senha inserida ou se o tamanho da senha inserida\" + '\\r\\n' + \"é igual ao tamanho de senha configurado na central\");\n\n} else if (msg.payload[2] == 0xE2) {\n\n if (msg.temp_status[0] == 0x0a) {\n\n console.log(msg.time + \"[AMT] Comando \" + msg.comando + \": Inválido.\");\n\n } else {\n\n console.log(msg.time + \"[AMT] Comando \" + msg.comando + \": Senha incorreta.\" + '\\r\\n' + \"Verique a senha inserida ou se o tamanho da senha inserida\" + '\\r\\n' + \"é igual ao tamanho de senha configurado na central\");\n\n }\n} else {\n\n var buffer = Buffer.from(msg.payload);\n for (var i = 0; i < buffer.length; i++) {\n if (i == 0) {\n msg.teste = buffer[i].toString(16);\n } else {\n msg.teste = msg.teste + \" \" + buffer[i].toString(16);\n }\n }\n msg.payload = msg.teste;//.toString('16');\n\n console.log(msg.time + \"[AMT] Erro: \\\"\" + msg.payload + \"\\\" Desconhecido\");\n\n}\n\n", | |
| "outputs": 1, | |
| "timeout": "", | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 772.5000152587891, | |
| "y": 416.24999713897705, | |
| "wires": [ | |
| [ | |
| "bc9ce500498b50bc", | |
| "dc613de564587442", | |
| "31e29c67c25f70aa" | |
| ] | |
| ], | |
| "outputLabels": [ | |
| "Verificação de Comando Status" | |
| ] | |
| }, | |
| { | |
| "id": "01c35bdd6cf90fc3", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Comandos", | |
| "func": "//flow.set(\"hold_status\", undefined);\n//flow.set(\"stop\", undefined);\n//flow.set(\"senha\", msg.senha);\n\nlet myFunc = num => Number(num);\n\nmsg.senha = Array.from(String(msg.senha), myFunc);\nmsg.senha_a = Array.from(String(msg.senha_a), myFunc);\nmsg.senha_b = Array.from(String(msg.senha_b), myFunc);\nmsg.senha_c = Array.from(String(msg.senha_c), myFunc);\nmsg.senha_d = Array.from(String(msg.senha_d), myFunc);\n\nvar check_sum = 0;\nvar i;\nfor (i = 0; i < msg.senha.length; i++) { msg.senha[i] = msg.senha[i] + 0x30; }\nfor (i = 0; i < msg.senha_a.length; i++) { msg.senha_a[i] = msg.senha_a[i] + 0x30; }\nfor (i = 0; i < msg.senha_b.length; i++) { msg.senha_b[i] = msg.senha_b[i] + 0x30; }\nfor (i = 0; i < msg.senha_c.length; i++) { msg.senha_c[i] = msg.senha_c[i] + 0x30; }\nfor (i = 0; i < msg.senha_d.length; i++) { msg.senha_d[i] = msg.senha_d[i] + 0x30; }\n\nmsg.senha = Buffer.from(msg.senha);\nmsg.senha_a = Buffer.from(msg.senha_a);\nmsg.senha_b = Buffer.from(msg.senha_b);\nmsg.senha_c = Buffer.from(msg.senha_c);\nmsg.senha_d = Buffer.from(msg.senha_d);\n\nflow.set(\"senha\", msg.senha);\n\nvar start = Buffer.from([0x00, 0xe9, 0x21]);\nvar end = Buffer.from([0x21, 0xff]);\nvar comando_stay = Buffer.from([0x41, 0x50]);\nvar comando_stay_a = Buffer.from([0x41, 0x41, 0x50]);\nvar comando_stay_b = Buffer.from([0x41, 0x42, 0x50]);\nvar comando_stay_c = Buffer.from([0x41, 0x43, 0x50]);\nvar comando_stay_d = Buffer.from([0x41, 0x44, 0x50]);\nvar comando_ativar = Buffer.from([0x41]);\nvar comando_desativar = Buffer.from([0x44]);\nvar comando_ativar_a = Buffer.from([0x41, 0x41]);\nvar comando_desativar_a = Buffer.from([0x44, 0x41]);\nvar comando_ativar_b = Buffer.from([0x41, 0x42]);\nvar comando_desativar_b = Buffer.from([0x44, 0x42]);\nvar comando_ativar_c = Buffer.from([0x41, 0x43]);\nvar comando_desativar_c = Buffer.from([0x44, 0x43]);\nvar comando_ativar_d = Buffer.from([0x41, 0x44]);\nvar comando_desativar_d = Buffer.from([0x44, 0x44]);\nvar comando_pgm_1 = Buffer.from([0x50, 0x4c, 0x31]);\nvar comando_pgm_2 = Buffer.from([0x50, 0x4c, 0x32]);\nvar comando_pgm_3 = Buffer.from([0x50, 0x4c, 0x33]);\nvar comando_liga_sirene = Buffer.from([0x43]);\nvar comando_desliga_sirene = Buffer.from([0x63]);\nvar comando_status_0 = Buffer.from([0x5a]);\nvar comando_status_1 = Buffer.from([0x5b]);\nvar comando_status_2 = Buffer.from([0x5d]);\nvar comando_pgm_1_des = Buffer.from([0x50, 0x44, 0x31]);\nvar comando_pgm_2_des = Buffer.from([0x50, 0x44, 0x32]);\nvar comando_pgm_3_des = Buffer.from([0x50, 0x44, 0x33]);\n\n\n\ni = 0;\n\nconst comandos_nomes = [\"comando_stay_a\",\n \"comando_ativar_a\",\n \"comando_desativar_a\",\n \"comando_stay_b\",\n \"comando_ativar_b\",\n \"comando_desativar_b\",\n \"comando_stay_c\",\n \"comando_ativar_c\",\n \"comando_desativar_c\",\n \"comando_stay_d\",\n \"comando_ativar_d\",\n \"comando_desativar_d\",\n \"comando_stay\",\n \"comando_ativar\",\n \"comando_desativar\",\n \"comando_pgm_1\",\n \"comando_pgm_2\",\n \"comando_pgm_3\",\n \"comando_liga_sirene\",\n \"comando_desliga_sirene\",\n \"comando_status_0\",\n \"comando_status_1\",\n \"comando_status_2\",\n \"comando_pgm_1_des\",\n \"comando_pgm_2_des\",\n \"comando_pgm_3_des\"];\n\nvar comandos = [comando_stay_a,\n comando_ativar_a,\n comando_desativar_a,\n comando_stay_b,\n comando_ativar_b,\n comando_desativar_b,\n comando_stay_c,\n comando_ativar_c,\n comando_desativar_c,\n comando_stay_d,\n comando_ativar_d,\n comando_desativar_d,\n comando_stay,\n comando_ativar,\n comando_desativar,\n comando_pgm_1,\n comando_pgm_2,\n comando_pgm_3,\n comando_liga_sirene,\n comando_desliga_sirene,\n comando_status_0,\n comando_status_1,\n comando_status_2,\n comando_pgm_1_des,\n comando_pgm_2_des,\n comando_pgm_3_des];\n\n\nvar full_comandos = [];\nfor (var j = 0; j < comandos.length; j++) {\n if (j <= 2) {\n full_comandos[j] = [start, msg.senha_a, comandos[j], end]\n } else if ((j >= 3) && (j <= 5)) {\n full_comandos[j] = [start, msg.senha_b, comandos[j], end]\n } else if ((j >= 6) && (j <= 8)) {\n full_comandos[j] = [start, msg.senha_c, comandos[j], end]\n } else if ((j >= 9) && (j <= 11)) {\n full_comandos[j] = [start, msg.senha_d, comandos[j], end]\n } else \t/*( j >= 12)*/ {\n full_comandos[j] = [start, msg.senha, comandos[j], end]\n }\n};\n\nvar buffer_full_comandos = [];\nfor (var g = 0; g < full_comandos.length; g++) {\n\n buffer_full_comandos[g] = Buffer.concat(full_comandos[g]);\n\n};\n\n\nvar nb_buffer_full_comandos = [];\nfor (var z = 0; z < buffer_full_comandos.length; z++) {\n\n nb_buffer_full_comandos[z] = (buffer_full_comandos[z].length - 2);\n buffer_full_comandos[z][0] = nb_buffer_full_comandos[z];\n};\nnb_buffer_full_comandos = 0;\n//msg.nbtemp = nb_buffer_full_comandos;//apagar\n\nvar sum_buffer_full_comandos = [];\nfor (var r = 0; r < buffer_full_comandos.length; r++) {\n\n for (var s = 0; s < buffer_full_comandos[r].length; s++) { sum_buffer_full_comandos[r] = sum_buffer_full_comandos[r] ^ buffer_full_comandos[r][s] }\n\n buffer_full_comandos[r][buffer_full_comandos[r].length - 1] = sum_buffer_full_comandos[r];\n};\n\nfor (var d = 0; d < buffer_full_comandos.length; d++) {\n\n flow.set(comandos_nomes[d], buffer_full_comandos[d]);\n}\n/*\nfor (var d = 0; d < buffer_full_comandos.length; d++) {\n\n flow.set(\"comando_final\" + [d], buffer_full_comandos[d]);\n\n}\n*/\nflow.set(\"host\", msg.host);\nflow.set(\"port\", msg.port);\n\nmsg.payload = buffer_full_comandos[20];\n//msg.temp_status = buffer_full_comandos[20];\n\n//msg.teste123 = comandos_nomes;\n//console.log(msg.time + \"[AMT] Testando Comando Status...\");\n/*\nfor (i = 20; i < 23; i++) {\n\n msg.temp_status[i] = buffer_full_comandos[i];\n \n //node.send(msg);\n\n}*/\nreturn msg;\n\n\n", | |
| "outputs": 1, | |
| "timeout": "", | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 682.5000152587891, | |
| "y": 156.24999713897705, | |
| "wires": [ | |
| [ | |
| "df057f4cdab98c24", | |
| "b4a83a89bfbd2a0d" | |
| ] | |
| ], | |
| "outputLabels": [ | |
| "Comandos" | |
| ] | |
| }, | |
| { | |
| "id": "a9d130c4f6ea6abb", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Comandos Anular", | |
| "func": "if (Buffer.isBuffer(msg.payload)) {\nmsg.senha = flow.get(\"senha\");\nvar i;\n// Hex para comandos anular zonas abertas\nif (msg.payload[0] == 0x2C) {\n var anular_abertas = Buffer.alloc(6);\n for (i = 0; i < anular_abertas.length; i++) {\n anular_abertas[i] = msg.payload[1 + 1 + i];\n };\n} else if (msg.payload[0] == 0x37) {\n var anular_abertas = Buffer.alloc(8);\n for (i = 0; i < anular_abertas.length; i++) {\n anular_abertas[i] = msg.payload[1 + 1 + i];\n };\n}\n\n// Hex para comandos anular zonas disparadas\nif (msg.payload[0] == 0x2C) {\n var anular_disparadas = Buffer.alloc(6);\n for (i = 0; i < anular_disparadas.length; i++) {\n anular_disparadas[i] = msg.payload[1 + 7 + i];\n };\n} else if (msg.payload[0] == 0x37) {\n var anular_disparadas = Buffer.alloc(8);\n for (i = 0; i < anular_disparadas.length; i++) {\n anular_disparadas[i] = msg.payload[1 + 9 + i];\n };\n}\n\n// Hex para comandos anular zonas abertas e disparadas\nif (msg.payload[0] == 0x2C) {\n var anular_ab_disp = Buffer.alloc(8);\n for (i = 0; i < anular_ab_disp.length; i++) {\n anular_ab_disp[i] = msg.payload[1 + 1 + i] | msg.payload[1 + 7 + i];\n };\n\n} else if (msg.payload[0] == 0x37) {\n var anular_ab_disp = Buffer.alloc(8);\n for (i = 0; i < anular_ab_disp.length; i++) {\n anular_ab_disp[i] = msg.payload[1 + 1 + i] | msg.payload[1 + 9 + i];\n };\n}\nflow.set(\"senha\", msg.senha);\n\nvar check_sum = 0;\nvar start = Buffer.from([0x00, 0xe9, 0x21]);\nvar end = Buffer.from([0x21, 0xff]);\nvar comando_anular = Buffer.from([0x42]);\n\ni = 0;\n// Quantidade de comandos a serem gerados\nvar zonas_anular = [anular_abertas,\n anular_disparadas,\n anular_ab_disp\n];\n\n// Juntar os comandos\nvar full_comandos = [];\nfor (var j = 0; j < zonas_anular.length; j++) {\n full_comandos[j] = [start, msg.senha, comando_anular, zonas_anular[j], end]\n};\n\n// Gerando Buffer dos comandos gerados\nvar buffer_full_comandos = [];\nfor (var g = 0; g < full_comandos.length; g++) {\n buffer_full_comandos[g] = Buffer.concat(full_comandos[g]);\n};\n\n// Calcular o tamanho do comando\nvar nb_buffer_full_comandos = []\nfor (var z = 0; z < zonas_anular.length; z++) {\n nb_buffer_full_comandos[z] = Buffer.from([0x00]);\n};\n\nfor (var z = 0; z < buffer_full_comandos.length; z++) {\n nb_buffer_full_comandos[z] = (buffer_full_comandos[z].length - 2);\n buffer_full_comandos[z][0] = nb_buffer_full_comandos[z];\n};\n\n// Gerar Checksum\nvar sum_buffer_full_comandos = [];\nfor (var r = 0; r < buffer_full_comandos.length; r++) {\n for (var s = 0; s < buffer_full_comandos[r].length; s++) { sum_buffer_full_comandos[r] = sum_buffer_full_comandos[r] ^ buffer_full_comandos[r][s] }\n buffer_full_comandos[r][buffer_full_comandos[r].length - 1] = sum_buffer_full_comandos[r];\n};\n\nfor (var d = 0; d < buffer_full_comandos.length; d++) {\n flow.set(\"zonas_anular\" + [d], buffer_full_comandos[d]);\n}\nmsg.payload = buffer_full_comandos;\n\nreturn msg;\n}", | |
| "outputs": 1, | |
| "timeout": "", | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 790, | |
| "y": 540, | |
| "wires": [ | |
| [ | |
| "369b6241672f1286" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "369b6241672f1286", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Comandos Anular", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1030, | |
| "y": 540, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "dc613de564587442", | |
| "type": "file", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Salvar comandos em arquivo", | |
| "filename": "/config/node-red/amt_comandos.txt", | |
| "filenameType": "str", | |
| "appendNewline": false, | |
| "createDir": true, | |
| "overwriteFile": "true", | |
| "encoding": "none", | |
| "x": 1042.500015258789, | |
| "y": 476.24999713897705, | |
| "wires": [ | |
| [ | |
| "10c0a4d3e49da98d" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "10c0a4d3e49da98d", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Salvar comandos em arquivo", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1322.500015258789, | |
| "y": 476.24999713897705, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "b4a83a89bfbd2a0d", | |
| "type": "exec", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "command": "ls /config/node-red/amt_comandos.txt", | |
| "addpay": "", | |
| "append": "", | |
| "useSpawn": "false", | |
| "timer": "", | |
| "winHide": false, | |
| "oldrc": false, | |
| "name": "Verficar arquivo comandos", | |
| "x": 912.5000152587891, | |
| "y": 156.24999713897705, | |
| "wires": [ | |
| [], | |
| [], | |
| [ | |
| "d0eb147dd97eb756", | |
| "d958c2df48a4b96d" | |
| ] | |
| ], | |
| "outputLabels": [ | |
| "", | |
| "", | |
| "Verficar arquivo comandos" | |
| ] | |
| }, | |
| { | |
| "id": "d0eb147dd97eb756", | |
| "type": "switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "", | |
| "property": "payload.code", | |
| "propertyType": "msg", | |
| "rules": [ | |
| { | |
| "t": "eq", | |
| "v": "0", | |
| "vt": "num" | |
| }, | |
| { | |
| "t": "eq", | |
| "v": "1", | |
| "vt": "num" | |
| } | |
| ], | |
| "checkall": "true", | |
| "repair": false, | |
| "outputs": 2, | |
| "x": 662.5000152587891, | |
| "y": 256.24999713897705, | |
| "wires": [ | |
| [ | |
| "99058222351a9158" | |
| ], | |
| [ | |
| "cccfd6ab92d00d2a" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "f8c012705a007d92", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Restaurar comando", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1490, | |
| "y": 240, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "99058222351a9158", | |
| "type": "file in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Ler arquivo comandos", | |
| "filename": "/config/node-red/amt_comandos.txt", | |
| "filenameType": "str", | |
| "format": "", | |
| "chunk": false, | |
| "sendError": false, | |
| "encoding": "none", | |
| "allProps": false, | |
| "x": 852.5000152587891, | |
| "y": 236.24999713897705, | |
| "wires": [ | |
| [ | |
| "02bb0edb99dc210c" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "02bb0edb99dc210c", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Restaurar comando", | |
| "func": "console.log(msg.time + \"[AMT] Recuperando Comando Status...\");\nconsole.log(msg.time + \"[AMT] Caso tenha alterado a senha, apague o arquivo \" + \"\\\\\" + \"config\" + \"\\\\\" + \"node-red\" + \"\\\\\" + \"amt_comandos.txt e reinicie o flow\");\nflow.set(\"comando_status\", Buffer.from(msg.payload));\n\n// O entity_id ganha o prefixo do nome do dispositivo no Home Assistant\n// (ex. switch.amt_central_amt_requisicao_de_status), entao procuramos pelo\n// final do id em vez de usar um id fixo, que quebra a cada renomeacao.\nvar estados = global.get(\"homeassistant.homeAssistant.states\") || {};\nvar id_switch = Object.keys(estados).find(function (k) {\n return k.startsWith(\"switch.\") && k.endsWith(\"central_amt_requisicao_de_status\");\n});\n\nif (id_switch === undefined) {\n node.warn(\"[AMT] switch de requisicao de status nao encontrado; assumindo ligado\");\n}\n\nmsg.requisicao = id_switch === undefined ? \"on\" : estados[id_switch].state;\n\nif (msg.requisicao == \"on\") {\nflow.set(\"check_status\", true);\nmsg.teste = true;\n} else {\nflow.set(\"check_status\", false);\nmsg.teste = false;\n\n}\n\n// if (global.get('homeassistant.homeAssistant.states[\"switch.central_amt_requisicao_de_status\"].state') == 'on'){\n// flow.set(\"check_status\", true);\n// msg.teste = true;\n// } else {\n// flow.set(\"check_status\", false);\n// msg.teste = false;\n\n// }\n\nreturn msg;\n\n\n", | |
| "outputs": 1, | |
| "timeout": "", | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 1290, | |
| "y": 240, | |
| "wires": [ | |
| [ | |
| "f8c012705a007d92", | |
| "276e507a7a5e2633", | |
| "872a887fa928452a" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "cccfd6ab92d00d2a", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "function 45", | |
| "func": "if (msg.payload != \"\" ){\n // flow.set(\"check_status\",0);\n console.log(msg.time + \"[AMT] Testando Comando Status. Caso nenhum comando funcione, verifique senha, IP e compatibilidade da central.\");\n\n for (var i = 0; i < 3; i++) {\n\n msg.payload = flow.get(\"comando_status_\" + [i]);\n msg.temp_status = flow.get(\"comando_status_\" + [i]);\n msg.comando = i + 1;\n node.send(msg);\n \n }\n\n}\n\n", | |
| "outputs": 1, | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 832.5000152587891, | |
| "y": 296.24999713897705, | |
| "wires": [ | |
| [ | |
| "b4b99c4104ee2527" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "df057f4cdab98c24", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Comandos", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 862.5000152587891, | |
| "y": 96.24999713897705, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "d958c2df48a4b96d", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Verficar arquivo comandos", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1342.500015258789, | |
| "y": 156.24999713897705, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "02acc75d59c51243", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "debug 3", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1482.500015258789, | |
| "y": 296.24999713897705, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "b4b99c4104ee2527", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Simple triggered queue (status)", | |
| "func": "// if queue doesn't exist, create it\ncontext.queue = context.queue || [];\ncontext.busy = context.busy || false;\n\n// if the msg is a trigger one release next message\nif (msg.hasOwnProperty(\"trigger\")) {\n if (context.queue.length > 0) {\n var m = context.queue.shift();\n var h = context.queue.shift();\n var p = context.queue.shift();\n var t = context.queue.shift();\n var temp = context.queue.shift();\n var c = context.queue.shift();\n return { payload: m, host: h, port: p, time: t, temp_status: temp, comando: c };\n\n // return {payload:m};\n }\n else {\n context.busy = false;\n }\n}\nelse {\n if (context.busy) {\n // if busy add to queue\n // context.queue.push(msg.payload, msg.host, msg.port, msg.time);\n context.queue.push(msg.payload, msg.host, msg.port, msg.time, msg.temp_status, msg.comando);\n\n }\n else {\n // otherwise we are empty so just pass through and set busy flag\n context.busy = true;\n return msg;\n }\n}\n\nreturn null;\n", | |
| "outputs": 1, | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 1072.500015258789, | |
| "y": 296.24999713897705, | |
| "wires": [ | |
| [ | |
| "ae18e0c8bf18004d" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "51b3766fddd77bd3", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "set trigger", | |
| "func": "// handle the return from the exec in here \n// if all is good then set msg.trigger property to exist\nmsg.trigger = 1;\nreturn msg;", | |
| "outputs": 1, | |
| "noerr": 0, | |
| "x": 1062.500015258789, | |
| "y": 356.24999713897705, | |
| "wires": [ | |
| [ | |
| "b4b99c4104ee2527" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "31e29c67c25f70aa", | |
| "type": "delay", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "Primeira execusão", | |
| "pauseType": "delay", | |
| "timeout": "5", | |
| "timeoutUnits": "seconds", | |
| "rate": "1", | |
| "nbRateUnits": "1", | |
| "rateUnits": "second", | |
| "randomFirst": "1", | |
| "randomLast": "5", | |
| "randomUnits": "seconds", | |
| "drop": false, | |
| "allowrate": false, | |
| "outputs": 1, | |
| "x": 1022.5000152587891, | |
| "y": 416.24999713897705, | |
| "wires": [ | |
| [ | |
| "ddce9da6dae5a88f" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "ddce9da6dae5a88f", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "c0497c8865d4c35b", | |
| "name": "", | |
| "func": "flow.set(\"check_status\", true);\nconsole.log(msg.time + \"[AMT] Modelo da Central: \" + msg.model);\nreturn msg;", | |
| "outputs": 1, | |
| "timeout": "", | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 1192.500015258789, | |
| "y": 416.24999713897705, | |
| "wires": [ | |
| [ | |
| "276e507a7a5e2633", | |
| "872a887fa928452a" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "6182ef08558c8b07", | |
| "type": "switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "", | |
| "property": "check_status", | |
| "propertyType": "flow", | |
| "rules": [ | |
| { | |
| "t": "true" | |
| } | |
| ], | |
| "checkall": "true", | |
| "repair": false, | |
| "outputs": 1, | |
| "x": 1470, | |
| "y": 1220, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "c165fa68695ab2ed", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "debug 107", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 490, | |
| "y": 500, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "df591e21a6d94425", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "71ecb19db8dab14c", | |
| "name": "Status Switch", | |
| "func": "// Array para armazenar os valores a serem enviados\nvar valuesToSend = [];\n\n// Defina as chaves de interesse em um array\nvar keys = [\n 'activated',\n 'partition_a',\n 'partition_b',\n 'partition_c',\n 'partition_d',\n 'pgm_1',\n 'pgm_2',\n 'pgm_3',\n 'ss'];\n\n// Verifique cada chave e, se estiver definida, adicione o valor ao array valuesToSend\n// Uma posicao por saida, sempre. Antes as chaves ausentes eram puladas e o\n// array encurtava, mandando as mensagens seguintes para o switch errado\n// (ex. pgm_1 caindo na saida da Particao C).\nfor (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var particaoInexistente = msg.particoes_cd_existem === false &&\n (key === \"partition_c\" || key === \"partition_d\");\n if (msg[key] === undefined || msg[key] === null || particaoInexistente) {\n valuesToSend.push(null); // null = nao envia nada nessa saida\n continue;\n }\n msg.enable = msg[key];\n var messageCopy = Object.assign({}, msg); // Copie a mensagem original para evitar efeitos colaterais\n valuesToSend.push(messageCopy);\n}\n\n// Envie o array de mensagens\nnode.send(valuesToSend);\n", | |
| "outputs": 9, | |
| "timeout": "", | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 960, | |
| "y": 2020, | |
| "wires": [ | |
| [ | |
| "513f9c869e0368c1" | |
| ], | |
| [ | |
| "dbc8d7c897c0905a" | |
| ], | |
| [ | |
| "fb61a2856e7d72d6" | |
| ], | |
| [ | |
| "3cb72ac46e4cb85f" | |
| ], | |
| [ | |
| "63ecdfe28465dd9a" | |
| ], | |
| [ | |
| "35c830abea1e209e" | |
| ], | |
| [ | |
| "6911f7070ab24ac0" | |
| ], | |
| [ | |
| "f4e25015f5620f73" | |
| ], | |
| [ | |
| "1075b94b1d7d2312" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "7003721789a1c7a8", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "71ecb19db8dab14c", | |
| "name": "function 51", | |
| "func": "// Mapeamento entre msg.outputType e valores específicos\nvar mapping = {\n \"central\": {\n true: {\n payload: flow.get(\"comando_ativar\"),\n button_press: \"Ativar AMT\"\n },\n false: {\n payload: flow.get(\"comando_desativar\"),\n button_press: \"Desativar AMT\"\n }\n },\n \"part_a\": {\n true: {\n payload: flow.get(\"comando_ativar_a\"),\n button_press: \"Ativar Partição A\"\n },\n false: {\n payload: flow.get(\"comando_desativar_a\"),\n button_press: \"Desativar Partição A\"\n }\n },\n \"part_b\": {\n true: {\n payload: flow.get(\"comando_ativar_b\"),\n button_press: \"Ativar Partição B\"\n },\n false: {\n payload: flow.get(\"comando_desativar_b\"),\n button_press: \"Desativar Partição B\"\n }\n },\n \"part_c\": {\n true: {\n payload: flow.get(\"comando_ativar_c\"),\n button_press: \"Ativar Partição C\"\n },\n false: {\n payload: flow.get(\"comando_desativar_c\"),\n button_press: \"Desativar Partição C\"\n }\n },\n \"part_d\": {\n true: {\n payload: flow.get(\"comando_ativar_d\"),\n button_press: \"Ativar Partição D\"\n },\n false: {\n payload: flow.get(\"comando_desativar_d\"),\n button_press: \"Desativar Partição D\"\n }\n },\n \"pgm_1\": {\n true: {\n payload: flow.get(\"comando_pgm_1\"),\n button_press: \"Ativar PGM 1\"\n },\n false: {\n payload: flow.get(\"comando_pgm_1_des\"),\n button_press: \"Desativar PGM 1\"\n }\n },\n \"pgm_2\": {\n true: {\n payload: flow.get(\"comando_pgm_2\"),\n button_press: \"Ativar PGM 2\"\n },\n false: {\n payload: flow.get(\"comando_pgm_2_des\"),\n button_press: \"Desativar PGM 2\"\n }\n },\n \"pgm_3\": {\n true: {\n payload: flow.get(\"comando_pgm_3\"),\n button_press: \"Ativar PGM 3\"\n },\n false: {\n payload: flow.get(\"comando_pgm_3_des\"),\n button_press: \"Desativar PGM 3\"\n }\n },\n \"sirene\": {\n true: {\n payload: flow.get(\"comando_liga_sirene\"),\n button_press: \"Ligar Sirene\"\n },\n false: {\n payload: flow.get(\"comando_desliga_sirene\"),\n button_press: \"Desligar Sirene\"\n }\n },\n};\n\n// Verifique se msg.outputType está no mapeamento\nif (msg.outputType in mapping) {\n var outputTypeMapping = mapping[msg.outputType];\n var payloadMapping = msg.payload ? outputTypeMapping.true : outputTypeMapping.false;\n\n // Configurar msg.payload e msg.button_press usando o mapeamento\n msg.payload = payloadMapping.payload;\n msg.button_press = payloadMapping.button_press;\n\n // Envie a mensagem\n return msg;\n} else {\n // Caso msg.outputType não esteja no mapeamento, você pode tomar outra ação ou simplesmente passar adiante\n return null;\n}\n", | |
| "outputs": 1, | |
| "timeout": "", | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 1450, | |
| "y": 2040, | |
| "wires": [ | |
| [ | |
| "9ebfec7e0671c219" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "dbc8d7c897c0905a", | |
| "type": "ha-switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "71ecb19db8dab14c", | |
| "name": "Central AMT - Partição A", | |
| "version": 0, | |
| "debugenabled": false, | |
| "inputs": 1, | |
| "outputs": 2, | |
| "entityConfig": "a57e00b1b9df87d9", | |
| "enableInput": true, | |
| "outputOnStateChange": true, | |
| "outputProperties": [ | |
| { | |
| "property": "outputType", | |
| "propertyType": "msg", | |
| "value": "part_a", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "boolean", | |
| "valueType": "entityState" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 1180, | |
| "y": 1860, | |
| "wires": [ | |
| [ | |
| "7003721789a1c7a8" | |
| ], | |
| [ | |
| "7003721789a1c7a8" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "fb61a2856e7d72d6", | |
| "type": "ha-switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "71ecb19db8dab14c", | |
| "name": "Central AMT - Partição B", | |
| "version": 0, | |
| "debugenabled": false, | |
| "inputs": 1, | |
| "outputs": 2, | |
| "entityConfig": "5917d04abdd460ea", | |
| "enableInput": true, | |
| "outputOnStateChange": true, | |
| "outputProperties": [ | |
| { | |
| "property": "outputType", | |
| "propertyType": "msg", | |
| "value": "part_b", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "boolean", | |
| "valueType": "entityState" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 1180, | |
| "y": 1920, | |
| "wires": [ | |
| [ | |
| "7003721789a1c7a8" | |
| ], | |
| [ | |
| "7003721789a1c7a8" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "3cb72ac46e4cb85f", | |
| "type": "ha-switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "71ecb19db8dab14c", | |
| "name": "Central AMT - Partição C", | |
| "version": 0, | |
| "debugenabled": false, | |
| "inputs": 1, | |
| "outputs": 2, | |
| "entityConfig": "9c31402a8c07638a", | |
| "enableInput": true, | |
| "outputOnStateChange": true, | |
| "outputProperties": [ | |
| { | |
| "property": "outputType", | |
| "propertyType": "msg", | |
| "value": "part_c", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "boolean", | |
| "valueType": "entityState" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 1180, | |
| "y": 1980, | |
| "wires": [ | |
| [ | |
| "7003721789a1c7a8" | |
| ], | |
| [ | |
| "7003721789a1c7a8" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "63ecdfe28465dd9a", | |
| "type": "ha-switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "71ecb19db8dab14c", | |
| "name": "Central AMT - Partição D", | |
| "version": 0, | |
| "debugenabled": false, | |
| "inputs": 1, | |
| "outputs": 2, | |
| "entityConfig": "fe2a9f9a19dd5a26", | |
| "enableInput": true, | |
| "outputOnStateChange": true, | |
| "outputProperties": [ | |
| { | |
| "property": "outputType", | |
| "propertyType": "msg", | |
| "value": "part_d", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "boolean", | |
| "valueType": "entityState" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 1180, | |
| "y": 2040, | |
| "wires": [ | |
| [ | |
| "7003721789a1c7a8" | |
| ], | |
| [ | |
| "7003721789a1c7a8" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "a742fe0d29e24739", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "71ecb19db8dab14c", | |
| "name": "link in 2", | |
| "links": [ | |
| "178c391c799c5bfc" | |
| ], | |
| "x": 835, | |
| "y": 2020, | |
| "wires": [ | |
| [ | |
| "df591e21a6d94425" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "9ebfec7e0671c219", | |
| "type": "link out", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "71ecb19db8dab14c", | |
| "name": "TCP REQUEST", | |
| "mode": "link", | |
| "links": [ | |
| "c4a7ffec90e0d191", | |
| "add4d9edfc81fc68" | |
| ], | |
| "x": 1585, | |
| "y": 2040, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "513f9c869e0368c1", | |
| "type": "ha-switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "71ecb19db8dab14c", | |
| "name": "Central AMT - Central", | |
| "version": 0, | |
| "debugenabled": false, | |
| "inputs": 1, | |
| "outputs": 2, | |
| "entityConfig": "e2c0280b5deecddc", | |
| "enableInput": true, | |
| "outputOnStateChange": true, | |
| "outputProperties": [ | |
| { | |
| "property": "outputType", | |
| "propertyType": "msg", | |
| "value": "central", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "boolean", | |
| "valueType": "entityState" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 1170, | |
| "y": 1800, | |
| "wires": [ | |
| [ | |
| "7003721789a1c7a8" | |
| ], | |
| [ | |
| "7003721789a1c7a8" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "35c830abea1e209e", | |
| "type": "ha-switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "71ecb19db8dab14c", | |
| "name": "Central AMT - PGM 1", | |
| "version": 0, | |
| "debugenabled": false, | |
| "inputs": 1, | |
| "outputs": 2, | |
| "entityConfig": "3ecdb60399ec91d7", | |
| "enableInput": true, | |
| "outputOnStateChange": true, | |
| "outputProperties": [ | |
| { | |
| "property": "outputType", | |
| "propertyType": "msg", | |
| "value": "pgm_1", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "boolean", | |
| "valueType": "entityState" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 1170, | |
| "y": 2100, | |
| "wires": [ | |
| [ | |
| "7003721789a1c7a8" | |
| ], | |
| [ | |
| "7003721789a1c7a8" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "6911f7070ab24ac0", | |
| "type": "ha-switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "71ecb19db8dab14c", | |
| "name": "Central AMT - PGM 2", | |
| "version": 0, | |
| "debugenabled": false, | |
| "inputs": 1, | |
| "outputs": 2, | |
| "entityConfig": "09ca138f4eb632a8", | |
| "enableInput": true, | |
| "outputOnStateChange": true, | |
| "outputProperties": [ | |
| { | |
| "property": "outputType", | |
| "propertyType": "msg", | |
| "value": "pgm_2", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "boolean", | |
| "valueType": "entityState" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 1170, | |
| "y": 2160, | |
| "wires": [ | |
| [ | |
| "7003721789a1c7a8" | |
| ], | |
| [ | |
| "7003721789a1c7a8" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "f4e25015f5620f73", | |
| "type": "ha-switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "71ecb19db8dab14c", | |
| "name": "Central AMT - PGM 3", | |
| "version": 0, | |
| "debugenabled": false, | |
| "inputs": 1, | |
| "outputs": 2, | |
| "entityConfig": "59f9468fb188b98a", | |
| "enableInput": true, | |
| "outputOnStateChange": true, | |
| "outputProperties": [ | |
| { | |
| "property": "outputType", | |
| "propertyType": "msg", | |
| "value": "pgm_3", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "boolean", | |
| "valueType": "entityState" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 1170, | |
| "y": 2220, | |
| "wires": [ | |
| [ | |
| "7003721789a1c7a8" | |
| ], | |
| [ | |
| "7003721789a1c7a8" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "1075b94b1d7d2312", | |
| "type": "ha-switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "71ecb19db8dab14c", | |
| "name": "Central AMT - Sirene", | |
| "version": 0, | |
| "debugenabled": false, | |
| "inputs": 1, | |
| "outputs": 2, | |
| "entityConfig": "58ac12cd2c9654d1", | |
| "enableInput": true, | |
| "outputOnStateChange": true, | |
| "outputProperties": [ | |
| { | |
| "property": "outputType", | |
| "propertyType": "msg", | |
| "value": "sirene", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "boolean", | |
| "valueType": "entityState" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 1170, | |
| "y": 2280, | |
| "wires": [ | |
| [ | |
| "7003721789a1c7a8" | |
| ], | |
| [ | |
| "7003721789a1c7a8" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "37c432b523c62c58", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "debug 152", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 810, | |
| "y": 820, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "b15125481689e3ed", | |
| "type": "switch", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "", | |
| "property": "check_status", | |
| "propertyType": "flow", | |
| "rules": [ | |
| { | |
| "t": "true" | |
| } | |
| ], | |
| "checkall": "true", | |
| "repair": false, | |
| "outputs": 1, | |
| "x": 710, | |
| "y": 1080, | |
| "wires": [ | |
| [ | |
| "87632a5d957f2628" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "fe6f199088012ac3", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "debug 154", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "false", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1650, | |
| "y": 1580, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "10f906df5b94ef21", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "ACK", | |
| "func": "var i;\nvar buffer;\nvar hex;\nvar erro;\nbuffer = Buffer.from(msg.payload);\nfor (i = 0; i < buffer.length; i++) {\n if (i == 0) {\n hex = buffer[i].toString(16);\n } else {\n hex = hex + \" \" + buffer[i].toString(16);\n }\n}\nerro = \"Erro desconhecido \\\"\" + hex.toUpperCase() + \"\\\"\"\n\n const states = msg.payload[2];\nconst text = {\n 0xFE: 'Comando recebido com sucesso',\n 0xE0: 'Formato de pacote inválido',\n 0xE1: 'Senha incorreta',\n 0xE2: 'Comando inválido',\n 0xE3: 'Central não particionada',\n 0xE4: 'Zonas abertas',\n 0xE5: 'Comando descontinuado',\n 0xE6: 'Usuário sem permissão para bypass',\n 0xE7: 'Usuário sem permissão para desativar',\n 0xE8: 'Bypass não permitido com a central ativada',\n 0xEA: 'Partição sem zonas habilitadas'\n };\n\nconst result = text.hasOwnProperty(states) ? text[states] : erro\nconsole.log(msg.time + \"[AMT] Comando enviado: \" + msg.button_press + \", ACK: \" + result);\nmsg.payload = result;\nreturn msg;\n", | |
| "outputs": 1, | |
| "timeout": 0, | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 1670, | |
| "y": 1060, | |
| "wires": [ | |
| [ | |
| "49407a4f9f3e07d1", | |
| "ca4562cd84c0b37d" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "1f9e97fafcfef96f", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "debug 194", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 570, | |
| "y": 760, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "19b6a116b69d1ce7", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "fe29484544c23ff9", | |
| "name": "AMT 2018 SMART (beta)", | |
| "func": "if (global.get(\"homeassistant.homeAssistant.isConnected\") == true) {\n\nvar zone_ = Buffer.alloc(65);\nvar violated_ = Buffer.alloc(65);\nvar anulated_ = Buffer.alloc(65);\nvar lowbattery_ = Buffer.alloc(65);\nvar n_zone;\nvar i;\nvar j;\nfor (i = 0; i < 64 / 8; i++) {\n for (j = 0; j < 8; j++) {\n n_zone = ((i * 8) + 1 + j);\n if (n_zone < 49) {\n zone_[n_zone] = ((msg.payload[i + 1 + 1] >> j) & 1);\n violated_[n_zone] = (msg.payload[i + 1 + 7] >> j) & 1;\n anulated_[n_zone] = (msg.payload[i + 1 + 13] >> j) & 1;\n } else {\n zone_[n_zone] = 0;\n violated_[n_zone] = 0;\n anulated_[n_zone] = 0;\n }\n if (n_zone < 41) {\n lowbattery_[n_zone] = (msg.payload[i + 1 + 39] >> j) & 1;\n //lowbattery_[n_zone] = 0;\n } else {\n lowbattery_[n_zone] = 0;\n\n }\n\n\n }\n}\nmsg.zone_ = zone_;\nmsg.violated_ = violated_;\nmsg.anulated_ = anulated_;\nmsg.lowbattery_ = lowbattery_;\n\n\n\n\n\n\nvar tamper_ = Buffer.alloc(19);\nvar shortcircuit_ = Buffer.alloc(19);\nn_zone = 0;\nfor (i = 0; i < 8 / 8; i++) {\n for (j = 0; j < 8; j++) {\n\n n_zone = ((i * 8) + 1 + j);\n tamper_[n_zone] = (msg.payload[i + 1 + 34] >> j) & 1;\n shortcircuit_[n_zone] = (msg.payload[i + 1 + 36] >> j) & 1;\n\n tamper_[n_zone + 10] = (msg.payload[i + 1 + 35] >> j) & 1;\n shortcircuit_[n_zone + 10] = (msg.payload[i + 1 + 37] >> j) & 1;\n\n }\n}\n\nmsg.tamper_ = tamper_;\nmsg.shortcircuit_ = shortcircuit_;\n\nvar fw1 = (msg.payload[20 + 1]) & 0xf0;\nvar fw2 = (msg.payload[20 + 1]) & 0x0f;\nfw1 = (fw1 / 16);\nmsg.fw = (fw1 + \".\" + fw2);\nif (msg.payload[19 + 1] == 0x34) {\n msg.model = \"AMT 2018 E SMART\"\n// } else if (msg.payload[19 + 1] == 0x61) {\n// msg.model = \"AMT 1016 NET\"\n} else {\n msg.model = \"Desconhecido\"\n}\nmsg.partition_a = Boolean((msg.payload[22 + 1] >> 0) & 1);\nmsg.partition_b = Boolean((msg.payload[22 + 1] >> 1) & 1);\n// A AMT 2018/1016 nao tem as particoes C e D, mas os binary_sensor precisam\n// de um valor: o no de entidade rejeita state undefined com \"Invalid state\"\n// (SensorBaseController). Com true e o device_class \"lock\" do sensor, a\n// expressao $not($boolean(partition_c)) da off, ou seja \"trancada\".\n// A flag abaixo e o que impede o \"Status Switch\" de forcar os switches C e D\n// e o que os tira da lista de \"Particoes Ativadas\".\nmsg.partition_c = true;\nmsg.partition_d = true;\nmsg.particoes_cd_existem = false;\n\nmsg.pc = (msg.payload[23 + 1] >> 0) & 1;\nmsg.za = (msg.payload[23 + 1] >> 2) & 1;\nmsg.activated = Boolean((msg.payload[23 + 1] >> 3) & 1);\nmsg.cd = (msg.payload[23 + 1] >> 6) & 1;\n\nmsg.acpower = Boolean((msg.payload[29 + 1] >> 0) & 1);\nmsg.b_baixa = (msg.payload[29 + 1] >> 1) & 1;\nmsg.b_con = (msg.payload[29 + 1] >> 2) & 1;\nmsg.b_curto = (msg.payload[29 + 1] >> 3) & 1;\nmsg.s_aux = (msg.payload[29 + 1] >> 4) & 1;\n\nvar pt_ = Buffer.alloc(5);\nvar pr_ = Buffer.alloc(5);\nn_zone = 0;\nfor (i = 0; i < 4; i++) {\n for (j = 0; j < 4; j++) {\n\n n_zone = ((i * 8) + 1 + j);\n pt_[n_zone] = (msg.payload[i + 1 + 30] >> j) & 1;\n pr_[n_zone] = (msg.payload[i + 1 + 30] >> j + 4) & 1;\n }\n}\n\nmsg.pt_ = pt_;\nmsg.pr_ = pr_;\n\nvar pep_ = Buffer.alloc(5);\nvar pez_ = Buffer.alloc(9);\nn_zone = 0;\nfor (i = 0; i < 4; i++) {\n for (j = 0; j < 4; j++) {\n\n n_zone = ((i * 8) + 1 + j);\n pep_[n_zone] = 0;\n pez_[n_zone + 4] = 0;\n pez_[n_zone] = 0;\n }\n}\n\nmsg.pep_ = pep_;\nmsg.pez_ = pez_;\n\nmsg.b_con = (msg.payload[29 + 1] >> 2) & 1;\nif (msg.b_con == 0) {\n msg.bateria = (msg.payload[31 + 1]) & 0x0f;\n if (msg.bateria == 0x0f) {\n msg.bateria = 100;\n } else if (msg.bateria == 0x07) {\n msg.bateria = 75;\n } else if (msg.bateria == 0x03) {\n msg.bateria = 50;\n } else if (msg.bateria == 0x01) {\n msg.bateria = 25;\n } else if (msg.bateria == 0x00) {\n msg.bateria = 0;\n }/* else {\n msg.bateria = -10\n}*/\n} else {\n msg.bateria = 0;\n}\n\nvar tc_ = Buffer.alloc(5);\nn_zone = 0;\nfor (i = 0; i < 4; i++) {\n for (j = 0; j < 4; j++) {\n\n n_zone = ((i * 8) + 1 + j);\n tc_[n_zone] = (msg.payload[i + 1 + 32] >> j + 4) & 1;\n }\n}\n\nmsg.tc_ = tc_;\n\nmsg.ss = (msg.payload[38 + 1] >> 3) & 1;\nmsg.pgm_1 = Boolean((msg.payload[38 + 1] >> 6) & 1);\nmsg.pgm_2 = Boolean((msg.payload[38 + 1] >> 5) & 1);\nmsg.pgm_3 = false;\n\nmsg.scf = (msg.payload[33 + 1] >> 0) & 1;\nmsg.sc = (msg.payload[33 + 1] >> 1) & 1;\nmsg.ct = (msg.payload[33 + 1] >> 2) & 1;\nmsg.fce = (msg.payload[33 + 1] >> 3) & 1;\n\n\n var yy;\n var mm;\n var dd;\n var hh;\n var min;\n\n //year\n if (msg.payload[28 + 1] < 10) {\n yy = \"0\" + msg.payload[28 + 1]\n } else {\n yy = msg.payload[28 + 1]\n }\n //month\n if (msg.payload[27 + 1] < 10) {\n mm = \"0\" + msg.payload[27 + 1]\n } else {\n mm = msg.payload[27 + 1]\n }\n //day\n if (msg.payload[26 + 1] < 10) {\n dd = \"0\" + msg.payload[26 + 1]\n } else {\n dd = msg.payload[26 + 1]\n }\n //hour\n if (msg.payload[24 + 1] < 10) {\n hh = \"0\" + msg.payload[24 + 1]\n } else {\n hh = msg.payload[24 + 1]\n }\n //minutes\n if (msg.payload[25 + 1] < 10) {\n min = \"0\" + msg.payload[25 + 1]\n } else {\n min = msg.payload[25 + 1]\n }\n\n var clock = (\n \"20\" + yy + \"-\" +\n mm + \"-\" +\n dd + \"T\" +\n hh + \":\" +\n min + \":00+0000\"\n )\n\n var clock2 = Math.trunc((((Date.now() - 10800000) - (Date.parse(clock) - 0)) / 1000));\n\n if (clock2 > -600 && clock2 < 600) {// se a diferença for mais que 10 minutos\n\n msg.clock = \"Data e hora sincronizada\"\n\n } else {\n\n msg.clock = \"Data e hora desincronizada\"\n\n }\n msg.partition_size = 2;\n\ndelete msg.payload\ndelete msg.port\ndelete msg.host\n\nreturn msg;\n}", | |
| "outputs": 1, | |
| "timeout": "", | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 1910, | |
| "y": 900, | |
| "wires": [ | |
| [ | |
| "178c391c799c5bfc", | |
| "b531e8a1e617303d" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "4fb9f28de9f82471", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - PGM 1 Desativar", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "4524c2c9b7c460b3", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Desativar PGM 1", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_pgm_1_des", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 160, | |
| "y": 2540, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "5c0dfd7bc47105d6", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - PGM 2 Desativar", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "13204354d97cddb0", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Desativar PGM 2", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_pgm_2_des", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 160, | |
| "y": 2660, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "2ad67e379003f3f3", | |
| "type": "ha-button", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f518c6fef4d1efae", | |
| "name": "Central AMT - PGM 3 Desativar", | |
| "version": 0, | |
| "debugenabled": false, | |
| "outputs": 1, | |
| "entityConfig": "b7f4edd94c25707a", | |
| "outputProperties": [ | |
| { | |
| "property": "button_press", | |
| "propertyType": "msg", | |
| "value": "Desativar PGM 3", | |
| "valueType": "str" | |
| }, | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "comando_pgm_3_des", | |
| "valueType": "flow" | |
| }, | |
| { | |
| "property": "time", | |
| "propertyType": "msg", | |
| "value": "$fromMillis($millis(), '[D] [MNn,3-3] [H01]:[m01]:[s01] - ', '-0300')", | |
| "valueType": "jsonata" | |
| } | |
| ], | |
| "x": 160, | |
| "y": 2780, | |
| "wires": [ | |
| [ | |
| "8b1c68fa4a461b49" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "9c0b70bb6a015d1d", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "debug 195", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 1750, | |
| "y": 1220, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "6c89cff9974466de", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "Limpar Notificação Persistente", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "payload", | |
| "targetType": "msg", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 2030, | |
| "y": 1340, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "4b84ac70f23d5642", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "f6705937848dcdbf", | |
| "name": "check_status", | |
| "func": "delete msg.reset;\n\nif (flow.get(\"check_status\") == true) {\n node.send([msg, null])\n} else {\n node.send([null, msg])\n\n\n}\n", | |
| "outputs": 2, | |
| "timeout": 0, | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 1230, | |
| "y": 1220, | |
| "wires": [ | |
| [ | |
| "6e1d852b06d00863", | |
| "38caaff4.03f6d" | |
| ], | |
| [] | |
| ], | |
| "outputLabels": [ | |
| "check_status = true", | |
| "check_status = false" | |
| ] | |
| }, | |
| { | |
| "id": "38bb1932b017fd05", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "debug 204", | |
| "active": true, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "false", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 5170, | |
| "y": 1720, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "992adf4a9b074b23", | |
| "type": "link in", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "a73b2911d33ee21b", | |
| "name": "Indisponivel no boot", | |
| "links": [ | |
| "3ba1669d42e7425f", | |
| "276e507a7a5e2633" | |
| ], | |
| "x": 115, | |
| "y": 1080, | |
| "wires": [ | |
| [ | |
| "ada9ff854d07a4fd" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "276e507a7a5e2633", | |
| "type": "link out", | |
| "z": "af6d8c8a43d2f463", | |
| "d": true, | |
| "g": "c0497c8865d4c35b", | |
| "name": "Indisponivel no boot", | |
| "mode": "link", | |
| "links": [ | |
| "51dd6c0d83f843b8", | |
| "992adf4a9b074b23" | |
| ], | |
| "x": 1535, | |
| "y": 400, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "53e46215401df191", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "aaf43474a9869113", | |
| "name": "Get Device ID", | |
| "func": "// Junta TODOS os dispositivos do Node-RED fabricados pela Intelbras.\n// Antes pegava so o primeiro e parava: se sobrasse um dispositivo antigo no\n// registro do Home Assistant, a lista de entidades era montada a partir do\n// dispositivo errado e ficava vazia ou incompleta.\n// O identifier do Node-RED e [\"nodered\", \"<id do no ha-device-config>\"],\n// entao usamos isso para nao pegar dispositivos Intelbras de outra origem.\nvar manufacturerToFind = \"Intelbras\";\nvar ids = [];\n\nfor (var i = 0; i < msg.payload.length; i++) {\n var device = msg.payload[i];\n var doNodeRed = (device.identifiers || []).some(function (ident) {\n return Array.isArray(ident) && ident[0] === \"nodered\";\n });\n if (doNodeRed && device.manufacturer === manufacturerToFind) {\n ids.push(device.id);\n }\n}\n\nif (ids.length === 0) {\n node.warn(\"[AMT] nenhum dispositivo Node-RED da Intelbras encontrado no Home Assistant\");\n return null;\n}\n\nif (ids.length > 1) {\n node.warn(\"[AMT] \" + ids.length + \" dispositivos Intelbras encontrados; usando todos: \" + ids.join(\", \"));\n}\n\nmsg.devices = ids;\nreturn msg;\n", | |
| "outputs": 1, | |
| "timeout": 0, | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 1920, | |
| "y": 180, | |
| "wires": [ | |
| [ | |
| "11ae8acb259891d5" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "11ae8acb259891d5", | |
| "type": "ha-api", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "aaf43474a9869113", | |
| "name": "", | |
| "server": "e0000d7f6aec4209", | |
| "version": 1, | |
| "debugenabled": false, | |
| "protocol": "websocket", | |
| "method": "get", | |
| "path": "", | |
| "data": "{\"type\": \"config/entity_registry/list\"}", | |
| "dataType": "jsonata", | |
| "responseType": "json", | |
| "outputProperties": [ | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "", | |
| "valueType": "results" | |
| } | |
| ], | |
| "x": 1770, | |
| "y": 240, | |
| "wires": [ | |
| [ | |
| "a312240dd7848b28" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "a312240dd7848b28", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "aaf43474a9869113", | |
| "name": "Entities Array", | |
| "func": "// Seus dados de entrada estão em msg.payload e msg.devices\n// var msg.payload = msg.payload;\nvar devicesToFind = msg.devices;\nvar entityIds = [];\n\n// Percorre os objetos dentro de \"payload\" e verifica se o \"device_id\" corresponde a um dos dispositivos em \"devicesToFind\"\nfor (var i = 0; i < msg.payload.length; i++) {\n var entity = msg.payload[i];\n if (devicesToFind.includes(entity.device_id)) {\n entityIds.push(entity.entity_id);\n }\n}\n\n// Filtra as entidades que não começam com \"button\" ou \"switch\" e não contêm \"central_online\"\nentityIds = entityIds.filter(function(entityId) {\n return !entityId.startsWith(\"button\") && !entityId.startsWith(\"switch\") && !entityId.includes(\"central_online\");\n});\n\n// Crie um novo objeto msg com o array de entityIds\nmsg.payload = entityIds;\nflow.set(\"entidades_indisponiveis\", entityIds);\n\ndelete msg.devices;\ndelete msg.data;\nreturn msg;\n", | |
| "outputs": 1, | |
| "timeout": 0, | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 1910, | |
| "y": 240, | |
| "wires": [ | |
| [ | |
| "9f5cc9d64e510ca6" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "872a887fa928452a", | |
| "type": "ha-api", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "aaf43474a9869113", | |
| "name": "", | |
| "server": "e0000d7f6aec4209", | |
| "version": 1, | |
| "debugenabled": false, | |
| "protocol": "websocket", | |
| "method": "get", | |
| "path": "", | |
| "data": "{\"type\": \"config/device_registry/list\"}", | |
| "dataType": "jsonata", | |
| "responseType": "json", | |
| "outputProperties": [ | |
| { | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "value": "", | |
| "valueType": "results" | |
| } | |
| ], | |
| "x": 1770, | |
| "y": 180, | |
| "wires": [ | |
| [ | |
| "53e46215401df191" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "e70a72b58f4fa277", | |
| "type": "inject", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "aaf43474a9869113", | |
| "name": "", | |
| "props": [], | |
| "repeat": "", | |
| "crontab": "", | |
| "once": false, | |
| "onceDelay": 0.1, | |
| "topic": "", | |
| "x": 1770, | |
| "y": 120, | |
| "wires": [ | |
| [ | |
| "872a887fa928452a" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "9f5cc9d64e510ca6", | |
| "type": "debug", | |
| "z": "af6d8c8a43d2f463", | |
| "g": "aaf43474a9869113", | |
| "name": "debug 221", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, | |
| "complete": "true", | |
| "targetType": "full", | |
| "statusVal": "", | |
| "statusType": "auto", | |
| "x": 2070, | |
| "y": 240, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "a1c0de70b0071001", | |
| "type": "inject", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Verificar boot a cada 30s", | |
| "props": [], | |
| "repeat": "30", | |
| "crontab": "", | |
| "once": false, | |
| "onceDelay": 0.1, | |
| "topic": "", | |
| "x": 200, | |
| "y": 640, | |
| "wires": [ | |
| [ | |
| "a1c0de70b0071002" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "a1c0de70b0071002", | |
| "type": "function", | |
| "z": "af6d8c8a43d2f463", | |
| "name": "Recuperar boot se check_status false", | |
| "func": "// Rede de seguranca do boot: se o flow nunca conseguiu ligar o polling,\n// re-executa a cadeia de inicializacao em vez de ficar mudo para sempre.\n// So age quando o switch de requisicao de status esta ligado, senao o\n// usuario desligou o polling de proposito e nao ha nada a recuperar.\nif (flow.get(\"check_status\") === true) {\n node.status({ fill: \"green\", shape: \"dot\", text: \"ok\" });\n return null;\n}\n\nvar estados = global.get(\"homeassistant.homeAssistant.states\") || {};\nvar id_switch = Object.keys(estados).find(function (k) {\n return k.startsWith(\"switch.\") && k.endsWith(\"central_amt_requisicao_de_status\");\n});\n\nif (id_switch !== undefined && estados[id_switch].state !== \"on\") {\n node.status({ fill: \"grey\", shape: \"ring\", text: \"desligado pelo usuario\" });\n return null;\n}\n\nvar tentativas = (context.get(\"tentativas\") || 0) + 1;\ncontext.set(\"tentativas\", tentativas);\nnode.status({ fill: \"yellow\", shape: \"dot\", text: \"reiniciando boot (\" + tentativas + \")\" });\nnode.warn(\"[AMT] check_status ainda false; reiniciando a cadeia de boot (tentativa \" + tentativas + \")\");\nreturn msg;\n", | |
| "outputs": 1, | |
| "timeout": 0, | |
| "noerr": 0, | |
| "initialize": "", | |
| "finalize": "", | |
| "libs": [], | |
| "x": 470, | |
| "y": 640, | |
| "wires": [ | |
| [ | |
| "157ab0e2e60115ed" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "05a35230c79bbee1", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PGM 1 Ativar", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PGM 1 Ativar" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:power" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "6a75eae9d4af12a0", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PGM 3 Ativar", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PGM 3 Ativar" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:power" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "7ce60599c4239eef", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PGM 2 Ativar", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PGM 2 Ativar" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:power" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "c53e057f7cb8e027", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Ativar AMT", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Ativar AMT" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-lock-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "5da769e0d96c0f6b", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Desativar AMT", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Desativar AMT" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-lock-open-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "8614604a70f3f1b8", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Ativar Partição A", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Ativar Partição A" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-half-full" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "c19c0769a2fdbc63", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Desativar Partição A", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Desativar Partição A" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-lock-open-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "a7f56a04fce82a5b", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Desativar Partição B", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Desativar Partição B" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-lock-open-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "79e6f9ee14fbb8e5", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Desativar Partição C", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Desativar Partição C" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-lock-open-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "383d5f0ec205ec93", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Ativar Partição D", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Ativar Partição D" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-half-full" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "39edc598a246f4a5", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Desativar Partição D", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Desativar Partição D" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-lock-open-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "de6acd33c6f32693", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Ativar Partição B", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Ativar Partição B" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-half-full" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "8c5094cad5d46fe7", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Ativar Partição C", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Ativar Partição C" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-half-full" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "316935cfb1457329", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Stay", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Stay" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-lock-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "26da8b8450e127a7", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Stay A", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Stay A" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-half-full" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "3aee1dd7065403d1", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Stay B", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Stay B" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-half-full" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "8141122539e8eb24", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Stay C", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Stay C" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-half-full" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "ddc9445f093e5c7f", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Stay D", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Stay D" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-half-full" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "48676cbe85028daa", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Anular Zonas Abertas", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Anular Zonas Abertas" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-alert-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "5caa8fb2c48e806d", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Anular Zonas Disparadas", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Anular Zonas Disparadas" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-alert-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "3b595b739be8fd42", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PGM 1", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PGM 1" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "power" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "0366e8e05a0893fe", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PGM 2", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PGM 2" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "power" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "c560c407e6bc4c4c", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PGM 3", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PGM 3" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "power" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "d119e3c5968d82b6", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PARTIÇÃO A", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PARTIÇÃO A" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "lock" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "601792ebe57a9e15", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PARTIÇÃO B", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PARTIÇÃO B" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "lock" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "628390c7d00f6752", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PARTIÇÃO C", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PARTIÇÃO C" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "lock" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "0fe5fc46745c15ea", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PARTIÇÃO D", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PARTIÇÃO D" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "lock" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "2858f77deaaa7727", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - CENTRAL ATIVADA", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - CENTRAL ATIVADA" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "lock" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "94cb08d1015d28d8", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema na central", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema na central" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "87662184722ec3a7", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - ZONA ABERTA", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - ZONA ABERTA" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "9aed8217761a11e5", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - CENTRAL DISPARADA", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - CENTRAL DISPARADA" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "a46cb637b555f89b", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - STATUS SIRENE", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - STATUS SIRENE" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "b8681b82ac7e7cc5", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Sirene Corte de fiação", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Sirene Corte de fiação" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "3b29d4d849708774", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Sirene em curto", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Sirene em curto" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "792a394efe8ed698", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Entrada AC", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Entrada AC" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "power" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "c3d242fa5602513f", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Sobrecarga AUX", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Sobrecarga AUX" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "f0fa59a07ad4a6b3", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Bateria conectada", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Bateria conectada" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "battery" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "0ebbe207589d2043", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Bateria em curto", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Bateria em curto" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "battery" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "4642dfb75538ff03", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Corte Telefone", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Corte Telefone" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "f237200acb61b8f4", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Falha ao comunicar evento", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Falha ao comunicar evento" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "10e00f4a73006503", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no teclado 1", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no teclado 1" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "3656d611c9288e41", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no teclado 2", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no teclado 2" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "4e418a2bddae9d19", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no teclado 3", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no teclado 3" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "643c3edab8e72b50", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no teclado 4", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no teclado 4" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "ce174e37dfec6c2f", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no receptor 1", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no receptor 1" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "e050eaa70f08849a", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no receptor 2", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no receptor 2" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "044d601bddbb4a7e", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no receptor 4", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no receptor 4" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "4e203c7764473cae", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no receptor 3", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no receptor 3" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "5b6b36dcca6cb459", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no expansor de PGM 1", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no expansor de PGM 1" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "1342c09f47fb217b", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no expansor de PGM 2", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no expansor de PGM 2" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "29a18f2ff1815533", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no expansor de PGM 3", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no expansor de PGM 3" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "6a3631f56f117b35", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no expansor de PGM 4", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no expansor de PGM 4" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "02a9aebf5c574b6f", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no expansor de zonas 1", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no expansor de zonas 1" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "0741f37504026ab7", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no expansor de zonas 2", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no expansor de zonas 2" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "8594478fc05b2f70", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no expansor de zonas 3", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no expansor de zonas 3" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "bb0821c11ffcf20d", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no expansor de zonas 4", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no expansor de zonas 4" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "a31531d16d6b9541", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no expansor de zonas 5", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no expansor de zonas 5" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "cd694dfd883da5d4", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Problema no expansor de zonas 6", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Problema no expansor de zonas 6" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "problem" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "01ef1191cf6db183", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Tamper no teclado 1", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Tamper no teclado 1" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "tamper" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "d7ffce80c570adec", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Tamper no teclado 2", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Tamper no teclado 2" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "tamper" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "369d39dd44e8bb45", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Tamper no teclado 3", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Tamper no teclado 3" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "tamper" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "f1dba32f2cd0a111", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Tamper no teclado 4", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Tamper no teclado 4" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "tamper" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "b0c2e6500aba70e0", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Nível da Bateria", | |
| "version": "6", | |
| "entityType": "sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Nível da Bateria" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "battery" | |
| }, | |
| { | |
| "property": "unit_of_measurement", | |
| "value": "%" | |
| }, | |
| { | |
| "property": "state_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "d49d39e1e21c0f2b", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Ligar Sirene", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Ligar Sirene" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:volume-high" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "f38633bfc3192607", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Desligar Sirene", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Desligar Sirene" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:volume-off" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "aa0db4c1863ef9be", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Firmware", | |
| "version": "6", | |
| "entityType": "sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Firmware" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:package-variant" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| }, | |
| { | |
| "property": "unit_of_measurement", | |
| "value": "" | |
| }, | |
| { | |
| "property": "state_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "7cf687fdfe718ae4", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Bateria baixa", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Bateria baixa" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "battery" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "89a6804599a6829d", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Modelo", | |
| "version": "6", | |
| "entityType": "sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Modelo" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:package-variant" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| }, | |
| { | |
| "property": "unit_of_measurement", | |
| "value": "" | |
| }, | |
| { | |
| "property": "state_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "03196c866a45fb5c", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 11", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 11" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "d190afd24f2e9075", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 12", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 12" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "2cff34c8820e76e6", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 13", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 13" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "4565c4eff3321320", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 14", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 14" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "b7011ae97763e89b", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 15", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 15" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "120a89cc9717c1b1", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 16", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 16" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "e21675d9676c31a4", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 01", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 01" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "2aed303459ff89fe", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 02", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 02" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "293ddd2db59dba2a", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 03", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 03" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "141f6770030aabcb", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 04", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 04" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "8afd32d6ac149100", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 05", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 05" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "4b12a0beef69e387", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 06", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 06" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "3b272a8be6be3246", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 07", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 07" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "f25126b6046ab69d", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 08", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 08" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "f7f128923db704b5", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 24", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 24" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "e22602ea9476ba83", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 22", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 22" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "0158c49bb9c4c152", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 17", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 17" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "bb68f86d9e64aee8", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 18", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 18" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "641bb689d64d09c6", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 19", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 19" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "4b237727def6a69e", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 20", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 20" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "51fe635b82062696", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 21", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 21" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "864f3e462df284f7", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 23", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 23" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "11d56c14547048dc", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 25", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 25" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "b26f937f0846d501", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 26", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 26" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "33b41caaad4025c5", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 27", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 27" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "be269d2fc8cdf405", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 28", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 28" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "93d267942854f84c", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 29", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 29" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "82e16b0e4e73d626", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 30", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 30" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "ee2111feb365ac01", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 31", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 31" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "144547cf09861732", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 32", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 32" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "3568d2671db973ac", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 37", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 37" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "ef15444dadcb05a3", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 33", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 33" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "db60c365f374d01a", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 34", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 34" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "bc522a84b422639e", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 35", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 35" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "2d185a622dd7d760", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 36", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 36" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "96ed5fa5d06fdbc8", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 38", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 38" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "221cda296d401cdf", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 39", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 39" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "67f977178378955d", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 40", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 40" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "6788898ea3575085", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 41", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 41" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "c9a3fe2af27f1e4d", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 42", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 42" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "90c793dd830ac15b", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 43", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 43" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "9cfd49210d675f4d", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 44", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 44" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "28f1946a45bf9c36", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 45", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 45" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "c53eb2b85979608b", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 46", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 46" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "fb14be7a137d0ff3", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 47", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 47" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "535b8858a8c1b4f3", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 48", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 48" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "c3984b3394f7b206", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 49", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 49" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "cb87a836d3fb6301", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 50", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 50" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "9fec99d77388bfee", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 51", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 51" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "d65c5a4258863317", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 52", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 52" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "0104b237965acbe8", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 53", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 53" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "ca9e697a8ec57b9c", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 54", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 54" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "49fbf79743240ddb", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 55", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 55" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "5b59736ce9b42151", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 56", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 56" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "ad32e28cb1af3672", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 57", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 57" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "6ed458f71d1c5131", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 58", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 58" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "33d0f106b52cd8e8", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 59", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 59" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "674306b2d4610675", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 60", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 60" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "65294f07883445b3", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 61", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 61" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "cf10665e21a4a471", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 62", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 62" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "dbc79a822d6006d4", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 63", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 63" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "a318878b62ac0d6f", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 64", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 64" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "4264d3923fe3f00f", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - ACK", | |
| "version": "6", | |
| "entityType": "sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - ACK" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:information" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| }, | |
| { | |
| "property": "unit_of_measurement", | |
| "value": "" | |
| }, | |
| { | |
| "property": "state_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "cb081378b3fe3eaa", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zonas Abertas", | |
| "version": "6", | |
| "entityType": "sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zonas Abertas" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:door-open" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| }, | |
| { | |
| "property": "unit_of_measurement", | |
| "value": "" | |
| }, | |
| { | |
| "property": "state_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "5afa0831035c5c46", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zonas Bateria Baixa", | |
| "version": "6", | |
| "entityType": "sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zonas Bateria Baixa" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:battery-alert-variant-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| }, | |
| { | |
| "property": "unit_of_measurement", | |
| "value": "" | |
| }, | |
| { | |
| "property": "state_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "d34e4ba32171b160", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zonas Disparadas", | |
| "version": "6", | |
| "entityType": "sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zonas Disparadas" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:motion-sensor" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| }, | |
| { | |
| "property": "unit_of_measurement", | |
| "value": "" | |
| }, | |
| { | |
| "property": "state_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "28d995e277bb59fb", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zonas Anuladas", | |
| "version": "6", | |
| "entityType": "sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zonas Anuladas" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-alert-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| }, | |
| { | |
| "property": "unit_of_measurement", | |
| "value": "" | |
| }, | |
| { | |
| "property": "state_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "efc4f8265aea47fc", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zonas Tamper Violado", | |
| "version": "6", | |
| "entityType": "sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zonas Tamper Violado" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:electric-switch" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| }, | |
| { | |
| "property": "unit_of_measurement", | |
| "value": "" | |
| }, | |
| { | |
| "property": "state_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "15ae050e5ef0906f", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zonas em Curto", | |
| "version": "6", | |
| "entityType": "sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zonas em Curto" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:flash-triangle-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| }, | |
| { | |
| "property": "unit_of_measurement", | |
| "value": "" | |
| }, | |
| { | |
| "property": "state_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "56df060c8f86a932", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Central Online", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Central Online" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "connectivity" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "e0000d7f6aec4209", | |
| "type": "server", | |
| "name": "Home Assistant", | |
| "version": 6, | |
| "addon": true, | |
| "rejectUnauthorizedCerts": true, | |
| "ha_boolean": [ | |
| "y", | |
| "yes", | |
| "true", | |
| "on", | |
| "home", | |
| "open" | |
| ], | |
| "connectionDelay": true, | |
| "cacheJson": true, | |
| "heartbeat": false, | |
| "heartbeatInterval": "30", | |
| "areaSelector": "friendlyName", | |
| "deviceSelector": "friendlyName", | |
| "entitySelector": "friendlyName", | |
| "statusSeparator": "at: ", | |
| "statusYear": "hidden", | |
| "statusMonth": "short", | |
| "statusDay": "numeric", | |
| "statusHourCycle": "h23", | |
| "statusTimeFormat": "h:m", | |
| "enableGlobalContextStore": true | |
| }, | |
| { | |
| "id": "3415cf1acf72aef7", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Requisição de Status", | |
| "version": "6", | |
| "entityType": "switch", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Requisição de Status" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:lan-pending" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "44a431ffd83c10ec", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Data", | |
| "version": "6", | |
| "entityType": "sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Data" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:clock-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| }, | |
| { | |
| "property": "unit_of_measurement", | |
| "value": "" | |
| }, | |
| { | |
| "property": "state_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "44af3a6345990532", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 09", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 09" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "97a222a5698f97ef", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Zona 10", | |
| "version": "6", | |
| "entityType": "binary_sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Zona 10" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "door" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "310a986812b77be3", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Anular Zonas Abertas e Disparadas", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Anular Zonas Abertas e Disparadas" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-alert-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "63a7cf1702d5225d", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Partições Ativadas", | |
| "version": "6", | |
| "entityType": "sensor", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Partições Ativadas" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| }, | |
| { | |
| "property": "unit_of_measurement", | |
| "value": "" | |
| }, | |
| { | |
| "property": "state_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "a57e00b1b9df87d9", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Partição A", | |
| "version": "6", | |
| "entityType": "switch", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Partição A" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-half-full" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "5917d04abdd460ea", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Partição B", | |
| "version": "6", | |
| "entityType": "switch", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Partição B" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-half-full" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "9c31402a8c07638a", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Partição C", | |
| "version": "6", | |
| "entityType": "switch", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Partição C" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-half-full" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "fe2a9f9a19dd5a26", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Partição D", | |
| "version": "6", | |
| "entityType": "switch", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Partição D" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-half-full" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "e2c0280b5deecddc", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Central", | |
| "version": "6", | |
| "entityType": "switch", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Central" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:shield-lock-outline" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "3ecdb60399ec91d7", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PGM 1", | |
| "version": "6", | |
| "entityType": "switch", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PGM 1" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:power-plug" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "09ca138f4eb632a8", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PGM 2", | |
| "version": "6", | |
| "entityType": "switch", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PGM 2" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:power-plug" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "59f9468fb188b98a", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PGM 3", | |
| "version": "6", | |
| "entityType": "switch", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PGM 3" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:power-plug" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "58ac12cd2c9654d1", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - Sirene", | |
| "version": "6", | |
| "entityType": "switch", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - Sirene" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:volume-high" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "4524c2c9b7c460b3", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PGM 1 Desativar", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PGM 1 Desativar" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:power" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "13204354d97cddb0", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PGM 2 Desativar", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PGM 2 Desativar" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:power" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "b7f4edd94c25707a", | |
| "type": "ha-entity-config", | |
| "z": "af6d8c8a43d2f463", | |
| "server": "e0000d7f6aec4209", | |
| "deviceConfig": "4951f96ce4167f06", | |
| "name": "Central AMT - PGM 3 Desativar", | |
| "version": "6", | |
| "entityType": "button", | |
| "haConfig": [ | |
| { | |
| "property": "name", | |
| "value": "Central AMT - PGM 3 Desativar" | |
| }, | |
| { | |
| "property": "icon", | |
| "value": "mdi:power" | |
| }, | |
| { | |
| "property": "entity_category", | |
| "value": "" | |
| }, | |
| { | |
| "property": "entity_picture", | |
| "value": "" | |
| }, | |
| { | |
| "property": "device_class", | |
| "value": "" | |
| } | |
| ], | |
| "resend": false, | |
| "debugEnabled": false | |
| }, | |
| { | |
| "id": "4951f96ce4167f06", | |
| "type": "ha-device-config", | |
| "name": "AMT", | |
| "hwVersion": "", | |
| "manufacturer": "Intelbras", | |
| "model": "AMT", | |
| "swVersion": "" | |
| }, | |
| { | |
| "id": "9e24e28f807bc5dd", | |
| "type": "global-config", | |
| "env": [], | |
| "modules": { | |
| "node-red-contrib-home-assistant-websocket": "0.80.3" | |
| } | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment