Skip to content

Commit

Permalink
Merge pull request #538 from logickworkshop/fix/darmiel-update-name-r…
Browse files Browse the repository at this point in the history
…ecommendations

fix: updated name recommendations
  • Loading branch information
darmiel authored Aug 21, 2023
2 parents 3c7b336 + 741edfd commit fe2149a
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions .fff-ir-lint.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@
"name-check": {
"$path-prefix": "",
"$groups": {
"power": [
"power",
"pwr",
"/^((power|pwr)[_\\s]*)?(toggle|on|off)$/",
"/^(turn[_\\s]*)?(on|off)$/"
"power-toggle": [
"/^((power|pwr)[_\\s]*)?(toggle)?$/",
"/^((power|pwr)[_\\s]*)?((on[_\\/\\s]*off)|(off[_\\/\\s]*on)|toggle)$/",
"/^(turn[_\\s]*)?((on[_\\/\\s]*off)|(off[_\\/\\s]*on))$/"
],
"power-off": [
"/^((power|pwr)[_\\s]*)?off$/",
"/^(turn[_\\s]*)?(off)$/"
],
"power-on": [
"/^((power|pwr)[_\\s]*)?on$/",
"/^(turn[_\\s]*)?(on)$/"
],
"vol_up": [
"/^vol(ume)?[_\\s]*(up|[\\^+])$/"
Expand All @@ -28,9 +35,13 @@
},
"TVs/*": {
"Power": [
"$group:power",
"off",
"on"
"$group:power-toggle"
],
"Power_off": [
"$group:power-off"
],
"Power_on": [
"$group:power-on"
],
"Vol_up": [
"$group:vol_up"
Expand All @@ -50,13 +61,18 @@
},
"ACs/*": {
"Off": [
"off",
"/^((power|pwr)[_\\s]*)?off$/"
"$group:power-off"
]
},
"Audio_Receivers/*,SoundBars/*,Speakers/*": {
"Power": [
"$group:power"
"$group:power-toggle"
],
"Power_off": [
"$group:power-off"
],
"Power_on": [
"$group:power-on"
],
"Vol_up": [
"$group:vol_up"
Expand All @@ -69,4 +85,4 @@
]
}
}
}
}

0 comments on commit fe2149a

Please sign in to comment.