2021-07-10 04:44:23 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-10-07 14:07:56 -07:00
|
|
|
INodeProperties,
|
2021-07-10 04:44:23 -07:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export class HomeAssistantApi implements ICredentialType {
|
|
|
|
name = 'homeAssistantApi';
|
|
|
|
displayName = 'Home Assistant API';
|
|
|
|
documentationUrl = 'homeAssistant';
|
2021-10-07 14:07:56 -07:00
|
|
|
properties: INodeProperties[] = [
|
2021-07-10 04:44:23 -07:00
|
|
|
{
|
|
|
|
displayName: 'Host',
|
|
|
|
name: 'host',
|
2021-10-07 14:07:56 -07:00
|
|
|
type: 'string',
|
2021-07-10 04:44:23 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Port',
|
|
|
|
name: 'port',
|
2021-10-07 14:07:56 -07:00
|
|
|
type: 'number',
|
2021-07-10 04:44:23 -07:00
|
|
|
default: 8123,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'SSL',
|
|
|
|
name: 'ssl',
|
2021-10-07 14:07:56 -07:00
|
|
|
type: 'boolean',
|
2021-07-10 04:44:23 -07:00
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Access Token',
|
|
|
|
name: 'accessToken',
|
2021-10-07 14:07:56 -07:00
|
|
|
type: 'string',
|
2021-07-10 04:44:23 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|