Add loadOptions for Home Assistant

This commit is contained in:
pemontto
2021-10-17 17:48:24 +01:00
parent 0243fc68d9
commit 095ce93cf7
5 changed files with 96 additions and 7 deletions

View File

@@ -43,7 +43,10 @@ export const stateFields = [
{
displayName: 'Entity ID',
name: 'entityId',
type: 'string',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getAllEntities',
},
displayOptions: {
show: {
operation: [
@@ -110,7 +113,10 @@ export const stateFields = [
{
displayName: 'Entity ID',
name: 'entityId',
type: 'string',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getAllEntities',
},
displayOptions: {
show: {
operation: [