Skip to content

Commit

Permalink
Merge pull request #1617 from SmartThingsCommunity/main
Browse files Browse the repository at this point in the history
rolling up main to beta
  • Loading branch information
ctowns authored Sep 4, 2024
2 parents 77fc4a8 + 191899f commit 6487fd3
Show file tree
Hide file tree
Showing 82 changed files with 3,002 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,45 @@ preferences:
explicit: true
- preferenceId: humidityOffset
explicit: true
deviceConfig:
dashboard:
states:
- component: main
capability: temperatureMeasurement
version: 1
group: main
composite: true
- component: main
capability: relativeHumidityMeasurement
version: 1
group: main
values:
- label: " {{humidity.value}} {{humidity.unit}}"
composite: true
actions: []
basicPlus: []
detailView:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: battery
version: 1
- component: main
capability: refresh
version: 1
automation:
conditions:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: battery
version: 1
actions: []
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,51 @@ preferences:
explicit: true
- preferenceId: humidityOffset
explicit: true
deviceConfig:
dashboard:
states:
- component: main
capability: temperatureMeasurement
version: 1
group: main
composite: true
- component: main
capability: relativeHumidityMeasurement
version: 1
group: main
values:
- label: " {{humidity.value}} {{humidity.unit}}"
composite: true
actions: []
basicPlus: []
detailView:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: atmosphericPressureMeasurement
version: 1
- component: main
capability: battery
version: 1
- component: main
capability: refresh
version: 1
automation:
conditions:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: atmosphericPressureMeasurement
version: 1
- component: main
capability: battery
version: 1
actions: []
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,45 @@ preferences:
explicit: true
- preferenceId: humidityOffset
explicit: true
deviceConfig:
dashboard:
states:
- component: main
capability: temperatureMeasurement
version: 1
group: main
composite: true
- component: main
capability: relativeHumidityMeasurement
version: 1
group: main
values:
- label: " {{humidity.value}} {{humidity.unit}}"
composite: true
actions: []
basicPlus: []
detailView:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: atmosphericPressureMeasurement
version: 1
- component: main
capability: refresh
version: 1
automation:
conditions:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: atmosphericPressureMeasurement
version: 1
actions: []
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,39 @@ preferences:
explicit: true
- preferenceId: humidityOffset
explicit: true
deviceConfig:
dashboard:
states:
- component: main
capability: temperatureMeasurement
version: 1
group: main
composite: true
- component: main
capability: relativeHumidityMeasurement
version: 1
group: main
values:
- label: " {{humidity.value}} {{humidity.unit}}"
composite: true
actions: []
basicPlus: []
detailView:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: refresh
version: 1
automation:
conditions:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
actions: []
16 changes: 16 additions & 0 deletions drivers/SmartThings/matter-switch/src/test/test_eve_energy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ test.register_message_test(
{ capability = "switch", component = "main", command = "on", args = {} }
}
},
{
channel = "devices",
direction = "send",
message = {
"register_native_capability_cmd_handler",
{ device_uuid = mock_device.id, capability_id = "switch", capability_cmd_id = "on" }
}
},
{
channel = "matter",
direction = "send",
Expand All @@ -113,6 +121,14 @@ test.register_message_test(
{ capability = "switch", component = "main", command = "off", args = {} }
}
},
{
channel = "devices",
direction = "send",
message = {
"register_native_capability_cmd_handler",
{ device_uuid = mock_device.id, capability_id = "switch", capability_cmd_id = "off" }
}
},
{
channel = "matter",
direction = "send",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ test.register_message_test(
{ capability = "switch", component = "main", command = "on", args = { } }
}
},
{
channel = "devices",
direction = "send",
message = {
"register_native_capability_cmd_handler",
{ device_uuid = mock_device.id, capability_id = "switch", capability_cmd_id = "on" }
}
},
{
channel = "matter",
direction = "send",
Expand All @@ -136,6 +144,14 @@ test.register_message_test(
{ capability = "switch", component = "main", command = "off", args = { } }
}
},
{
channel = "devices",
direction = "send",
message = {
"register_native_capability_cmd_handler",
{ device_uuid = mock_device.id, capability_id = "switch", capability_cmd_id = "off" }
}
},
{
channel = "matter",
direction = "send",
Expand All @@ -158,6 +174,14 @@ test.register_message_test(
{ capability = "switchLevel", component = "main", command = "setLevel", args = {20,20} }
}
},
{
channel = "devices",
direction = "send",
message = {
"register_native_capability_cmd_handler",
{ device_uuid = mock_device.id, capability_id = "switchLevel", capability_cmd_id = "setLevel" }
}
},
{
channel = "matter",
direction = "send",
Expand Down
24 changes: 24 additions & 0 deletions drivers/SmartThings/matter-switch/src/test/test_matter_switch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ test.register_message_test(
{ capability = "switch", component = "main", command = "on", args = { } }
}
},
{
channel = "devices",
direction = "send",
message = {
"register_native_capability_cmd_handler",
{ device_uuid = mock_device.id, capability_id = "switch", capability_cmd_id = "on" }
}
},
{
channel = "matter",
direction = "send",
Expand All @@ -146,6 +154,14 @@ test.register_message_test(
{ capability = "switch", component = "main", command = "off", args = { } }
}
},
{
channel = "devices",
direction = "send",
message = {
"register_native_capability_cmd_handler",
{ device_uuid = mock_device.id, capability_id = "switch", capability_cmd_id = "off" }
}
},
{
channel = "matter",
direction = "send",
Expand All @@ -168,6 +184,14 @@ test.register_message_test(
{ capability = "switchLevel", component = "main", command = "setLevel", args = {20,20} }
}
},
{
channel = "devices",
direction = "send",
message = {
"register_native_capability_cmd_handler",
{ device_uuid = mock_device.id, capability_id = "switchLevel", capability_cmd_id = "setLevel" }
}
},
{
channel = "matter",
direction = "send",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ test.register_message_test(
{ capability = "switch", component = "main", command = "on", args = { } }
}
},
{
channel = "devices",
direction = "send",
message = {
"register_native_capability_cmd_handler",
{ device_uuid = mock_device.id, capability_id = "switch", capability_cmd_id = "on" }
}
},
{
channel = "matter",
direction = "send",
Expand Down Expand Up @@ -182,6 +190,14 @@ test.register_message_test(
{ capability = "switch", component = "main", command = "on", args = { } }
}
},
{
channel = "devices",
direction = "send",
message = {
"register_native_capability_cmd_handler",
{ device_uuid = mock_children[child1_ep].id, capability_id = "switch", capability_cmd_id = "on" }
}
},
{
channel = "matter",
direction = "send",
Expand Down Expand Up @@ -217,6 +233,14 @@ test.register_message_test(
{ capability = "switch", component = "main", command = "on", args = { } }
}
},
{
channel = "devices",
direction = "send",
message = {
"register_native_capability_cmd_handler",
{ device_uuid = mock_children[child2_ep].id, capability_id = "switch", capability_cmd_id = "on" }
}
},
{
channel = "matter",
direction = "send",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ test.register_message_test(
{ capability = "switch", component = "main", command = "on", args = { } }
}
},
{
channel = "devices",
direction = "send",
message = {
"register_native_capability_cmd_handler",
{ device_uuid = mock_device.id, capability_id = "switch", capability_cmd_id = "on" }
}
},
{
channel = "matter",
direction = "send",
Expand Down Expand Up @@ -249,6 +257,14 @@ test.register_message_test(
{ capability = "switch", component = "main", command = "on", args = { } }
}
},
{
channel = "devices",
direction = "send",
message = {
"register_native_capability_cmd_handler",
{ device_uuid = mock_children[child1_ep].id, capability_id = "switch", capability_cmd_id = "on" }
}
},
{
channel = "matter",
direction = "send",
Expand Down Expand Up @@ -284,6 +300,14 @@ test.register_message_test(
{ capability = "switch", component = "main", command = "on", args = { } }
}
},
{
channel = "devices",
direction = "send",
message = {
"register_native_capability_cmd_handler",
{ device_uuid = mock_children[child2_ep].id, capability_id = "switch", capability_cmd_id = "on" }
}
},
{
channel = "matter",
direction = "send",
Expand Down
Loading

0 comments on commit 6487fd3

Please sign in to comment.