n8n/packages/nodes-base/credentials/HomeAssistantApi.credentials.ts
Ricardo Espinoza 477b3598ea
Add Home AssistantIO node (#1974)
*  Add Home Assistant io node

* Implement continueOnFail

* Add Camera Proxy resource

* Clean up

* Minor improvements

* Remove 'Io' from the node name & code

* Fix generic functions naming

*  Improvements

* Apply review changes & fix minor bugs

* Reduce nesting for additional attributes

* Minor changes

*  Minor improvements and deactivate "Event" resource

Co-authored-by: dali <servfrdali@yahoo.fr>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-07-10 13:44:23 +02:00

37 lines
697 B
TypeScript

import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class HomeAssistantApi implements ICredentialType {
name = 'homeAssistantApi';
displayName = 'Home Assistant API';
documentationUrl = 'homeAssistant';
properties = [
{
displayName: 'Host',
name: 'host',
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Port',
name: 'port',
type: 'number' as NodePropertyTypes,
default: 8123,
},
{
displayName: 'SSL',
name: 'ssl',
type: 'boolean' as NodePropertyTypes,
default: false,
},
{
displayName: 'Access Token',
name: 'accessToken',
type: 'string' as NodePropertyTypes,
default: '',
},
];
}