author
int64
658
755k
date
stringdate
2012-06-12 08:34:29
2024-07-22 14:51:21
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
listlengths
1
16
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
748,234
09.01.2019 19:55:28
28,800
eaaadc3d0666350d6106008687febe81a76a0168
README update to include the need for Node-RED v0.19+
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "[![Buy me a coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://buymeacoff.ee/zachowj)\n-Various nodes to assist in setting up automation using [node-red](https://nodered.org/) co...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
README update to include the need for Node-RED v0.19+
748,234
17.01.2019 00:28:03
28,800
3154f79a5758c74967742e282660dac1decfbe74
Added the ability to use relative time with the get-history node
[ { "change_type": "MODIFY", "old_path": "nodes/get-history/get-history.html", "new_path": "nodes/get-history/get-history.html", "diff": "startdate: { value: \"\" },\nenddate: { value: \"\" },\nentityid: { value: \"\" },\n- entityidtype: { value: \"\" }\n+ entityidtype: { value: \"\" },\n+ useRelative...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
Added the ability to use relative time with the get-history node
748,234
17.01.2019 00:33:08
28,800
2004ef74fc91cd62d3e8c6877babe3e655a248d1
Fix http api so it returns empty string and not the response object when res.data is empty. Fixes Closes
[ { "change_type": "MODIFY", "old_path": "lib/ha-api.js", "new_path": "lib/ha-api.js", "diff": "@@ -119,7 +119,7 @@ class HaApi {\nreturn this.client\n.post(path, data)\n- .then(res => res.data || res)\n+ .then(res => res.data || '')\n.catch(err => {\ndebug(`POST: request errror: ${err.toString()}`);\...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
Fix http api so it returns empty string and not the response object when res.data is empty. Fixes #78 Closes #79
748,234
17.01.2019 00:36:26
28,800
1ef38fd0e5ef6eabaaf53b9d4d665fb8e96e455e
Slighty better error message for call-service node
[ { "change_type": "MODIFY", "old_path": "nodes/call-service/call-service.js", "new_path": "nodes/call-service/call-service.js", "diff": "@@ -133,14 +133,14 @@ module.exports = function(RED) {\nthis.send(message);\n})\n.catch(err => {\n- this.warn(\n- 'Error calling service, home assistant api error',...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
Slighty better error message for call-service node
748,234
17.01.2019 00:38:02
28,800
91c878159c24e91538625cae4177537382bb5298
Change the connect timeout for hass.io users so it doesn't bombard the proxy. Closes
[ { "change_type": "MODIFY", "old_path": "lib/ha-websocket.js", "new_path": "lib/ha-websocket.js", "diff": "@@ -313,13 +313,26 @@ class HaWebsocket extends EventEmitter {\nsocket.addEventListener('error', onClose);\n}\n- return new Promise((resolve, reject) =>\n+ return new Promise((resolve, reject) =...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
Change the connect timeout for hass.io users so it doesn't bombard the proxy. Closes #76
748,234
18.01.2019 12:50:22
28,800
83d945dccef151a551b15e5d18eda412cded0b58
Fixed poll-state node not waiting for getComparatorResult
[ { "change_type": "MODIFY", "old_path": "nodes/poll-state/poll-state.js", "new_path": "nodes/poll-state/poll-state.js", "diff": "@@ -110,12 +110,12 @@ module.exports = function(RED) {\nconst shouldHaltIfState =\nthis.nodeConfig.halt_if &&\n- this.getComparatorResult(\n+ (await this.getComparatorResul...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
Fixed poll-state node not waiting for getComparatorResult
748,234
18.01.2019 13:03:25
28,800
9343ffb56171cddeb60b85c84bf5e6bf33082dfd
fix for get-history relative time validation
[ { "change_type": "MODIFY", "old_path": "nodes/get-history/get-history.js", "new_path": "nodes/get-history/get-history.js", "diff": "@@ -28,7 +28,6 @@ module.exports = function(RED) {\nreturn yesterday.toISOString();\n},\nvalidation: {\n- haltOnFail: true,\nschema: Joi.date()\n.optional()\n.allow('')...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix for get-history relative time validation
748,234
18.01.2019 13:06:22
28,800
b7291d94c27c423570e6b92e5d4d188e59abfa3d
Version Bump to 0.6.1
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "{\n\"name\": \"node-red-contrib-home-assistant-websocket\",\n- \"version\": \"0.6.0\",\n+ \"version\": \"0.6.1\",\n\"lockfileVersion\": 1,\n\"requires\": true,\n\"dependencies\": {\n" }, { "...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
Version Bump to 0.6.1
748,234
18.01.2019 22:52:18
28,800
e29745be75746e4491e3143faa8b245ff722b640
build: Added standard-version to package.json Added standard-version config and script to package.json
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"docker-map\": \"docker-compose -f docker/docker-compose.mapped.yml\",\n\"clean\": \"npm run docker:down\",\n\"lint\": \"eslint .\",\n- \"lint:fix\": \"eslint . --fix\"\n+ \"lint:fix\": \"eslint . --fix\",\n...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
build: Added standard-version to package.json Added standard-version config and script to package.json
748,234
23.01.2019 07:53:42
28,800
f1a9ba70680a2308e4147a2075d1298db01d2dd3
style(get-history): Changed the icon
[ { "change_type": "MODIFY", "old_path": "nodes/get-history/get-history.html", "new_path": "nodes/get-history/get-history.html", "diff": "},\ninputs: 1,\noutputs: 1,\n- icon: \"timer.png\",\n+ icon: \"history.png\",\npaletteLabel: \"get history\",\nlabel: function() {\nif (this.name) {\n" }, { ...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
style(get-history): Changed the icon
748,234
24.01.2019 08:16:07
28,800
0707d7235d69de9dfc8192d4d95fd01ece47575d
feat(event-state): Added Only output on state change
[ { "change_type": "MODIFY", "old_path": "nodes/events-state-changed/events-state-changed.html", "new_path": "nodes/events-state-changed/events-state-changed.html", "diff": "haltifstate: { value: \"\" },\nhalt_if_type: {},\nhalt_if_compare: {},\n- outputs: { value: 1 }\n+ outputs: { value: 1 },\n+ out...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(event-state): Added Only output on state change
748,234
24.01.2019 08:17:50
28,800
64ba7e57322b08d64bb9a40473ed24a44c6e8496
refactor(event-state): Changed default filter type to exact
[ { "change_type": "MODIFY", "old_path": "nodes/events-state-changed/events-state-changed.html", "new_path": "nodes/events-state-changed/events-state-changed.html", "diff": "name: { value: \"\" },\nserver: { value: \"\", type: \"server\", required: true },\nentityidfilter: { value: \"\", required: tru...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor(event-state): Changed default filter type to exact
748,234
25.01.2019 05:07:10
28,800
66d8daf1616a1d7947344b784c57819d89eee662
fix: Added a check for valid server Check to make sure there's a valid server selected for current-state, get-entities, get-history, and render-template
[ { "change_type": "MODIFY", "old_path": "nodes/current-state/current-state.js", "new_path": "nodes/current-state/current-state.js", "diff": "@@ -43,6 +43,11 @@ module.exports = function(RED) {\nreturn { payload: {} };\n};\n+ if (this.nodeConfig.server === null) {\n+ this.node.error('No valid server s...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix: Added a check for valid server Check to make sure there's a valid server selected for current-state, get-entities, get-history, and render-template
748,234
25.01.2019 05:13:07
28,800
5c6e3c6ea91c4de851003582df238b7150e70ce0
chore: Preparation for using standard-version CHANGELOG
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "-# Changelog\n-\n-All notable changes to this project will be documented in this file.\n-\n## [0.6.1] 2019.1.18\n### Fixes\n" }, { "change_type": "MODIFY", "old_path": "package.json", "new_pat...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
chore: Preparation for using standard-version CHANGELOG
748,234
27.01.2019 15:04:31
28,800
0a51c5d27fd2160c94e55905cd626af99f2f82de
feat(current-state): Added customizable outputs for state and entity
[ { "change_type": "MODIFY", "old_path": "nodes/current-state/current-state.html", "new_path": "nodes/current-state/current-state.html", "diff": "defaults: {\nname: { value: \"\" },\nserver: { value: \"\", type: \"server\", required: true },\n+ outputs: { value: 1 },\nhalt_if: { value: \"\" },\nhalt_i...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(current-state): Added customizable outputs for state and entity
748,234
29.01.2019 22:07:21
28,800
99eafb79dfc6aace1bbb7434c576353ffc772a5d
refactor: Update node icons Update the node icons for the fire-event, current-state, and get-entities nodes
[ { "change_type": "MODIFY", "old_path": "nodes/current-state/current-state.html", "new_path": "nodes/current-state/current-state.html", "diff": "color: \"#52C0F2\",\ninputs: 1,\noutputs: 1,\n- icon: \"arrow-top-right.png\",\n+ icon: \"code.png\",\npaletteLabel: \"current state\",\nlabel: function() {...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor: Update node icons Update the node icons for the fire-event, current-state, and get-entities nodes
748,234
01.02.2019 16:18:52
28,800
6717972cff450ac29eae36835301895e3d740b58
feat(wait-until): New 'Wait Until' Node Closes Closes
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -92,6 +92,10 @@ Fetches HomeAssistant history on input\nAllows rendering of templates on input\n+### Wait Until - `websocket`\n+\n+When an input is received the node will wait until the condition is met or the t...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(wait-until): New 'Wait Until' Node Closes Closes #82
748,234
01.02.2019 19:18:31
28,800
8205236c5a9b4fc7564ebc0a1a85f2e7dc145ef3
fix: Fix for nodes to trigger on deploy Fix for trigger-state and event-state node to trigger when a node is deployed and just not when the server-config is deployed Closes FIXES
[ { "change_type": "MODIFY", "old_path": "nodes/events-state-changed/events-state-changed.js", "new_path": "nodes/events-state-changed/events-state-changed.js", "diff": "@@ -42,14 +42,19 @@ module.exports = function(RED) {\n});\nif (this.nodeConfig.outputinitially) {\n+ // Here for when the node is de...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix: Fix for nodes to trigger on deploy Fix for trigger-state and event-state node to trigger when a node is deployed and just not when the server-config is deployed Closes FIXES #80
748,234
01.02.2019 21:05:28
28,800
362761cd5b30697f14dba5c589ddbf1714b08012
build(scripts): Changed prerelease keyword
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"lint\": \"eslint .\",\n\"lint:fix\": \"eslint . --fix\",\n\"release\": \"standard-version\",\n- \"prerelease\": \"standard-version -p\"\n+ \"release:pre\": \"standard-version -p\"\n},\n\"repository\": {\n\"...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
build(scripts): Changed prerelease keyword
748,234
02.02.2019 10:02:27
28,800
c543c678ee8a750f00a445c0f5eba50ba6558bc4
refactor(current-state): Small fixes Added tooltip for the second output of the node. Fixed hmtl entity, and set override topic default to unchecked
[ { "change_type": "MODIFY", "old_path": "nodes/current-state/current-state.html", "new_path": "nodes/current-state/current-state.html", "diff": "color: \"#52C0F2\",\ninputs: 1,\noutputs: 1,\n+ outputLabels: [\"\", \"halt if\"],\nicon: \"code.png\",\npaletteLabel: \"current state\",\nlabel: function()...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor(current-state): Small fixes Added tooltip for the second output of the node. Fixed hmtl entity, and set override topic default to unchecked
748,234
02.02.2019 21:08:12
28,800
62e22fa4abc191b835e0a19c97e2d87192c3b4ed
fix(trigger-state): Fix to show the correct properties for constraints Fix to show the correct properties based on if 'This entity' or 'Entity ID' is selected
[ { "change_type": "MODIFY", "old_path": "nodes/trigger-state/trigger-state.html", "new_path": "nodes/trigger-state/trigger-state.html", "diff": "},\noneditprepare: function() {\n// Outputs List\n- let NODE = this;\n+ let node = this;\nconst NUM_DEFAULT_OUTPUTS = 2;\nconst $entityid = $(\"#node-input-...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix(trigger-state): Fix to show the correct properties for constraints Fix to show the correct properties based on if 'This entity' or 'Entity ID' is selected
748,234
03.02.2019 23:05:01
28,800
83018e944779208ce283361e4a7a58ea53953aca
fix(config-server): Removed needsPermission from static files This is not needed for static files because no sensitive information is stored there. Also fixes the ability to read static files when auth is enabled.
[ { "change_type": "MODIFY", "old_path": "nodes/config-server/config-server.js", "new_path": "nodes/config-server/config-server.js", "diff": "@@ -134,17 +134,15 @@ module.exports = function(RED) {\nhttpHandlers.getProperties.bind(this)\n);\n- const HTTP_STATIC_OPTS = {\n+ this.RED.httpAdmin.get('/home...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix(config-server): Removed needsPermission from static files This is not needed for static files because no sensitive information is stored there. Also fixes the ability to read static files when auth is enabled.
748,234
11.02.2019 16:59:13
28,800
8bd6e42a3a1783f0157d7e24ad24cff09a86aa20
fix(get-history): fix backwards compatibility for output location mit/3154f79a5758c74967742e282660dac1decfbe74#r32270616
[ { "change_type": "MODIFY", "old_path": "nodes/get-history/get-history.js", "new_path": "nodes/get-history/get-history.js", "diff": "@@ -135,6 +135,11 @@ module.exports = function(RED) {\nreturn null;\n}\n+ if (this.nodeConfig.output_location === undefined) {\n+ this.nodeConfig.output_location = 'pay...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix(get-history): fix backwards compatibility for output location https://github.com/zachowj/node-red-contrib-home-assistant-websocket/com mit/3154f79a5758c74967742e282660dac1decfbe74#r32270616
748,234
12.02.2019 11:15:29
28,800
c6343a90fbfe25de075f82e6d32cfbfdb8484e10
feat(wait-until): Added ability to check against current state Ability to check against current state and not wait for the state to change
[ { "change_type": "MODIFY", "old_path": "nodes/wait-until/wait-until.html", "new_path": "nodes/wait-until/wait-until.html", "diff": "timeout: { value: 0 },\ntimeoutUnits: { value: \"seconds\" },\nentityLocation: { value: \"data\" },\n- entityLocationType: { value: \"none\" }\n+ entityLocationType: { ...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(wait-until): Added ability to check against current state Ability to check against current state and not wait for the state to change
748,234
12.02.2019 21:03:11
28,800
38a16fbe37d2ae66aa42a7d3be1f2704403cd07f
fix(mustache-context): catch error thrown for invalid flow and global var
[ { "change_type": "MODIFY", "old_path": "lib/mustache-context.js", "new_path": "lib/mustache-context.js", "diff": "@@ -46,7 +46,9 @@ NodeContext.prototype.lookup = function(name) {\nconst field = context.field;\nconst target = this.nodeContext[type];\nif (target) {\n+ try {\nreturn target.get(field, ...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix(mustache-context): catch error thrown for invalid flow and global var
748,234
18.02.2019 18:01:50
28,800
97906a9f28ff53ec59db8cc10684b06ded482bd1
refactor(ha-http): Renamed ha-api to ha-http
[ { "change_type": "RENAME", "old_path": "lib/ha-api.js", "new_path": "lib/ha-http.js", "diff": "@@ -4,7 +4,7 @@ const https = require('https');\nconst utils = require('./utils');\nconst debug = require('debug')('home-assistant:api');\n-class HaApi {\n+class HaHttp {\nconstructor(config) {\nthis.confi...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor(ha-http): Renamed ha-api to ha-http
748,234
20.02.2019 03:56:02
28,800
7a10e3d04475f87ac2a5c5a0c8001959165bc829
docs(trigger-state): Added information for constraints & custom outputs Closes
[ { "change_type": "MODIFY", "old_path": "nodes/trigger-state/trigger-state.html", "new_path": "nodes/trigger-state/trigger-state.html", "diff": "<dt class=\"optional\">\n[payload|msg]<span class=\"property-type\">string|object</span>\n</dt>\n- <dd>If incoming payload or message is a string and equal ...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
docs(trigger-state): Added information for constraints & custom outputs Closes #86
748,234
20.02.2019 04:02:38
28,800
ef07e7ae907a5f565875d8aa4a2abf4a4653d13e
chore(packages): Updated mocha, eslint and ws
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "},\n\"chalk\": {\n\"version\": \"1.1.3\",\n- \"resolved\": \"https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz\",\n\"integrit...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
chore(packages): Updated mocha, eslint and ws
748,234
26.02.2019 13:57:27
28,800
11c440c214d8d509e005f262abf5a5de1e81d46b
feat: hass.io connection delay toggleable hass.io user now have the option to enable/disable the 5 second connection delay
[ { "change_type": "MODIFY", "old_path": "lib/ha-websocket.js", "new_path": "lib/ha-websocket.js", "diff": "@@ -316,7 +316,10 @@ class HaWebsocket extends EventEmitter {\nreturn new Promise((resolve, reject) => {\n// if hass.io, do a 5 second delay so it doesn't spam the hass.io proxy\n// https://gith...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat: hass.io connection delay toggleable hass.io user now have the option to enable/disable the 5 second connection delay
748,234
26.02.2019 14:05:45
28,800
b8c7df8401806de341777ebb0dee87472360d1fc
refactor: consolidated split messages into the base-node
[ { "change_type": "MODIFY", "old_path": "lib/base-node.js", "new_path": "lib/base-node.js", "diff": "@@ -122,6 +122,24 @@ class BaseNode {\nthis.node.send(...arguments);\n}\n+ sendSplit(message, data) {\n+ delete message._msgid;\n+ message.parts = {\n+ id: this.RED.util.generateId(),\n+ type: 'array'...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor: consolidated split messages into the base-node
748,234
26.02.2019 14:44:13
28,800
1dfd33ae62832590d955016ad09915f5f599ac91
refactor(mustache-context): Moved all mustache operations to seperate file
[ { "change_type": "MODIFY", "old_path": "lib/mustache-context.js", "new_path": "lib/mustache-context.js", "diff": "@@ -78,4 +78,13 @@ NodeContext.prototype.push = function push(view) {\n);\n};\n-module.exports = NodeContext;\n+function RenderTemplate(data, message, context, serverName) {\n+ return (d...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor(mustache-context): Moved all mustache operations to seperate file
748,234
27.02.2019 17:03:46
28,800
be85eac45707d42e06855311857029e3f9a7f295
chore(package): Updated coveralls and mocha for devDep
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "},\n\"strip-ansi\": {\n\"version\": \"3.0.1\",\n- \"resolved\": \"https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/strip-ansi/-/strip-ansi...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
chore(package): Updated coveralls and mocha for devDep
748,234
01.03.2019 22:27:17
28,800
635aa48defcde410c197ffcd7431efa96078c73f
refactor(call-service): Change default output location to none
[ { "change_type": "MODIFY", "old_path": "nodes/call-service/call-service.html", "new_path": "nodes/call-service/call-service.html", "diff": "},\nmergecontext: { value: null },\noutput_location: { value: \"payload\" },\n- output_location_type: { value: \"msg\" }\n+ output_location_type: { value: \"non...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor(call-service): Change default output location to none
748,234
07.03.2019 14:53:43
28,800
ed7341a83bdd9956533c3ce0583445e2671ec7fc
feat(api): New node for direct access to api New node to have direct access to home assistant api either by http or websocket
[ { "change_type": "MODIFY", "old_path": "lib/base-node.js", "new_path": "lib/base-node.js", "diff": "@@ -144,6 +144,29 @@ class BaseNode {\nthis.node.status(opts);\n}\n+ setStatusSuccess(text = 'Success') {\n+ this.status({\n+ fill: 'green',\n+ shape: 'dot',\n+ text: `${text} called at: ${this.getPre...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(api): New node for direct access to api New node to have direct access to home assistant api either by http or websocket
748,234
07.03.2019 16:12:45
28,800
ae8f728fa88eab5f0514875210620012637d607d
refactor: Refactor setStatus Refactor setStatus to setStatusSuccess, setStatusFailed and setStatusSending
[ { "change_type": "MODIFY", "old_path": "lib/base-node.js", "new_path": "lib/base-node.js", "diff": "@@ -148,7 +148,7 @@ class BaseNode {\nthis.status({\nfill: 'green',\nshape: 'dot',\n- text: `${text} called at: ${this.getPrettyDate()}`\n+ text: `${text} at: ${this.getPrettyDate()}`\n});\n}\n" }, ...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor: Refactor setStatus Refactor setStatus to setStatusSuccess, setStatusFailed and setStatusSending
748,234
07.03.2019 16:14:08
28,800
126f2271a87b0b6810e00210b5cc1bff68fe18ac
chore(api): fixed status success message
[ { "change_type": "MODIFY", "old_path": "nodes/api/api.js", "new_path": "nodes/api/api.js", "diff": "@@ -80,7 +80,7 @@ module.exports = function(RED) {\nreturn apiCall()\n.then(results => {\n- node.setStatusSuccess(config.protocol);\n+ node.setStatusSuccess(`${config.protocol} called`);\nconst contex...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
chore(api): fixed status success message
748,234
07.03.2019 20:05:47
28,800
44f75c0762c3d8b93470fb9175fe402f0da0aa11
feat(poll-state): Added Interval Units Added Interval Units and check for extra spaces around entity id
[ { "change_type": "MODIFY", "old_path": "nodes/poll-state/poll-state.html", "new_path": "nodes/poll-state/poll-state.html", "diff": "name: { value: \"\" },\nserver: { value: \"\", type: \"server\", required: true },\nupdateinterval: { value: \"10\", validate: v => !isNaN(v) },\n+ updateIntervalUnits:...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(poll-state): Added Interval Units Added Interval Units and check for extra spaces around entity id
748,234
07.03.2019 20:24:29
28,800
b46a4d50aeb2ad22464dc4edb0ba63b11562a440
feat(get-history): Add flatten option Instead of returning the data from home assistant ( array for each entity_id ) return one flattened array of one item per history entry
[ { "change_type": "MODIFY", "old_path": "nodes/get-history/get-history.html", "new_path": "nodes/get-history/get-history.html", "diff": "entityidtype: { value: \"\" },\nuseRelativeTime: { value: false },\nrelativeTime: { value: \"\" },\n+ flatten: { value: true },\noutput_type: { value: \"array\" },\...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(get-history): Add flatten option Instead of returning the data from home assistant ( array for each entity_id ) return one flattened array of one item per history entry
748,234
07.03.2019 21:59:19
28,800
4ee501e4bee3602470f3c1d019a6f107a28b4434
fix: Fix for checking valid entity id Fix for checking valid entity id in the poll-state and current-state nodes
[ { "change_type": "MODIFY", "old_path": "nodes/current-state/current-state.js", "new_path": "nodes/current-state/current-state.js", "diff": "@@ -59,7 +59,7 @@ module.exports = function(RED) {\n{},\nawait this.nodeConfig.server.homeAssistant.getStates(entity_id)\n);\n- if (!currentState)\n+ if (!curre...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix: Fix for checking valid entity id Fix for checking valid entity id in the poll-state and current-state nodes
748,234
07.03.2019 22:16:39
28,800
bd1decad2fafc7b49c5b54f4559ebe75049d8be5
refactor(api): Add failed status messages
[ { "change_type": "MODIFY", "old_path": "nodes/api/api.js", "new_path": "nodes/api/api.js", "diff": "@@ -41,11 +41,13 @@ module.exports = function(RED) {\nif (!path) {\nnode.error('HTTP request requires a valid path.');\n+ node.setStatusFailed();\nreturn;\n}\nif (!['get', 'post'].includes(config.meth...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor(api): Add failed status messages
748,234
07.03.2019 23:33:52
28,800
8f869060033b39108ddb04196295a30cb9a1e0d1
feat(call-service): domain and service fields accept templates
[ { "change_type": "MODIFY", "old_path": "nodes/call-service/call-service.html", "new_path": "nodes/call-service/call-service.html", "diff": "$data\n.typedInput({\n- types: [\"json\"]\n+ types: [\n+ {\n+ value: \"json\",\n+ label: \"JSON\",\n+ icon: \"red/images/typedInput/json.png\",\n+ validate: fun...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(call-service): domain and service fields accept templates
748,234
07.03.2019 23:37:11
28,800
2fa74004fc655ec8d803ae368cf1ac4f50c2e767
docs(wait-until): document compare against current state
[ { "change_type": "MODIFY", "old_path": "nodes/wait-until/wait-until.html", "new_path": "nodes/wait-until/wait-until.html", "diff": "<dt>Entity Location <span class=\"property-type optional\">object</span></dt>\n<dd>The entity object can also be pass with the message object.</dd>\n+\n+ <dt>Check agai...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
docs(wait-until): document compare against current state
748,234
08.03.2019 00:14:08
28,800
1d2bde8a3936f9649b3b7054d515e18a2b7d99ef
chore(api): Changed icon image
[ { "change_type": "MODIFY", "old_path": "nodes/api/api.html", "new_path": "nodes/api/api.html", "diff": "color: \"#52C0F2\",\ninputs: 1,\noutputs: 1,\n- icon: \"server.png\",\n+ icon: \"plane.png\",\npaletteLabel: \"API\",\nlabel: function() {\nreturn this.name || \"API\";\n" }, { "change_typ...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
chore(api): Changed icon image
748,234
08.03.2019 16:52:33
28,800
e1ce911422469ba21a154915fa1cdbeecbff3bcd
feat: Access to msg, flow and global context Able to access flow and global context from the state-change, poll-state nodes. Able to access msg, flow and global context from current-state, wait-until and get-entities nodes.
[ { "change_type": "MODIFY", "old_path": "lib/base-node.js", "new_path": "lib/base-node.js", "diff": "@@ -277,11 +277,21 @@ class BaseNode {\n}\n}\n+ getContextValue(location, property, message) {\n+ if (message && location === 'msg') {\n+ return this.RED.util.getMessageProperty(message, property);\n+...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat: Access to msg, flow and global context Able to access flow and global context from the state-change, poll-state nodes. Able to access msg, flow and global context from current-state, wait-until and get-entities nodes.
748,234
08.03.2019 19:16:56
28,800
61f9768bee671bf1898a12bb05a50656f2654b9f
fix(poll-state): Set default value for updateIntervalUnits
[ { "change_type": "MODIFY", "old_path": "nodes/poll-state/poll-state.html", "new_path": "nodes/poll-state/poll-state.html", "diff": "$(\"#node-input-halt_if_compare\").val(\"is\");\n}\n+ if (this.updateIntervalUnits === undefined) {\n+ $(\"#node-input-updateIntervalUnits\").val(\"seconds\");\n+ }\n+\...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix(poll-state): Set default value for updateIntervalUnits
748,234
08.03.2019 19:35:50
28,800
1a250b91b1793b34ee39d30686d57dd66bee67fa
fix(haltif): Fix to include contexts on other operators
[ { "change_type": "MODIFY", "old_path": "nodes/_static/haltif.js", "new_path": "nodes/_static/haltif.js", "diff": "@@ -38,8 +38,13 @@ window.setupHaltIf = function(\n$compare.change(function(e) {\nlet types = defaultTypes;\n+ let extraTypes = ['flow', 'global'];\n$help.hide();\n+ if (defaultTypes.inc...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix(haltif): Fix to include contexts on other operators
748,234
08.03.2019 23:24:21
28,800
bcacc43e75a9ccd2021c1492e2471af466015544
chore: Add note of breaking change to v0.8.0
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -31,6 +31,10 @@ All notable changes to this project will be documented in this file. See [standa\n# [0.8.0](https://github.com/zachowj/node-red-contrib-home-assistant-websocket/compare/v0.7.1...v0.8.0) (20...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
chore: Add note of breaking change to v0.8.0
748,234
09.03.2019 00:10:04
28,800
b8f4c3f6a4b703d42791c9885a4a86cff5d12ac3
chore(call-service): Added back in missing work to status message
[ { "change_type": "MODIFY", "old_path": "nodes/call-service/call-service.js", "new_path": "nodes/call-service/call-service.js", "diff": "@@ -108,7 +108,7 @@ module.exports = function(RED) {\nreturn this.nodeConfig.server.websocket\n.callService(apiDomain, apiService, apiData)\n.then(() => {\n- this.s...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
chore(call-service): Added back in missing work to status message
748,234
10.03.2019 14:57:48
25,200
16a9b814bf5ea46a2eb054faa6fcf21f02e45632
refactor(call-service): Revert to use the original json editor
[ { "change_type": "MODIFY", "old_path": "nodes/call-service/call-service.html", "new_path": "nodes/call-service/call-service.html", "diff": "$data\n.typedInput({\n- types: [\n- {\n- value: \"json\",\n- label: \"JSON\",\n- icon: \"red/images/typedInput/json.png\",\n- validate: function(v) {\n- if (!v)...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor(call-service): Revert to use the original json editor
748,234
10.03.2019 15:00:32
25,200
7296cd20cdef03d87b5e814afeef031cac78bfd5
feat(api): Allows input to set/override config values Closes
[ { "change_type": "MODIFY", "old_path": "nodes/api/api.html", "new_path": "nodes/api/api.html", "diff": "$(\"#node-input-data\")\n.typedInput({\n- types: [\n- {\n- value: \"json\",\n- label: \"JSON\",\n- icon: \"red/images/typedInput/json.png\",\n- validate: function(v) {\n- if (!v) return true;\n- t...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(api): Allows input to set/override config values Closes #100
748,234
13.03.2019 00:29:01
25,200
0eb85fb10693ccf6d19c5376549e9d1c150e0d52
refactor(api): Factored out saving context to setContextValue
[ { "change_type": "MODIFY", "old_path": "lib/base-node.js", "new_path": "lib/base-node.js", "diff": "@@ -286,6 +286,25 @@ class BaseNode {\nreturn this.context()[location].get(contextKey.key, contextKey.store);\n}\n+ setContextValue(val, location, property, message) {\n+ const contextKey = this.RED.u...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor(api): Factored out saving context to setContextValue
748,234
13.03.2019 00:31:24
25,200
0be2bbe6295d0cd52b29521a6a2fb86e2e2d4c35
refactor: Added Joi labels
[ { "change_type": "MODIFY", "old_path": "nodes/get-history/get-history.js", "new_path": "nodes/get-history/get-history.js", "diff": "@@ -32,6 +32,7 @@ module.exports = function(RED) {\nschema: Joi.date()\n.optional()\n.allow('')\n+ .label('startdate')\n}\n},\nenddate: {\n@@ -41,6 +42,7 @@ module.expo...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor: Added Joi labels
748,234
16.03.2019 00:10:35
25,200
dfe4aade0decd676256e7e38dc2d7dd51025a6dc
refactor: Changed to setContextValue in all locations
[ { "change_type": "MODIFY", "old_path": "nodes/call-service/call-service.js", "new_path": "nodes/call-service/call-service.js", "diff": "@@ -36,9 +36,10 @@ module.exports = function(RED) {\n}\n}\nonInput({ message }) {\n+ const config = this.nodeConfig;\nif (\n- this.nodeConfig.server.websocket.conne...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor: Changed to setContextValue in all locations
748,234
16.03.2019 19:23:56
25,200
e6ee48e4ce56fb2433b45ecd03e39a67fb7f2698
docs: Removed need for docker v8 image as it is default
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -14,7 +14,7 @@ Project is going through active development and as such will probably have a few\nThis assumes you have [Node-RED](https://nodered.org) already installed and working, if you need to install Node-R...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
docs: Removed need for docker v8 image as it is default
748,234
16.03.2019 21:49:17
25,200
db2966f024bae862d4191bd6a4501f690938ebe2
ci: Remove greenkeeper config
[ { "change_type": "DELETE", "old_path": "greenkeeper.json", "new_path": null, "diff": "-{\n- \"groups\": {\n- \"default\": {\n- \"packages\": [\n- \"docker/node-red/root-fs/app/package.json\",\n- \"docker/node-red/root-fs/data/package.json\",\n- \"package.json\"\n- ]\n- }\n- }\n-}\n" } ]
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
ci: Remove greenkeeper config
748,234
18.03.2019 16:10:05
25,200
306115129b73359c0b12f243f4485071b75ecbb2
feat(get-entities): Added total count of entities as an output option
[ { "change_type": "MODIFY", "old_path": "nodes/get-entities/get-entities.html", "new_path": "nodes/get-entities/get-entities.html", "diff": "$(\"#output_empty_results\").show();\n$(\"#output_location\").show();\nbreak;\n+ case \"count\":\n+ $(\"#output_location\").show();\n+ break;\ncase \"random\":\...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(get-entities): Added total count of entities as an output option
748,234
21.03.2019 00:58:46
25,200
04728a45475eff78ca7d66ff09e7058595e2248f
refactor: Removed alias for selectn
[ { "change_type": "MODIFY", "old_path": "lib/base-node.js", "new_path": "lib/base-node.js", "diff": "@@ -10,7 +10,6 @@ const utils = {\nselectn,\nmerge,\nJoi,\n- reach: (path, obj) => selectn(path, obj),\nformatDate: date => dateFns.format(date, 'ddd, h:mm:ss A'),\ntoCamelCase(str) {\nreturn str.repl...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor: Removed alias for selectn
748,234
25.03.2019 05:58:48
25,200
93a64713b2f48e7dd199db17325381cf8735f6fb
refactor(api): Added check for connection to server
[ { "change_type": "MODIFY", "old_path": "nodes/api/api.js", "new_path": "nodes/api/api.js", "diff": "@@ -80,6 +80,17 @@ module.exports = function(RED) {\nonInput({ message, parsedMessage }) {\nconst node = this;\nconst config = node.nodeConfig;\n+\n+ if (\n+ config.server.websocket.connectionState !=...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor(api): Added check for connection to server
748,234
28.03.2019 21:05:47
25,200
66d504df85b0513ec85ffeb02af252e6b2f1cf2d
feat(render-template): Added custom outputs
[ { "change_type": "MODIFY", "old_path": "nodes/render-template/render-template.html", "new_path": "nodes/render-template/render-template.html", "diff": "<script type=\"text/javascript\">\n(function() {\n- RED.nodes.registerType('api-render-template', {\n- category: 'home_assistant',\n- color: '#52C0F...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(render-template): Added custom outputs
748,234
29.03.2019 10:00:40
25,200
3f24b1f8ad074bcef38396b4603822510b95e5c2
refactor(ha-websocket): Simplified Reconnect time, removed unused getUser
[ { "change_type": "MODIFY", "old_path": "lib/ha-websocket.js", "new_path": "lib/ha-websocket.js", "diff": "@@ -40,7 +40,7 @@ class HaWebsocket extends EventEmitter {\ntry {\nthis.client = await homeassistant.createConnection({\n- auth: this,\n+ self: this,\ncreateSocket: this.createSocket\n});\n} cat...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor(ha-websocket): Simplified Reconnect time, removed unused getUser
748,234
29.03.2019 10:25:54
25,200
ece176b88eb53808376c31220df98c02fe599ef1
feat: Able to reference entity in comparators
[ { "change_type": "MODIFY", "old_path": "lib/base-node.js", "new_path": "lib/base-node.js", "diff": "@@ -303,7 +303,7 @@ class BaseNode {\ncomparatorValue,\nactualValue,\ncomparatorValueDatatype,\n- message\n+ { message, entity, prevEntity }\n) {\nif (\ncomparatorType === 'includes' ||\n@@ -322,6 +32...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat: Able to reference entity in comparators
748,234
29.03.2019 15:20:36
25,200
a3d6f0f7c6ce911fd2c33fdfb1916be8da47e278
refactor: Rebranded 'Halt if state' to 'If state'
[ { "change_type": "MODIFY", "old_path": "nodes/current-state/current-state.html", "new_path": "nodes/current-state/current-state.html", "diff": "</div>\n<div class=\"form-row\">\n- <label for=\"node-input-halt_if_compare\"><i class=\"fa fa-hand-paper-o\"></i> Halt if State</label>\n+ <label for=\"nod...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor: Rebranded 'Halt if state' to 'If state'
748,234
30.03.2019 19:17:32
25,200
ccf9fbc60c71add734ee97ca46ae7ea39fa0a36e
feat(events-all): Will includes HA client events Events all node will now receive HA client events: connecting, connected, disconnected, and error under event_type home_assistant_client Closes
[ { "change_type": "MODIFY", "old_path": "nodes/events-all/events-all.html", "new_path": "nodes/events-all/events-all.html", "diff": "<script type=\"text/javascript\">\n- RED.nodes.registerType('server-events', {\n- category: 'home_assistant',\n- color: '#038FC7',\n+ RED.nodes.registerType(\"server-ev...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(events-all): Will includes HA client events Events all node will now receive HA client events: connecting, connected, disconnected, and error under event_type home_assistant_client Closes #75
748,234
30.03.2019 20:35:02
25,200
b8097b861a96a3c49d21618dd231389acaa62cfa
feat(events-all): Added states_loaded and services_loaded Event:all node will now also receive states_loaded and services_loaded in the event_type of home_assistant_client
[ { "change_type": "MODIFY", "old_path": "nodes/events-all/events-all.html", "new_path": "nodes/events-all/events-all.html", "diff": "<li>connected</li>\n<li>disconnected</li>\n<li>error</li>\n+ <li>states_loaded</li>\n+ <li>services_loaded</li>\n</ul>\nStructure\n<dl class=\"message-properties\">\n<d...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(events-all): Added states_loaded and services_loaded Event:all node will now also receive states_loaded and services_loaded in the event_type of home_assistant_client
748,234
30.03.2019 21:32:41
25,200
d6deccb0ae3b687a87d1f2bd5f020fba6baa428a
refactor(events-all): Added status message for loaded events
[ { "change_type": "MODIFY", "old_path": "nodes/events-all/events-all.js", "new_path": "nodes/events-all/events-all.js", "diff": "@@ -40,6 +40,10 @@ module.exports = function(RED) {\npayload: type,\ndata: data\n});\n+\n+ if (type === 'states_loaded' || type === 'services_loaded') {\n+ this.setStatusSu...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor(events-all): Added status message for loaded events
748,234
30.03.2019 22:08:51
25,200
3fdfa27f2015a2510d76db18341442c40540aafc
fix(wait-until): fixed scope for setContextValue
[ { "change_type": "MODIFY", "old_path": "nodes/wait-until/wait-until.js", "new_path": "nodes/wait-until/wait-until.js", "diff": "@@ -126,7 +126,7 @@ module.exports = function(RED) {\nstate.timeSinceChangedMs =\nDate.now() - new Date(state.last_changed).getTime();\n- this.setContextValue(\n+ node.setC...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix(wait-until): fixed scope for setContextValue
748,234
02.04.2019 17:11:49
25,200
9305c7d33f039ada2e3ff14dcb8fd5f2a8aa5d28
feat(api): Output type added to http api: binary, json,txt
[ { "change_type": "MODIFY", "old_path": "lib/ha-http.js", "new_path": "lib/ha-http.js", "diff": "@@ -111,12 +111,14 @@ class HaHttp {\n}\nrenderTemplate(templateString) {\n- return this._post('template', { template: templateString });\n+ return this._post('template', { template: templateString }, 'te...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(api): Output type added to http api: binary, json,txt
748,234
02.04.2019 17:50:57
25,200
3a0d8b0bb70cebaaf3583aff5bcf1980770df2be
fix(call-service): Fix for having undefined output location and type
[ { "change_type": "MODIFY", "old_path": "nodes/call-service/call-service.js", "new_path": "nodes/call-service/call-service.js", "diff": "@@ -111,8 +111,8 @@ module.exports = function(RED) {\nthis.setContextValue(\nmsgPayload,\n- config.output_location_type,\n- config.output_location,\n+ config.output...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix(call-service): Fix for having undefined output location and type
748,234
03.04.2019 20:00:54
25,200
b8cf46ef6cf029cdc0f50b2fe4f0c51fa3607fc3
build: Updated dep
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "},\n\"devDependencies\": {\n\"coveralls\": \"^3.0.3\",\n- \"eslint\": \"^5.15.3\",\n+ \"eslint\": \"^5.16.0\",\n\"eslint-config-prettier\": \"^4.1.0\",\n\"eslint-config-standard\": \"^12.0.0\",\n\"eslint-plug...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
build: Updated dep
748,234
03.04.2019 20:09:47
25,200
5380869d12de389cfff577c841729cafb15de9d5
build: fixed package-lock
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "},\n\"strip-ansi\": {\n\"version\": \"3.0.1\",\n- \"resolved\": \"https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz\",\n+ \"resolved\": \"http://registry.npmjs.org/strip-ansi/-/strip-ansi...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
build: fixed package-lock
748,234
06.04.2019 16:53:08
25,200
67857b5bc3d05e1c5aa91f7bc86f24d5c34128bf
fix(events-all): only send home_assistant_client events when needed
[ { "change_type": "MODIFY", "old_path": "nodes/events-all/events-all.js", "new_path": "nodes/events-all/events-all.js", "diff": "@@ -14,6 +14,10 @@ module.exports = function(RED) {\nevent: 'ha_events:' + (this.nodeConfig.event_type || 'all'),\nhandler: this.onHaEventsAll.bind(this)\n});\n+ if (\n+ !t...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix(events-all): only send home_assistant_client events when needed
748,234
06.04.2019 17:04:47
25,200
9af48070a0177711763bfc5fed4dde65547a2059
fix(ha-websocket): Reset states/servicesLoaded on disconnect
[ { "change_type": "MODIFY", "old_path": "lib/ha-websocket.js", "new_path": "lib/ha-websocket.js", "diff": "@@ -173,6 +173,9 @@ class HaWebsocket extends EventEmitter {\nthis.emit('ha_events:error', err);\n}\n+ this.servicesLoaded = false;\n+ this.statesLoaded = false;\n+\nif (this.client && this.clie...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix(ha-websocket): Reset states/servicesLoaded on disconnect
748,234
24.04.2019 20:03:44
25,200
200641901711aaa3b8191cf2c52103046ce4a528
docs: Updated Contributing guide
[ { "change_type": "MODIFY", "old_path": "CONTRIBUTING.md", "new_path": "CONTRIBUTING.md", "diff": "@@ -6,7 +6,7 @@ Following these guidelines helps to communicate that you respect the time of the\n## Using the issue tracker\n-The issue tracker is the preferred channel for [bug reports](#bugs), [featu...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
docs: Updated Contributing guide
748,234
24.04.2019 20:05:44
25,200
1b54c94d895d50f0aa517fe52de2e4b9ba2b6be6
refactor(mustache-context): changed states.* to entity.* from templates
[ { "change_type": "MODIFY", "old_path": "lib/mustache-context.js", "new_path": "lib/mustache-context.js", "diff": "@@ -53,7 +53,8 @@ NodeContext.prototype.lookup = function(name) {\n}\n// try state entities\n- const match = /^states\\.(\\w+\\.\\w+)(?:\\.(.+))?/.exec(name);\n+ // version 0.10.3 change...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor(mustache-context): changed states.* to entity.* from templates
748,234
24.04.2019 20:08:57
25,200
49b9c26ca4669b06ea30f271e1eaee415795d323
fix(base-node): fix for using in/not in with context of msg/flow
[ { "change_type": "MODIFY", "old_path": "lib/base-node.js", "new_path": "lib/base-node.js", "diff": "@@ -305,12 +305,6 @@ class BaseNode {\ncomparatorValueDatatype,\n{ message, entity, prevEntity }\n) {\n- if (\n- comparatorType === 'includes' ||\n- comparatorType === 'does_not_include'\n- ) {\n- com...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix(base-node): fix for using in/not in with context of msg/flow
748,234
24.04.2019 20:10:11
25,200
d2c79297c060bce66b682698f2d0eb85768fe9cb
fix: show msg for current state not and not others
[ { "change_type": "MODIFY", "old_path": "nodes/_static/haltif.js", "new_path": "nodes/_static/haltif.js", "diff": "@@ -32,7 +32,7 @@ window.setupHaltIf = function(input, compare, nodeName) {\nentityType\n];\n- if (nodeName === 'currentState') {\n+ if (nodeName !== 'currentState') {\ndefaultTypes.spli...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix: show msg for current state not and not others
748,234
24.04.2019 20:11:03
25,200
b8adf622a5e3a8d7c6c8f776fd56df348d7758ab
docs(call-service): Docs about states to entity change
[ { "change_type": "MODIFY", "old_path": "nodes/call-service/call-service.html", "new_path": "nodes/call-service/call-service.html", "diff": "</dl>\n<h3>Templates</h3>\n- <p>You can use templates in the <code>Domain</code>, <code>Service</code>, <code>Entity Id</code>, and <code>data</code> fields. Wh...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
docs(call-service): Docs about states to entity change
748,234
30.04.2019 22:40:02
25,200
9217e0953119077c0d046b5ad91e4da03dd92b36
feat(current-state): able to override config entity id from payload This might be a small breaking change if your current-state node if receiving a payload with entity_id set Closes
[ { "change_type": "MODIFY", "old_path": "nodes/current-state/current-state.html", "new_path": "nodes/current-state/current-state.html", "diff": "color: \"#52C0F2\",\ninputs: 1,\noutputs: 1,\n- outputLabels: [\"\", \"halt if\"],\n+ outputLabels: [\"\", \"if state\"],\nicon: \"code.png\",\npaletteLabel...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(current-state): able to override config entity id from payload This might be a small breaking change if your current-state node if receiving a payload with entity_id set Closes #115
748,234
01.05.2019 16:21:20
25,200
beb556a2270fdf8d187b38f5a05ebecefa3cd94b
fix: use relative path for haltif.js for hassio ingress
[ { "change_type": "MODIFY", "old_path": "nodes/current-state/current-state.html", "new_path": "nodes/current-state/current-state.html", "diff": "$(\"#node-input-halt_if_compare\").val(\"is\");\n}\n- $.getScript(\"/homeassistant/static/haltif.js\", function() {\n+ $.getScript(\"homeassistant/static/ha...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix: use relative path for haltif.js for hassio ingress
748,234
04.05.2019 12:04:53
25,200
4b098111885264a47a467cef3620f7481308d545
fix(mustache-context): Fix for using both states/entity for templates
[ { "change_type": "MODIFY", "old_path": "lib/mustache-context.js", "new_path": "lib/mustache-context.js", "diff": "@@ -54,7 +54,7 @@ NodeContext.prototype.lookup = function(name) {\n// try state entities\n// version 0.10.3 changed from states.domain.entity to entity.d.e\n- const match = /^[states|ent...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix(mustache-context): Fix for using both states/entity for templates
748,234
14.05.2019 03:33:57
25,200
a193360beaa544e0b09b2ec8c87dc6d24ad1c203
refactor: Changed the loading of ifState.js Moved ifState.js to load via the script tag and moved common.js and ifState.js to use revealing module pattern
[ { "change_type": "MODIFY", "old_path": "nodes/_static/common.css", "new_path": "nodes/_static/common.css", "diff": "#versionUpdate strong {\npadding-right: 5px;\n}\n+\n+#errorIfState {\n+ text-align: center;\n+ padding: 5px;\n+ margin-top: 5px;\n+}\n" }, { "change_type": "MODIFY", "old_p...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor: Changed the loading of ifState.js Moved ifState.js to load via the script tag and moved common.js and ifState.js to use revealing module pattern
748,234
15.05.2019 21:24:03
25,200
e032289cd5c99ff19080a5e167787989ff2b990d
refactor: lower case filenames
[ { "change_type": "MODIFY", "old_path": "nodes/events-state-changed/events-state-changed.html", "new_path": "nodes/events-state-changed/events-state-changed.html", "diff": "<link rel=\"stylesheet\" type=\"text/css\" href=\"homeassistant/static/common.css\" />\n<script src=\"homeassistant/static/commo...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor: lower case filenames
748,234
18.05.2019 00:31:14
25,200
c8b2e0973d137a53e343435158fddd5855875a1e
fix: Update autocomplete on server change in ui Moved server and autocomplete logic to common.js. Fixed issue when changes the server in the UI it wouldn't update the autocomplete entities.
[ { "change_type": "MODIFY", "old_path": "nodes/_static/common.js", "new_path": "nodes/_static/common.js", "diff": "@@ -17,7 +17,6 @@ var nodeVersion = (function($) {\nreturn `https://github.com/zachowj/node-red-contrib-home-assistant-websocket/wiki/${name}`;\n}\n- // eslint-disable-next-line no-unuse...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix: Update autocomplete on server change in ui Moved server and autocomplete logic to common.js. Fixed issue when changes the server in the UI it wouldn't update the autocomplete entities.
748,234
19.05.2019 19:10:27
25,200
3df9c180b9eb1f65870a6d12ec5faca60a1ffa77
feat(trigger-state): More options for custom outputs msg.payload can now be customized instead of the whole message. There is now the option to select the output format. Templates can be used within the custom output. The default context for the template is event data (msg.data)
[ { "change_type": "MODIFY", "old_path": "nodes/trigger-state/trigger-state.html", "new_path": "nodes/trigger-state/trigger-state.html", "diff": "messageType: $(\"#output-message-type\"),\nmessageValue: $(\"#output-message-value\"),\n+ messageValueType: $(\"#output-message-value-type\"),\ncomparatorPr...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(trigger-state): More options for custom outputs msg.payload can now be customized instead of the whole message. There is now the option to select the output format. Templates can be used within the custom output. The default context for the template is event data (msg.data)
748,234
19.05.2019 19:35:33
25,200
8bbca276924edd14855183f2ce78a4dd0afa7db7
chore(dep): Updated Dependencies
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "}\n},\n\"@babel/runtime\": {\n- \"version\": \"7.0.0\",\n- \"resolved\": \"https://registry.npmjs.org/@babel/runtime/-/runtime-7.0.0.tgz\",\n- \"integrity\": \"sha512-7hGhzlcmg01CvH1EHdSPVXYX1aJ8KCE...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
chore(dep): Updated Dependencies
748,234
21.05.2019 17:43:37
25,200
6a3376b3230a261595971918334bfef58bd28a8b
refactor(wait-until): entity id and property are now required fields
[ { "change_type": "MODIFY", "old_path": "nodes/wait-until/wait-until.html", "new_path": "nodes/wait-until/wait-until.html", "diff": "name: { value: \"\" },\nserver: { value: \"\", type: \"server\", required: true },\noutputs: { value: 1 },\n- entityId: { value: \"\" },\n- property: { value: \"\" },\n...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor(wait-until): entity id and property are now required fields
748,234
22.05.2019 05:17:16
25,200
861c8e8e1558f1fc5b3aa6efdec633ec8f2ef9fc
fix: fixed error reporting so catch node could be used Closes
[ { "change_type": "MODIFY", "old_path": "nodes/call-service/call-service.js", "new_path": "nodes/call-service/call-service.js", "diff": "@@ -84,7 +84,8 @@ module.exports = function(RED) {\nthis.error(\n`call service node is missing api \"${\n!apiDomain ? 'domain' : 'service'\n- }\" property, not foun...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix: fixed error reporting so catch node could be used Closes #119
748,234
22.05.2019 14:43:01
25,200
89346e2b31689c6d821e0c2ff17a7cad0685abbc
fix: more error reporting fixes
[ { "change_type": "MODIFY", "old_path": "nodes/api/api.js", "new_path": "nodes/api/api.js", "diff": "@@ -97,7 +97,10 @@ module.exports = function(RED) {\nconfig.server.websocket.CONNECTED\n) {\nthis.setStatusFailed('No Connection');\n- this.warn('API call attempted without connection to server.');\n+...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix: more error reporting fixes
748,234
22.05.2019 20:40:39
25,200
06245702d9622e4e418d53e727d36ba78981dc3a
feat(call-service): Ability to use alt tags for mustache templates Able to use alternative mustache tags for the data field. Mustache Tags become <% %> This allows the use of jinja2 templates within the data field property to be passed onto HA. Closes
[ { "change_type": "MODIFY", "old_path": "lib/mustache-context.js", "new_path": "lib/mustache-context.js", "diff": "@@ -79,13 +79,22 @@ NodeContext.prototype.push = function push(view) {\n);\n};\n-function RenderTemplate(data, message, context, serverName) {\n- return (data || '').indexOf('{{') !== -1...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(call-service): Ability to use alt tags for mustache templates Able to use alternative mustache tags for the data field. Mustache Tags become <% %> This allows the use of jinja2 templates within the data field property to be passed onto HA. Closes #117
748,234
23.05.2019 05:24:09
25,200
44720726b67b247071aba1c69f8bd16a7b3781ee
fix(config-server): trying to get global namespace before it created
[ { "change_type": "MODIFY", "old_path": "nodes/config-server/config-server.js", "new_path": "nodes/config-server/config-server.js", "diff": "@@ -212,6 +212,7 @@ module.exports = function(RED) {\ngetFromContext(key) {\nlet haCtx = this.context().global.get('homeassistant');\n+ haCtx = haCtx || {};\nre...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix(config-server): trying to get global namespace before it created
748,234
25.05.2019 05:32:03
25,200
390257b7c5424b14a55a90278024cb9d1878f011
chore: Added Type: Feature to exempt stale labels
[ { "change_type": "MODIFY", "old_path": ".github/stale.yml", "new_path": ".github/stale.yml", "diff": "@@ -7,6 +7,7 @@ exemptLabels:\n- \"Type: Bug\"\n- \"Type: Refactoring\"\n- \"Type: Documentation\"\n+ - \"Type: Feature\"\n# Label to use when marking an issue as stale\nstaleLabel: stale\n# Comment...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
chore: Added Type: Feature to exempt stale labels
748,234
26.05.2019 11:29:45
25,200
6785542582fdaa79ee01f37ed080ab6a6148c434
style(call-server): Moved alt tags div location
[ { "change_type": "MODIFY", "old_path": "nodes/call-service/call-service.html", "new_path": "nodes/call-service/call-service.html", "diff": "<input type=\"text\" id=\"node-input-data\" />\n</div>\n+ <div class=\"form-row checkboxOption\">\n+ <input type=\"checkbox\" id=\"node-input-mustacheAltTags\">...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
style(call-server): Moved alt tags div location
748,234
27.05.2019 03:06:50
25,200
78a27074a7273add0d4bee901dc5843c00e3abfd
fix: css fixes for 'if state' text boxes
[ { "change_type": "MODIFY", "old_path": "nodes/_static/ifstate.js", "new_path": "nodes/_static/ifstate.js", "diff": "@@ -8,12 +8,11 @@ var ifState = (function($) {\nif (!$input.hasClass('red-ui-typedInput')) return;\nlet width =\n- $input.parent('div').width() -\n- $('#node-input-halt_if_compare').wi...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix: css fixes for 'if state' text boxes
748,234
27.05.2019 04:52:22
25,200
f91f023e8b25c0bf8797aaadde7d86e91921c4f7
refactor(fire-event): moved input validation to Joi
[ { "change_type": "MODIFY", "old_path": "nodes/fire-event/fire-event.js", "new_path": "nodes/fire-event/fire-event.js", "diff": "+const Joi = require('@hapi/joi');\nconst BaseNode = require('../../lib/base-node');\nconst RenderTemplate = require('../../lib/mustache-context');\nmodule.exports = functi...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor(fire-event): moved input validation to Joi
748,234
29.05.2019 07:23:41
25,200
9cf6b78c7dea3da07fef6b66c9d40e36e979fc9b
refactor: Renaming weboscket and http client
[ { "change_type": "MODIFY", "old_path": "lib/base-node.js", "new_path": "lib/base-node.js", "diff": "@@ -174,14 +174,14 @@ class BaseNode {\nsetConnectionStatus(state, additionalText) {\nlet connectionStatus;\nswitch (state) {\n- case this.eventsClient.CONNECTING:\n+ case this.websocketClient.CONNECT...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor: Renaming weboscket and http client
748,234
29.05.2019 17:02:36
25,200
4cabac0742df833848f58befaa5c2e7a31c10f97
refactor: more version indicators added version-aware output labels for event-state, poll-state and current-state nodes added custom color text for nodes who's version is not current
[ { "change_type": "MODIFY", "old_path": "nodes/_static/common.css", "new_path": "nodes/_static/common.css", "diff": "width: auto;\nmargin-right: 20px;\n}\n+\n+.node_label_legacy {\n+ fill: #fdfd96;\n+ stroke-width: 0;\n+ font-size: 14px;\n+ pointer-events: none;\n+ -webkit-touch-callout: none;\n+ -we...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor: more version indicators - added version-aware output labels for event-state, poll-state and current-state nodes - added custom color text for nodes who's version is not current
748,234
30.05.2019 18:32:28
25,200
92b4ef8b49c9031c25d351f07f6071b78b0c5026
chore: Added node.js version to bug report template
[ { "change_type": "MODIFY", "old_path": ".github/ISSUE_TEMPLATE/Bug_report.md", "new_path": ".github/ISSUE_TEMPLATE/Bug_report.md", "diff": "@@ -26,6 +26,7 @@ If applicable, add an example of exported json of a flow exhibiting the issue to\n**Environment (please complete the following information):**...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
chore: Added node.js version to bug report template
748,234
30.05.2019 21:01:36
25,200
d3751d664bbc033f5573c9d2ce32d2fc7874eca4
refactor: Make sure node version is a number
[ { "change_type": "MODIFY", "old_path": "nodes/_static/common.js", "new_path": "nodes/_static/common.js", "diff": "@@ -38,7 +38,7 @@ var nodeVersion = (function($) {\nfunction ifStateLabels(index) {\nif (this.halt_if || this.haltifstate) {\n- if (this.version === 0 || this.version === undefined) {\n+...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
refactor: Make sure node version is a number
748,234
31.05.2019 14:49:19
25,200
9d46441db938c636d2c929062d9f4c9dd70b74b2
feat(current-state): Added ability to block input overrides to config
[ { "change_type": "MODIFY", "old_path": "nodes/current-state/current-state.html", "new_path": "nodes/current-state/current-state.html", "diff": "state_location: { value: \"payload\" },\noverride_payload: { value: \"msg\" }, // state location type\nentity_location: { value: \"data\" },\n- override_dat...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
feat(current-state): Added ability to block input overrides to config
748,234
31.05.2019 16:39:19
25,200
22c645f209c67b40be74464f35ccfb8492f2a376
fix: css change for node label
[ { "change_type": "MODIFY", "old_path": "nodes/_static/common.css", "new_path": "nodes/_static/common.css", "diff": "pointer-events: none;\n-webkit-touch-callout: none;\n-webkit-user-select: none;\n- user-select: none;\n- khtml-user-select: none;\n+ -khtml-user-select: none;\n-moz-user-select: none;\...
TypeScript
MIT License
zachowj/node-red-contrib-home-assistant-websocket
fix: css change for node label