forked from arendst/Tasmota
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Matter Zigbee support for sensors: Temperature, Humidity, Pressure (a…
- Loading branch information
1 parent
d4f06d3
commit 1c9ed26
Showing
21 changed files
with
7,465 additions
and
6,176 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
38 changes: 38 additions & 0 deletions
38
lib/libesp32/berry_matter/src/embedded/Matter_Plugin_9_Zigbee_Humidity.be
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# Matter_Plugin_9_Zigbee_Humidity.be - implements the behavior for a Zigbee Humidity sensor | ||
# | ||
# Copyright (C) 2023 Stephan Hadinger & Theo Arends | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
|
||
import matter | ||
|
||
# Matter plug-in for core behavior | ||
|
||
#@ solidify:Matter_Plugin_Zigbee_Humidity,weak | ||
|
||
class Matter_Plugin_Zigbee_Humidity : Matter_Plugin_Sensor_Humidity | ||
static var ZIGBEE = true | ||
static var TYPE = "z_humidity" # name of the plug-in in json | ||
static var DISPLAY_NAME = "Zig Humidity" # display name of the plug-in | ||
static var ZIGBEE_NAME = "Humidity" # name of zigbee attribute with sensor reported | ||
static var ARG = "zigbee_device" # zigbee device | ||
static var ARG_TYPE = / x -> str(x) # function to convert argument to the right type | ||
static var ARG_HINT = "Device" # Hint for entering the Argument (inside 'placeholder') | ||
static var VIRTUAL = true # virtual device, necessary for Zigbee mapping | ||
var zigbee_mapper # required for zigbee device | ||
|
||
end | ||
matter.Plugin_Zigbee_Humidity = Matter_Plugin_Zigbee_Humidity |
38 changes: 38 additions & 0 deletions
38
lib/libesp32/berry_matter/src/embedded/Matter_Plugin_9_Zigbee_Pressure.be
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# Matter_Plugin_9_Zigbee_Pressure.be - implements the behavior for a Zigbee Pressure sensor | ||
# | ||
# Copyright (C) 2023 Stephan Hadinger & Theo Arends | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
|
||
import matter | ||
|
||
# Matter plug-in for core behavior | ||
|
||
#@ solidify:Matter_Plugin_Zigbee_Pressure,weak | ||
|
||
class Matter_Plugin_Zigbee_Pressure : Matter_Plugin_Sensor_Pressure | ||
static var ZIGBEE = true | ||
static var TYPE = "z_pressure" # name of the plug-in in json | ||
static var DISPLAY_NAME = "Zig Pressure" # display name of the plug-in | ||
static var ZIGBEE_NAME = "Pressure" # name of zigbee attribute with sensor reported | ||
static var ARG = "zigbee_device" # zigbee device | ||
static var ARG_TYPE = / x -> str(x) # function to convert argument to the right type | ||
static var ARG_HINT = "Device" # Hint for entering the Argument (inside 'placeholder') | ||
static var VIRTUAL = true # virtual device, necessary for Zigbee mapping | ||
var zigbee_mapper # required for zigbee device | ||
|
||
end | ||
matter.Plugin_Zigbee_Pressure = Matter_Plugin_Zigbee_Pressure |
38 changes: 38 additions & 0 deletions
38
lib/libesp32/berry_matter/src/embedded/Matter_Plugin_9_Zigbee_Temperature.be
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# Matter_Plugin_9_Zigbee_Temperature.be - implements the behavior for a Zigbee Temperature sensor | ||
# | ||
# Copyright (C) 2023 Stephan Hadinger & Theo Arends | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
|
||
import matter | ||
|
||
# Matter plug-in for core behavior | ||
|
||
#@ solidify:Matter_Plugin_Zigbee_Temperature,weak | ||
|
||
class Matter_Plugin_Zigbee_Temperature : Matter_Plugin_Sensor_Temp | ||
static var ZIGBEE = true | ||
static var TYPE = "z_temp" # name of the plug-in in json | ||
static var DISPLAY_NAME = "Zig Temperature" # display name of the plug-in | ||
static var ZIGBEE_NAME = "Temperature" # name of zigbee attribute with sensor reported | ||
static var ARG = "zigbee_device" # zigbee device | ||
static var ARG_TYPE = / x -> str(x) # function to convert argument to the right type | ||
static var ARG_HINT = "Device" # Hint for entering the Argument (inside 'placeholder') | ||
static var VIRTUAL = true # virtual device, necessary for Zigbee mapping | ||
var zigbee_mapper # required for zigbee device | ||
|
||
end | ||
matter.Plugin_Zigbee_Temperature = Matter_Plugin_Zigbee_Temperature |
This file contains 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
Oops, something went wrong.