smart-nodes 0.4.15-beta → 0.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,153 +1,146 @@
1
- # Changelog
2
-
3
- ## Version 0.3.28:
4
-
5
- - Added this changlog file.
6
- - Separate values for shutter_complex node for up and down times.
7
- (Open each node and save it, to use the new times. This should be done before the version 0.4.0 is released.)
8
- - For the following nodes you can choose to have one or two outputs (Could be a **breaking change**, please check your nodes).
9
-
10
- - Logic
11
- - Compare
12
- - Hysteresis
13
-
14
- - You can now separately declare the messages that should be sent by the following nodes (Could be a **breaking change**, please check your nodes).
15
-
16
- - Logic
17
- - Compare
18
- - Hysteresis
19
-
20
- - You can choose for the following nodes if they should send the result all the time or only if the result changed.
21
- - Logic
22
- - Compare
23
- - Hysteresis
24
-
25
- ## Version 0.3.29:
26
-
27
- - Fixed that hysteresis sends only on change, when separate outputs are enabled.
28
- - Added a definable short up/down time for the shutter control.
29
- - Fixed calculation of the time from string.
30
-
31
- ## Version 0.3.30:
32
-
33
- - Added counter example.
34
-
35
- ## Version 0.3.31:
36
-
37
- - Fixed logic node - invert output option.
38
-
39
- ## Version 0.3.32:
40
-
41
- - Fixed hysteresis node - always change result.
42
-
43
- ## Version 0.3.33:
44
-
45
- - Fixed hysteresis node - init send.
46
-
47
- ## Version 0.3.34:
48
-
49
- - Fixed hysteresis node - init send.
50
- - Fixed light node - status.
51
-
52
- ## Version 0.3.35:
53
-
54
- - Fixed saving last message object as a clone of the original message, because it could be changed later.
55
-
56
- ## Version 0.3.36:
57
-
58
- - Fixed mixing-valve - call of toFixed function.
59
-
60
- ## Version 0.3.37:
61
-
62
- - Fixed using typedInput with node-red v4.
63
- - Started to add English translations.
64
-
65
- ## Version 0.4.0:
66
-
67
- - Fully added English and German translations.
68
- - Light control: Added Alarm off action
69
- - Shutter complex control: Added Alarm off action
70
- - Restructured the complete code
71
- - Improved status texts
72
- - **breaking change** (soon): Changed some node internal values. Please open and save the following node types:
73
-
74
- - Central node
75
- - Compare node
76
- - Counter node
77
- - Hysteresis node
78
- - Shutter complex node
79
- - Statistic node
80
-
81
- After saving the nodes, the values are automatically converted to the new one.
82
- This conversion will be removed in version 0.5.0.
83
-
84
- ## Version 0.4.1:
85
-
86
- - Show only up to 2 decimal places in node status text.
87
- - Improved warn messages shown in console.
88
-
89
- ## Version 0.4.2:
90
-
91
- - Fixed design of property page of forwarder node.
92
- - Corrected hysteresis to send original message.
93
-
94
- ## Version 0.4.3:
95
-
96
- - Corrected hysteresis (again) to send original message.
97
-
98
- ## Version 0.4.4:
99
-
100
- - Fixed the delay node to not restart the time if "only on change" option is enabled.
101
-
102
- ## Version 0.4.5:
103
-
104
- - Fixed the status of hysteresis node.
105
-
106
- ## Version 0.4.6:
107
-
108
- - Fixed the status of hysteresis node.
109
-
110
- ## Version 0.4.7:
111
-
112
- - Added blink topic to light node.
113
-
114
- ## Version 0.4.8:
115
-
116
- - Fixed reading values in heating-curve node.
117
-
118
- ## Version 0.4.9:
119
-
120
- - Fixed reading config values for offset and slope in heating-curve node.
121
-
122
- ## Version 0.4.10:
123
-
124
- - **breaking change** (soon): Added common and separate outputs to multi press node.
125
- Please open node config and save it to make sure it will work in later versions.
126
- - Added common and separate outputs to long press node.
127
-
128
- ## Version 0.4.11:
129
-
130
- - Fixed long press default outputs.
131
-
132
- ## Version 0.4.12:
133
-
134
- - Fixed text exec node.
135
-
136
- ## Version 0.4.13:
137
-
138
- - Fixed text exec node again.
139
-
140
- ## Version 0.4.14:
141
-
142
- - Removed log outputs.
143
-
144
- ## Version 0.5.0:
145
-
146
- - Added new option to define node output format.
147
-
148
- - Simple: Compatible with knx_ultimate nodes.
149
- - HomeAssistant: Outputs messages that can directly be sent to home assistant entities via action nodes.
150
-
151
- **Important Action node settings:**
152
-
153
- - Disable option `Block input overrides`, so the smart nodes can control the actions and the sended data.
1
+ # Changelog
2
+
3
+ ## Version 0.3.28:
4
+
5
+ - Added this changlog file.
6
+ - Separate values for shutter_complex node for up and down times.
7
+ (Open each node and save it, to use the new times. This should be done before the version 0.4.0 is released.)
8
+ - For the following nodes you can choose to have one or two outputs (Could be a **breaking change**, please check your nodes).
9
+
10
+ - Logic
11
+ - Compare
12
+ - Hysteresis
13
+
14
+ - You can now separately declare the messages that should be sent by the following nodes (Could be a **breaking change**, please check your nodes).
15
+
16
+ - Logic
17
+ - Compare
18
+ - Hysteresis
19
+
20
+ - You can choose for the following nodes if they should send the result all the time or only if the result changed.
21
+ - Logic
22
+ - Compare
23
+ - Hysteresis
24
+
25
+ ## Version 0.3.29:
26
+
27
+ - Fixed that hysteresis sends only on change, when separate outputs are enabled.
28
+ - Added a definable short up/down time for the shutter control.
29
+ - Fixed calculation of the time from string.
30
+
31
+ ## Version 0.3.30:
32
+
33
+ - Added counter example.
34
+
35
+ ## Version 0.3.31:
36
+
37
+ - Fixed logic node - invert output option.
38
+
39
+ ## Version 0.3.32:
40
+
41
+ - Fixed hysteresis node - always change result.
42
+
43
+ ## Version 0.3.33:
44
+
45
+ - Fixed hysteresis node - init send.
46
+
47
+ ## Version 0.3.34:
48
+
49
+ - Fixed hysteresis node - init send.
50
+ - Fixed light node - status.
51
+
52
+ ## Version 0.3.35:
53
+
54
+ - Fixed saving last message object as a clone of the original message, because it could be changed later.
55
+
56
+ ## Version 0.3.36:
57
+
58
+ - Fixed mixing-valve - call of toFixed function.
59
+
60
+ ## Version 0.3.37:
61
+
62
+ - Fixed using typedInput with node-red v4.
63
+ - Started to add English translations.
64
+
65
+ ## Version 0.4.0:
66
+
67
+ - Fully added English and German translations.
68
+ - Light control: Added Alarm off action
69
+ - Shutter complex control: Added Alarm off action
70
+ - Restructured the complete code
71
+ - Improved status texts
72
+ - **breaking change** (soon): Changed some node internal values. Please open and save the following node types:
73
+
74
+ - Central node
75
+ - Compare node
76
+ - Counter node
77
+ - Hysteresis node
78
+ - Shutter complex node
79
+ - Statistic node
80
+
81
+ After saving the nodes, the values are automatically converted to the new one.
82
+ This conversion will be removed in version 0.5.0.
83
+
84
+ ## Version 0.4.1:
85
+
86
+ - Show only up to 2 decimal places in node status text.
87
+ - Improved warn messages shown in console.
88
+
89
+ ## Version 0.4.2:
90
+
91
+ - Fixed design of property page of forwarder node.
92
+ - Corrected hysteresis to send original message.
93
+
94
+ ## Version 0.4.3:
95
+
96
+ - Corrected hysteresis (again) to send original message.
97
+
98
+ ## Version 0.4.4:
99
+
100
+ - Fixed the delay node to not restart the time if "only on change" option is enabled.
101
+
102
+ ## Version 0.4.5:
103
+
104
+ - Fixed the status of hysteresis node.
105
+
106
+ ## Version 0.4.6:
107
+
108
+ - Fixed the status of hysteresis node.
109
+
110
+ ## Version 0.4.7:
111
+
112
+ - Added blink topic to light node.
113
+
114
+ ## Version 0.4.8:
115
+
116
+ - Fixed reading values in heating-curve node.
117
+
118
+ ## Version 0.4.9:
119
+
120
+ - Fixed reading config values for offset and slope in heating-curve node.
121
+
122
+ ## Version 0.4.10:
123
+
124
+ - **breaking change** (soon): Added common and separate outputs to multi press node.
125
+ Please open node config and save it to make sure it will work in later versions.
126
+ - Added common and separate outputs to long press node.
127
+
128
+ ## Version 0.4.11:
129
+
130
+ - Fixed long press default outputs.
131
+
132
+ ## Version 0.4.12:
133
+
134
+ - Fixed text exec node.
135
+
136
+ ## Version 0.4.13:
137
+
138
+ - Fixed text exec node again.
139
+
140
+ ## Version 0.4.14:
141
+
142
+ - Removed log outputs.
143
+
144
+ ## Version 0.4.15:
145
+
146
+ - Reverted some tests.
@@ -1,29 +1,29 @@
1
- {
2
- "light": {
3
- "ui": {
4
- "name": "Name",
5
- "text": "Text",
6
- "controlled_by_words": "Diese Node kann über die eingegebenen Wörter gesteuert werden. Mehrere Wörter werden durch ein Komma getrennt.",
7
-
8
- "data_type": "Datentyp",
9
- "simple": "Einfaches Format",
10
- "home_assistant": "HA Action Format",
11
-
12
- "max_time_on": "Max Zeit Ein",
13
- "alarm_on": "Alarm Ein",
14
- "alarm_off": "Alarm Aus",
15
- "controlled_by_central": "Dieser Baustein wird von folgenden Zentralbausteinen gesteuert:",
16
-
17
- "milliseconds": "Millisekunden",
18
- "seconds": "Sekunden",
19
- "minutes": "Minuten",
20
- "hours": "Stunden",
21
-
22
- "no_action": "Keine Aktion",
23
- "turn_on": "Einschalten",
24
- "turn_off": "Ausschalten",
25
- "last_state": "Letzen Zustand",
26
- "last_sended_state": "Zuletzt gesendeten Zustand"
27
- }
28
- }
29
- }
1
+ {
2
+ "light": {
3
+ "ui": {
4
+ "name": "Name",
5
+ "text": "Text",
6
+ "controlled_by_words": "Diese Node kann über die eingegebenen Wörter gesteuert werden. Mehrere Wörter werden durch ein Komma getrennt.",
7
+
8
+ "data_type": "Datentyp",
9
+ "simple": "Einfaches Format",
10
+ "home_assistant": "HA Action Format",
11
+
12
+ "max_time_on": "Max Zeit Ein",
13
+ "alarm_on": "Alarm Ein",
14
+ "alarm_off": "Alarm Aus",
15
+ "controlled_by_central": "Dieser Baustein wird von folgenden Zentralbausteinen gesteuert:",
16
+
17
+ "milliseconds": "Millisekunden",
18
+ "seconds": "Sekunden",
19
+ "minutes": "Minuten",
20
+ "hours": "Stunden",
21
+
22
+ "no_action": "Keine Aktion",
23
+ "turn_on": "Einschalten",
24
+ "turn_off": "Ausschalten",
25
+ "last_state": "Letzen Zustand",
26
+ "last_sended_state": "Zuletzt gesendeten Zustand"
27
+ }
28
+ }
29
+ }
@@ -1,29 +1,29 @@
1
- {
2
- "light": {
3
- "ui": {
4
- "name": "Name",
5
- "text": "Text",
6
- "controlled_by_words": "This node can be controlled using the words entered. Multiple words are separated by a comma.",
7
-
8
- "data_type": "Data type",
9
- "simple": "Simple format",
10
- "home_assistant": "HA Action format",
11
-
12
- "max_time_on": "Max time on",
13
- "alarm_on": "Alarm on",
14
- "alarm_off": "Alarm off",
15
- "controlled_by_central": "This block is controlled by the following central blocks:",
16
-
17
- "milliseconds": "Milliseconds",
18
- "seconds": "Seconds",
19
- "minutes": "Minutes",
20
- "hours": "Hours",
21
-
22
- "no_action": "No action",
23
- "turn_on": "Turn on",
24
- "turn_off": "Turn off",
25
- "last_state": "Last state",
26
- "last_sended_state": "Last sent state"
27
- }
28
- }
29
- }
1
+ {
2
+ "light": {
3
+ "ui": {
4
+ "name": "Name",
5
+ "text": "Text",
6
+ "controlled_by_words": "This node can be controlled using the words entered. Multiple words are separated by a comma.",
7
+
8
+ "data_type": "Data type",
9
+ "simple": "Simple format",
10
+ "home_assistant": "HA Action format",
11
+
12
+ "max_time_on": "Max time on",
13
+ "alarm_on": "Alarm on",
14
+ "alarm_off": "Alarm off",
15
+ "controlled_by_central": "This block is controlled by the following central blocks:",
16
+
17
+ "milliseconds": "Milliseconds",
18
+ "seconds": "Seconds",
19
+ "minutes": "Minutes",
20
+ "hours": "Hours",
21
+
22
+ "no_action": "No action",
23
+ "turn_on": "Turn on",
24
+ "turn_off": "Turn off",
25
+ "last_state": "Last state",
26
+ "last_sended_state": "Last sent state"
27
+ }
28
+ }
29
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smart-nodes",
3
- "version": "0.4.15-beta",
3
+ "version": "0.4.15",
4
4
  "description": "Smart Nodes",
5
5
  "keywords": [
6
6
  "node-red",
@@ -1,26 +1,26 @@
1
- {
2
- "scene": {
3
- "ui": {
4
- "name": "Name",
5
- "text": "Text",
6
- "controlled_by_words": "Diese Node kann über die eingegebenen Wörter gesteuert werden. Mehrere Wörter werden durch ein Komma getrennt.",
7
-
8
- "data_type": "Datentyp",
9
- "simple": "Einfaches Format",
10
- "home_assistant": "HA Action Format",
11
-
12
- "time_on": "Zeit Ein",
13
- "controlled_by_central": "Dieser Baustein wird von folgenden Zentralbausteinen gesteuert:",
14
-
15
- "outputs": "Ausgänge",
16
- "scenes": "Szenen",
17
- "links": "Links",
18
-
19
- "milliseconds": "Millisekunden",
20
- "seconds": "Sekunden",
21
- "minutes": "Minuten",
22
- "hours": "Stunden"
23
-
24
- }
25
- }
26
- }
1
+ {
2
+ "scene": {
3
+ "ui": {
4
+ "name": "Name",
5
+ "text": "Text",
6
+ "controlled_by_words": "Diese Node kann über die eingegebenen Wörter gesteuert werden. Mehrere Wörter werden durch ein Komma getrennt.",
7
+
8
+ "data_type": "Datentyp",
9
+ "simple": "Einfaches Format",
10
+ "home_assistant": "HA Action Format",
11
+
12
+ "time_on": "Zeit Ein",
13
+ "controlled_by_central": "Dieser Baustein wird von folgenden Zentralbausteinen gesteuert:",
14
+
15
+ "outputs": "Ausgänge",
16
+ "scenes": "Szenen",
17
+ "links": "Links",
18
+
19
+ "milliseconds": "Millisekunden",
20
+ "seconds": "Sekunden",
21
+ "minutes": "Minuten",
22
+ "hours": "Stunden"
23
+
24
+ }
25
+ }
26
+ }
@@ -1,25 +1,25 @@
1
- {
2
- "scene": {
3
- "ui": {
4
- "name": "Name",
5
- "text": "Text",
6
- "controlled_by_words": "This node can be controlled using the words entered. Multiple words are separated by a comma.",
7
-
8
- "data_type": "Data type",
9
- "simple": "Simple format",
10
- "home_assistant": "HA Action format",
11
-
12
- "time_on": "Time On",
13
- "controlled_by_central": "This block is controlled by the following central blocks:",
14
-
15
- "outputs": "Outputs",
16
- "scenes": "Scenes",
17
- "links": "Links",
18
-
19
- "milliseconds": "Milliseconds",
20
- "seconds": "Seconds",
21
- "minutes": "Minutes",
22
- "hours": "Hours"
23
- }
24
- }
25
- }
1
+ {
2
+ "scene": {
3
+ "ui": {
4
+ "name": "Name",
5
+ "text": "Text",
6
+ "controlled_by_words": "This node can be controlled using the words entered. Multiple words are separated by a comma.",
7
+
8
+ "data_type": "Data type",
9
+ "simple": "Simple format",
10
+ "home_assistant": "HA Action format",
11
+
12
+ "time_on": "Time On",
13
+ "controlled_by_central": "This block is controlled by the following central blocks:",
14
+
15
+ "outputs": "Outputs",
16
+ "scenes": "Scenes",
17
+ "links": "Links",
18
+
19
+ "milliseconds": "Milliseconds",
20
+ "seconds": "Seconds",
21
+ "minutes": "Minutes",
22
+ "hours": "Hours"
23
+ }
24
+ }
25
+ }
@@ -1,16 +1,16 @@
1
- {
2
- "shutter": {
3
- "ui": {
4
- "name": "Name",
5
- "text": "Text",
6
- "controlled_by_words": "Diese Node kann über die eingegebenen Wörter gesteuert werden. Mehrere Wörter werden durch ein Komma getrennt.",
7
-
8
- "data_type": "Datentyp",
9
- "simple": "Einfaches Format",
10
- "home_assistant": "HA Action Format",
11
-
12
- "time_short": "Zeit kurz",
13
- "controlled_by_central": "Dieser Baustein wird von folgenden Zentralbausteinen gesteuert:"
14
- }
15
- }
16
- }
1
+ {
2
+ "shutter": {
3
+ "ui": {
4
+ "name": "Name",
5
+ "text": "Text",
6
+ "controlled_by_words": "Diese Node kann über die eingegebenen Wörter gesteuert werden. Mehrere Wörter werden durch ein Komma getrennt.",
7
+
8
+ "data_type": "Datentyp",
9
+ "simple": "Einfaches Format",
10
+ "home_assistant": "HA Action Format",
11
+
12
+ "time_short": "Zeit kurz",
13
+ "controlled_by_central": "Dieser Baustein wird von folgenden Zentralbausteinen gesteuert:"
14
+ }
15
+ }
16
+ }
@@ -1,16 +1,16 @@
1
- {
2
- "shutter": {
3
- "ui": {
4
- "name": "Name",
5
- "text": "Text",
6
- "controlled_by_words": "This node can be controlled using the words entered. Multiple words are separated by a comma.",
7
-
8
- "data_type": "Data type",
9
- "simple": "Simple format",
10
- "home_assistant": "HA Action format",
11
-
12
- "time_short": "Time short",
13
- "controlled_by_central": "This module is controlled by the following central modules:"
14
- }
15
- }
16
- }
1
+ {
2
+ "shutter": {
3
+ "ui": {
4
+ "name": "Name",
5
+ "text": "Text",
6
+ "controlled_by_words": "This node can be controlled using the words entered. Multiple words are separated by a comma.",
7
+
8
+ "data_type": "Data type",
9
+ "simple": "Simple format",
10
+ "home_assistant": "HA Action format",
11
+
12
+ "time_short": "Time short",
13
+ "controlled_by_central": "This module is controlled by the following central modules:"
14
+ }
15
+ }
16
+ }
@@ -1,25 +1,25 @@
1
- {
2
- "shutter": {
3
- "ui": {
4
- "name": "Name",
5
- "text": "Text",
6
- "controlled_by_words": "Diese Node kann über die eingegebenen Wörter gesteuert werden. Mehrere Wörter werden durch ein Komma getrennt.",
7
-
8
- "data_type": "Datentyp",
9
- "simple": "Einfaches Format",
10
- "home_assistant": "HA Action Format",
11
-
12
- "time_up": "Zeit auf",
13
- "time_down": "Zeit ab",
14
- "pause_change": "Pause Wechsel",
15
- "alarm_on": "Alarm Ein",
16
- "alarm_off": "Alarm Aus",
17
- "controlled_by_central": "Dieser Baustein wird von folgenden Zentralbausteinen gesteuert:",
18
-
19
- "no_action": "Keine Aktion",
20
- "up": "Hoch / Öffnen",
21
- "down": "Runter / Schließen",
22
- "last_position": "Letze Position"
23
- }
24
- }
25
- }
1
+ {
2
+ "shutter": {
3
+ "ui": {
4
+ "name": "Name",
5
+ "text": "Text",
6
+ "controlled_by_words": "Diese Node kann über die eingegebenen Wörter gesteuert werden. Mehrere Wörter werden durch ein Komma getrennt.",
7
+
8
+ "data_type": "Datentyp",
9
+ "simple": "Einfaches Format",
10
+ "home_assistant": "HA Action Format",
11
+
12
+ "time_up": "Zeit auf",
13
+ "time_down": "Zeit ab",
14
+ "pause_change": "Pause Wechsel",
15
+ "alarm_on": "Alarm Ein",
16
+ "alarm_off": "Alarm Aus",
17
+ "controlled_by_central": "Dieser Baustein wird von folgenden Zentralbausteinen gesteuert:",
18
+
19
+ "no_action": "Keine Aktion",
20
+ "up": "Hoch / Öffnen",
21
+ "down": "Runter / Schließen",
22
+ "last_position": "Letze Position"
23
+ }
24
+ }
25
+ }
@@ -1,25 +1,25 @@
1
- {
2
- "shutter": {
3
- "ui": {
4
- "name": "Name",
5
- "text": "Text",
6
- "controlled_by_words": "This node can be controlled using the words entered. Multiple words are separated by a comma.",
7
-
8
- "data_type": "Data type",
9
- "simple": "Simple format",
10
- "home_assistant": "HA Action format",
11
-
12
- "time_up": "Time up",
13
- "time_down": "Time down",
14
- "pause_change": "Pause change",
15
- "alarm_on": "Alarm On",
16
- "alarm_off": "Alarm Off",
17
- "controlled_by_central": "This module is controlled by the following central modules:",
18
-
19
- "no_action": "No action",
20
- "up": "Up / Open",
21
- "down": "Down / Close",
22
- "last_position": "Last position"
23
- }
24
- }
25
- }
1
+ {
2
+ "shutter": {
3
+ "ui": {
4
+ "name": "Name",
5
+ "text": "Text",
6
+ "controlled_by_words": "This node can be controlled using the words entered. Multiple words are separated by a comma.",
7
+
8
+ "data_type": "Data type",
9
+ "simple": "Simple format",
10
+ "home_assistant": "HA Action format",
11
+
12
+ "time_up": "Time up",
13
+ "time_down": "Time down",
14
+ "pause_change": "Pause change",
15
+ "alarm_on": "Alarm On",
16
+ "alarm_off": "Alarm Off",
17
+ "controlled_by_central": "This module is controlled by the following central modules:",
18
+
19
+ "no_action": "No action",
20
+ "up": "Up / Open",
21
+ "down": "Down / Close",
22
+ "last_position": "Last position"
23
+ }
24
+ }
25
+ }
@@ -140,7 +140,6 @@
140
140
  name: { value: "" },
141
141
  exec_text_names: { value: "" },
142
142
  data_type: { value: "SIMPLE" }, // SIMPLE || HOMEASSISTANT
143
- outputs: { value: 3 },
144
143
  max_time: { value: 60 },
145
144
  max_time_up: { value: 60 },
146
145
  max_time_down: { value: 60 },
@@ -156,7 +155,7 @@
156
155
  if (this.data_type == "SIMPLE")
157
156
  return ["Up", "Down", "Status Position"][index];
158
157
 
159
- return ["HA Shutter", "HA State Position"][index];
158
+ return ["HA Up", "HA Down", "HA Status Position"][index];
160
159
  },
161
160
  icon: "font-awesome/fa-align-justify",
162
161
  label: function ()
@@ -181,9 +180,6 @@
181
180
  { value: "HOMEASSISTANT", label: node._("shutter.ui.home_assistant") }
182
181
  ],
183
182
  }],
184
- }).on("change", function (event, type, value)
185
- {
186
- node.outputs = value == "SIMPLE" ? 3 : 2;
187
183
  });
188
184
 
189
185
  $("#node-input-max_time_up")
@@ -572,7 +572,7 @@ module.exports = function (RED)
572
572
  break;
573
573
 
574
574
  case "HOMEASSISTANT":
575
- data = [{ payload: { action: "cover.open_cover" } }, { payload: { action: "number.set_value", data: { "value": parseInt(node_settings.last_position * 2.55, 10) } } }];
575
+ data = [{ payload: { action: "homeassistant.turn_on" } }, { payload: { action: "homeassistant.turn_off" } }, { payload: { action: "number.set_value", data: { "value": node_settings.last_position } } }];
576
576
  break;
577
577
 
578
578
  default:
@@ -596,7 +596,7 @@ module.exports = function (RED)
596
596
  break;
597
597
 
598
598
  case "HOMEASSISTANT":
599
- data = [{ payload: { action: "cover.close_cover" } }, { payload: { action: "number.set_value", data: { "value": parseInt(node_settings.last_position * 2.55, 10) } } }];
599
+ data = [{ payload: { action: "homeassistant.turn_off" } }, { payload: { action: "homeassistant.turn_on" } }, { payload: { action: "number.set_value", data: { "value": node_settings.last_position } } }];
600
600
  break;
601
601
 
602
602
  default:
@@ -620,7 +620,7 @@ module.exports = function (RED)
620
620
  break;
621
621
 
622
622
  case "HOMEASSISTANT":
623
- data = [{ payload: { action: "cover.stop_cover" } }, { payload: { action: "number.set_value", data: { "value": parseInt(node_settings.last_position * 2.55, 10) } } }];
623
+ data = [{ payload: { action: "homeassistant.turn_off" } }, { payload: { action: "homeassistant.turn_off" } }, { payload: { action: "number.set_value", data: { "value": node_settings.last_position } } }];
624
624
  break;
625
625
 
626
626
  default:
@@ -645,7 +645,7 @@ module.exports = function (RED)
645
645
  break;
646
646
 
647
647
  case "HOMEASSISTANT":
648
- data = [null, { payload: { action: "number.set_value", data: { "value": parseInt(node_settings.last_position * 2.55, 10) } } }];
648
+ data = [null, null, { payload: { action: "number.set_value", data: { "value": node_settings.last_position } } }];
649
649
  break;
650
650
 
651
651
  default: