node-red-contrib-alice 1.0.1 → 1.0.4

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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # NodeRed Home (node-red-contrib-alice)
2
2
 
3
+ **NodeRed Home** (node-red-contrib-alice) - это бесплатный сервис который позволит, в несколько простых шагов, подключить любые ваши устройства заведенные в Node-RED к умному дому от Яндекса и управлять ими с помощью голосового помощника Алиса.
4
+
3
5
  [![platform](https://img.shields.io/badge/platform-Node--RED-red?logo=nodered)](https://nodered.org)
4
6
  [![Min Node Version](https://img.shields.io/node/v/node-red-contrib-alice.svg)](https://nodejs.org/en/)
5
7
  ![Repo size](https://img.shields.io/github/repo-size/efa2000/node-red-contrib-alice)
@@ -8,11 +10,8 @@
8
10
  ![GitHub last commit](https://img.shields.io/github/last-commit/efa2000/node-red-contrib-alice/master)
9
11
  ![NPM Total Downloads](https://img.shields.io/npm/dt/node-red-contrib-alice.svg)
10
12
  ![NPM Downloads per month](https://img.shields.io/npm/dm/node-red-contrib-alice)
11
- [![issues](https://img.shields.io/github/issues/efa2000/node-red-contrib-alice?logo=github)](https://github.com/efa2000/node-red-contrib-alice/issues)
12
13
 
13
- ## ВАЖНО !!!! с 28-го марта 2022 г. в связи с необходимостью перехода на новую версию, временно приостанавливается работа сервиса
14
-
15
- **NodeRed Home** (node-red-contrib-alice) - это бесплатный сервис который позволит, в несколько простых шагов, подключить любые ваши устройства заведенные в Node-RED к умному дому от Яндекса и управлять ими с помощью голосового помощника Алиса.
14
+ #### ВАЖНО !!!! В связи с необходимостью перезда и обновления сервиса, с 28-го марта его работа была преостановлена, до 11-го апреля (возможно раньше) будет запущенна общедоступная новая версия Для тех кто оформил добровольную подписку доступен ранний доступ к новой версии. Инструкция по переходу здесь. [https://boosty.to/efa2000/posts/8c64ea4d-949a-4d18-b9c2-ecea3c1229e8](https://boosty.to/efa2000/posts/8c64ea4d-949a-4d18-b9c2-ecea3c1229e8?share=post_link)
16
15
 
17
16
  #### Этот некоммерческий проект, но Вы можете добровльно поддержать его развитие оформив подписку [https://boosty.to/efa2000](https://boosty.to/efa2000)
18
17
 
@@ -12,6 +12,13 @@ function AliceSensor(config){
12
12
  this.instance = config.instance;
13
13
  this.initState = false;
14
14
  this.value;
15
+ let curentState= {
16
+ type:this.stype,
17
+ state:{
18
+ instance: this.instance,
19
+ value: 0
20
+ }
21
+ };
15
22
 
16
23
  this.status({fill:"red",shape:"dot",text:"offline"});
17
24
 
package/nodes/alice.html CHANGED
@@ -88,10 +88,10 @@
88
88
  <label for="node-config-input-id">ID</label>
89
89
  <input type="text" id="node-config-input-id" disabled>
90
90
  </div>
91
- <div class="form-row">
92
- <label for="node-config-input-password">Password</label>
93
- <input type="password" id="node-config-input-password" disabled>
94
- </div>
91
+ <!-- <div class="form-row" style="visibility: hidden;">
92
+ <label for="node-config-input-password">Password</label> -->
93
+ <input type="hidden" id="node-config-input-password" disabled>
94
+ <!-- </div> -->
95
95
  <div class="form-row">
96
96
  <label for="node-config-input-token">Token</label>
97
97
  <input type="password" id="node-config-input-token" disabled>
package/nodes/alice.js CHANGED
@@ -51,7 +51,7 @@ module.exports = function(RED) {
51
51
  this.debug("Yandex IOT client reconnecting ...");
52
52
  });
53
53
  mqttClient.on("error",(err)=>{
54
- this.debug("Yandex IOT client Error: "+ err.message);
54
+ this.error("Yandex IOT client Error: "+ err.message);
55
55
  this.emit('offline');
56
56
  });
57
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-alice",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "alice.js",
6
6
  "scripts": {