feat: home assistant entity generic toggle (#2015)

Added support for generic toggle on Home Assistant entities that support
it. For entities that does not support toggle the feature will silently
fail. This way matches how Home Assistant handles it.
This commit is contained in:
Dennis Vesterlund
2024-05-06 20:00:13 +02:00
committed by GitHub
parent 6a5836f096
commit 18cd1f961f
4 changed files with 85 additions and 10 deletions

View File

@@ -22,8 +22,13 @@
},
"displayFriendlyName": {
"label": "Display friendly name",
"info": "Display friendly name from Home Assistant instead instead of display name"
"info": "Display friendly name from Home Assistant instead instead of display name."
},
"genericToggle": {
"label": "Entity toggle",
"info": "Perform a generic Home Assistant toggle action on entity when clicked."
}
}
}
}
}