{"id":22352071,"url":"https://github.com/bertreb/pimatic-mesh","last_synced_at":"2025-10-24T15:31:45.174Z","repository":{"id":57324241,"uuid":"230092572","full_name":"bertreb/pimatic-mesh","owner":"bertreb","description":"A plugin for connecting pimatic systems","archived":false,"fork":false,"pushed_at":"2020-09-09T09:05:41.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T11:35:42.507Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bertreb.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-25T11:23:42.000Z","updated_at":"2020-12-30T00:49:52.000Z","dependencies_parsed_at":"2022-09-21T00:54:35.815Z","dependency_job_id":null,"html_url":"https://github.com/bertreb/pimatic-mesh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertreb%2Fpimatic-mesh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertreb%2Fpimatic-mesh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertreb%2Fpimatic-mesh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertreb%2Fpimatic-mesh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bertreb","download_url":"https://codeload.github.com/bertreb/pimatic-mesh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245650496,"owners_count":20650105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T12:17:03.344Z","updated_at":"2025-10-24T15:31:45.089Z","avatar_url":"https://github.com/bertreb.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pimatic-mesh\nA plugin for interconnecting Pimatic systems.\nThis plugin is based on pimatic-remote from [mwittig](https://github.com/mwittig/pimatic-remote) and is extended with devices and a multi-remote capability.\n\nThe pimatic-mesh plugin connects one or more remote Pimatic systems to the Pimatic system of this plugin.\nIn the plugin the most common devices are supported.\nThere are two typical use cases for this plugin.\n\n1. When you want to migrate from a node v4 system to a node v8/v10 system, sometimes one or more plugins are not supporting node v8/v10 and these plugin are blocking the upgrade. With this plugin you can leave the devices, of those node v4 only plugins, on the old system and use pimatic-mesh to connect them to the new system. There's a tradeoff. Because you create new device types for the (remote) devices, you need to update the device config with the new mesh  device classes. The mesh device ID and Name can stay the same, so rules do not have to change.\n\n2. Create a distributed Pimatic system. The plugin can be installed on more than 1 system and so you can configure backup, distribute complexity and get flexibility for future migration. Mesh devices can be link to each other system, but be careful not to create loops.\n\nThe Pimatic remote systems can be configured in the plugin config. Per remote you need to configure the following parameters.\n\n```\n{\n  \"id\": name for the remote system that is used in the mesh device setup\n  \"url\": the url of the remote system\n  \"username\": the Pimatic username for the remote system\n  \"password\": the Pimatic password for the remote system\n}\n```\n\nPer mesh device you can choose which remote Pimatic system will be used (via the 'id'). After adding, changing or removing remote Pimatic systems in the plugin config, you need to restart Pimatic.\n\nThe supported mesh devices are switch, contact, dimmer, presence, temperature and variable. The remote switch and dimmer can be controlled from the switch and dimmer mesh device. From all devices you get data like state, level, etc, depending on the device type.\nVariables from remote devices can be obtained via the mesh variables device.\n\nAn example.\nYou configured the plugin for the remote Pimatic and 'id' it as 'pimatic1'.\nYou want the data of a Luftdaten device from that remote system. The device id is 'airquality-outside-home' and the attributes you want are 'PM10' and 'PM25'.\nYou create a mesh variables device with the following config.\n\n```\n{\n  \"id\": \"air-quality\",\n  \"name\": \"air quality\",\n  \"class\": \"PimaticRemoteVariables\"\n  \"remotePimatic\": \"pimatic1\",\n  \"variables\": [\n    {\n      \"name\": \"pm10\",\n      \"remoteDeviceId\": \"airquality-outside-home\",\n      \"remoteAttributeId\": \"PM10\",\n      \"type\": \"number\"\n    }\n    {\n      \"name\": \"pm25\",\n      \"remoteDeviceId\": \"airquality-outside-home\",\n      \"remoteAttributeId\": \"PM25\",\n      \"type\": \"number\"\n    }\n  ],\n  \"xAttributeOptions\": []\n}\n```\n\nNow you created a mesh device with the id \"air-quality\" and the attributes \"pm10\" and \"pm25\".\nThe pm10 and pm25 data will come from the remote system and will become visible as soon as the remote systems values change.\n\nThe **Discover Devices** function is available for the devices Switch, Dimmer and Buttons Devices and Contact and Presence Sensors.\nAlso all variables will be discovered. Per remote device a MeshVariablesDevice is presented with the all the attributes of that remote device.\n\nThere can be overlap in getting remote values. For example if you want the temperature/humidity of a remote sensor you can use the MeshTemperatureDevice or the MeshVariablesDevice.\nBut for sensors values the MeshVariablesDevice is the most flexible and should be used.\nAnd with the Discovery function is should be easy to add.\n\n----\nThe plugin is Node v10 compatible and in development.\n\nYou could backup Pimatic before you are using this plugin!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertreb%2Fpimatic-mesh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbertreb%2Fpimatic-mesh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertreb%2Fpimatic-mesh/lists"}