Revert "dectmngr: add rules in ruleng to handle DECT LED"

This reverts commit 5f36441b11.

As the solution caused conflict to WPS led.
This commit is contained in:
George Yang 2025-05-08 16:35:14 +02:00
parent 8741d7d82e
commit d3b2d4d9bf
3 changed files with 1 additions and 90 deletions

View file

@ -4,3 +4,4 @@ config dect 'global'
config dect 'base'
option enable '1'
option PIN '1234'

View file

@ -1,88 +0,0 @@
{
"dect_registration_started": {
"if": [
{
"event": "dect.base",
"match": {
"event": "registration",
"status": "started"
}
}
],
"then": [
{
"object": "led.dect",
"method": "set",
"args": {
"state": "notice",
"timeout": 120
},
"timeout": 1
}
]
},
"dect_registration_stopped": {
"if": [
{
"event": "dect.base",
"match": {
"event": "registration",
"status": "stopped"
}
}
],
"then": [
{
"object": "led.dect",
"method": "set",
"args": {
"state": "off"
},
"timeout": 1
}
]
},
"dect_registration_timeout": {
"if": [
{
"event": "dect.base",
"match": {
"event": "registration",
"status": "timeout"
}
}
],
"then": [
{
"object": "led.dect",
"method": "set",
"args": {
"state": "off"
},
"timeout": 1
}
]
},
"dect_registration_success": {
"if": [
{
"event": "dect.base",
"match": {
"event": "registration",
"status": "success"
}
}
],
"then": [
{
"object": "led.dect",
"method": "set",
"args": {
"state": "ok",
"timeout": 5
},
"timeout": 1
}
]
}
}

View file

@ -1,2 +0,0 @@
uci -q set ruleng.dect=rule
uci -q set ruleng.dect.recipe='/etc/ruleng/dect.json'