2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2021-07-10 04:44:23 -07:00
|
|
|
|
|
|
|
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: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|