Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart) Topic is solved
Moderator: leecollings
Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
Dear friends.
I try make configuration my air conditioners according link from plugin page (EwpeSmart Air Conditioners via MQTT (Gree Smart)).
Done configuration mosquito and done definition hardware.
But npm start is not work.
Are anybody lanch it or give some information about this issue.
Thanks and regards.
I try make configuration my air conditioners according link from plugin page (EwpeSmart Air Conditioners via MQTT (Gree Smart)).
Done configuration mosquito and done definition hardware.
But npm start is not work.
Are anybody lanch it or give some information about this issue.
Thanks and regards.
- FireWizard
- Posts: 1745
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
Hi Beckss,
You said you have done the mosquitto configuration. On what platform have you mosquitto installed? Is it a PC with Linux installed or a Raspberry Pi? If Linux, what is the distribution?
Did you also install mosquitto_clients?
You said you have done the mosquitto configuration. On what platform have you mosquitto installed? Is it a PC with Linux installed or a Raspberry Pi? If Linux, what is the distribution?
Did you also install mosquitto_clients?
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
Hi.
Thanks for reply. I have dual boot PC. And installation I done on Kali, that is Linux as well OS. Also I installed client of mosquito and from MQTT side I not see problem. Virtual switch work well. Only when I start work according to notes into github I have a problem. npm start failed and I don't know why.
Thanks and regards
Thanks for reply. I have dual boot PC. And installation I done on Kali, that is Linux as well OS. Also I installed client of mosquito and from MQTT side I not see problem. Virtual switch work well. Only when I start work according to notes into github I have a problem. npm start failed and I don't know why.
Thanks and regards
- FireWizard
- Posts: 1745
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
Ok thanks. This gives some more information.
I conclude the following:
1. Mosquitto is running under Linux (Dual boot doesn't matter).
2. I assume you use the default port 1883.
3 You can publish a message with mosquitto_pub and subscribe to the same
message with mosquitto_sub.
4. MQTT topics are received from your Airco and you can read these with mosquitto_sub or any other MQTT client, such as MQTTfx.
5. You can publish a message with mosquitto_pub to domoticz/in and your virtual switch/sensor is controlled.
6. You can subscribe to a message from domoticz/out if you activate a switch in Domoticz.
Can you confirm all above?
How have you planned to convert the contents of the received topics from the Airco to activate the desired Domoticz switch/sensor and vice versa?
Node Red is i.m.h.o. the best tool for it. From within Node Red you can install all nodes you need.
NPM stands for node package manager and is not something tgat runs as a service.
Have je Node Red installed?
You talk about notes into Github. Which notes do you mean? Do you have a link?
I conclude the following:
1. Mosquitto is running under Linux (Dual boot doesn't matter).
2. I assume you use the default port 1883.
3 You can publish a message with mosquitto_pub and subscribe to the same
message with mosquitto_sub.
4. MQTT topics are received from your Airco and you can read these with mosquitto_sub or any other MQTT client, such as MQTTfx.
5. You can publish a message with mosquitto_pub to domoticz/in and your virtual switch/sensor is controlled.
6. You can subscribe to a message from domoticz/out if you activate a switch in Domoticz.
Can you confirm all above?
How have you planned to convert the contents of the received topics from the Airco to activate the desired Domoticz switch/sensor and vice versa?
Node Red is i.m.h.o. the best tool for it. From within Node Red you can install all nodes you need.
NPM stands for node package manager and is not something tgat runs as a service.
Have je Node Red installed?
You talk about notes into Github. Which notes do you mean? Do you have a link?
Last edited by FireWizard on Tuesday 29 September 2020 18:55, edited 2 times in total.
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
Hi.,
Thanks for you update. I will try clarify situation and confirm you questions:
1. Yes. Mosquitto run on Linux OS
2. Yes, default port 1883
3. Yes, I can publish messages with mosquitto_pub and with mosquitto_sub (Only for test purposes)
4. No. I can't progress with MQTT with aircondition
5. Yes.
6. Yes.
Links, that I worked with them are:
1. EwpeSmart - Domoticz Python Plugin -> https://github.com/stas-demydiuk/domoti ... qtt-plugin
but I think this plugin exist into Domoticz hardware list.
2. All my problems are come from this link MQTT bridge for EWPE Smart powered devices -> https://github.com/stas-demydiuk/ewpe-smart-mqtt.
If you will check point 4 from Installation section (npm start). It not launched.
Regarding you question Node Red is not installed.
Please advice and if you need something else I will supply you.
Thanks and regards,
beckss
Thanks for you update. I will try clarify situation and confirm you questions:
1. Yes. Mosquitto run on Linux OS
2. Yes, default port 1883
3. Yes, I can publish messages with mosquitto_pub and with mosquitto_sub (Only for test purposes)
4. No. I can't progress with MQTT with aircondition
5. Yes.
6. Yes.
Links, that I worked with them are:
1. EwpeSmart - Domoticz Python Plugin -> https://github.com/stas-demydiuk/domoti ... qtt-plugin
but I think this plugin exist into Domoticz hardware list.
2. All my problems are come from this link MQTT bridge for EWPE Smart powered devices -> https://github.com/stas-demydiuk/ewpe-smart-mqtt.
If you will check point 4 from Installation section (npm start). It not launched.
Regarding you question Node Red is not installed.
Please advice and if you need something else I will supply you.
Thanks and regards,
beckss
- FireWizard
- Posts: 1745
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
Hi
Thanks for the confirmations. It excludes some possible errors.
I looked into the provided links, but I didn't install these myself, as I do not own such an airco unit.
Have you (properly) installed NodeJS?
If not, follow the various procedures if you google for KALI and NodeJS.
E.g. https://snapcraft.io/nodejs-kali-linux
But other published methods should work as well.
If you have installed it, can you test?
My installations gives the following:
pi@RPi1:~ $ node --version
v8.11.1
Latest version is 11.8.0
pi@RPi1:~ $ npm -v
6.0.1
latest version is 6.7.0
If these two test give a similar output, the I assume your installation of NodeJS and npm is ok.
Where all the steps 1 and 2
1. git clone https://github.com/stas-demydiuk/ewpe-smart-mqtt
2. npm install
without errors?
Have you set the 4 required environment variables?
The method depends on your shell.
Please confirm, before we can make the next steps.
Thanks for the confirmations. It excludes some possible errors.
I looked into the provided links, but I didn't install these myself, as I do not own such an airco unit.
Have you (properly) installed NodeJS?
If not, follow the various procedures if you google for KALI and NodeJS.
E.g. https://snapcraft.io/nodejs-kali-linux
But other published methods should work as well.
If you have installed it, can you test?
My installations gives the following:
pi@RPi1:~ $ node --version
v8.11.1
Latest version is 11.8.0
pi@RPi1:~ $ npm -v
6.0.1
latest version is 6.7.0
If these two test give a similar output, the I assume your installation of NodeJS and npm is ok.
Where all the steps 1 and 2
1. git clone https://github.com/stas-demydiuk/ewpe-smart-mqtt
2. npm install
without errors?
Have you set the 4 required environment variables?
The method depends on your shell.
Please confirm, before we can make the next steps.
-
- Posts: 10
- Joined: Sunday 16 April 2017 11:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: NL
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
Hello ,
I have also same problem.
I have MQTT running on raspberry PI. I can send and receive messages to it with tool on IPhone.I can add EwpeSmart Air Conditioners via MQTT in domoticz hardware, but i don't see it as device.
I have also same problem.
I have MQTT running on raspberry PI. I can send and receive messages to it with tool on IPhone.I can add EwpeSmart Air Conditioners via MQTT in domoticz hardware, but i don't see it as device.
- FireWizard
- Posts: 1745
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
Hi.
You said that you have the same problem as described above. However there has never been any feedback so far, so that is not sure.
You provided very little information.
You said MQTT is running on Rasberry Pi. Have you installed Mosquitto or another broker?
Which port is it running? 1883? With your IPhone MQTT client you can publish messages to your MQTT broker. Have you subscribed to the same topics with your IPhone client?
If so, that proves only that your broker is running, but does the air-conditioning MQTT bridge publish messages to the broker?
Can you verify that you can subscribe to the topics published by your air-conditioner.
Check that data is published by the air-conditioning by subscribing to the topic "ewpe-smart/#" (without quotes).
You said that you have the same problem as described above. However there has never been any feedback so far, so that is not sure.
You provided very little information.
You said MQTT is running on Rasberry Pi. Have you installed Mosquitto or another broker?
Which port is it running? 1883? With your IPhone MQTT client you can publish messages to your MQTT broker. Have you subscribed to the same topics with your IPhone client?
If so, that proves only that your broker is running, but does the air-conditioning MQTT bridge publish messages to the broker?
Can you verify that you can subscribe to the topics published by your air-conditioner.
Check that data is published by the air-conditioning by subscribing to the topic "ewpe-smart/#" (without quotes).
-
- Posts: 43
- Joined: Monday 20 February 2017 17:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
I also have problems with this plugin. I have the npm server up and running, and plugin appears in Domoticz, but the devices do not appear. Here's some log (in verbose mode)
Code: Select all
2019-03-27 20:44:07.658 (Gree A/C) MqttClient::Ping
2019-03-27 20:44:07.658 (Gree A/C) Sending 2 bytes of data
2019-03-27 20:44:07.658 (Gree A/C) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �.
2019-03-27 20:44:07.658 (Gree A/C) Received 2 bytes of data
2019-03-27 20:44:07.659 (Gree A/C) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �.
2019-03-27 20:44:11.214 (Gree A/C) 30 bf 01 00 1e 65 77 70 65 2d 73 6d 61 72 74 2f 66 34 39 31 0�...ewpe-smart/f491
2019-03-27 20:44:11.215 (Gree A/C) 31 65 36 32 37 39 34 62 2f 73 74 61 74 75 73 7b 22 50 6f 77 1e62794b/status{"Pow
2019-03-27 20:44:11.215 (Gree A/C) 22 3a 31 2c 22 4d 6f 64 22 3a 34 2c 22 54 65 6d 55 6e 22 3a ":1,"Mod":4,"TemUn":
2019-03-27 20:44:11.215 (Gree A/C) 30 2c 22 53 65 74 54 65 6d 22 3a 32 33 2c 22 54 65 6d 52 65 0,"SetTem":23,"TemRe
2019-03-27 20:44:11.215 (Gree A/C) 63 22 3a 30 2c 22 57 64 53 70 64 22 3a 30 2c 22 41 69 72 22 c":0,"WdSpd":0,"Air"
2019-03-27 20:44:11.215 (Gree A/C) 3a 30 2c 22 42 6c 6f 22 3a 30 2c 22 48 65 61 6c 74 68 22 3a :0,"Blo":0,"Health":
2019-03-27 20:44:11.215 (Gree A/C) 30 2c 22 53 77 68 53 6c 70 22 3a 30 2c 22 4c 69 67 22 3a 31 0,"SwhSlp":0,"Lig":1
2019-03-27 20:44:11.215 (Gree A/C) 2c 22 53 77 69 6e 67 4c 66 52 69 67 22 3a 30 2c 22 53 77 55 ,"SwingLfRig":0,"SwU
2019-03-27 20:44:11.215 (Gree A/C) 70 44 6e 22 3a 30 2c 22 51 75 69 65 74 22 3a 30 2c 22 54 75 pDn":0,"Quiet":0,"Tu
2019-03-27 20:44:11.215 (Gree A/C) 72 22 3a 30 2c 22 53 76 53 74 22 3a 30 7d .. .. .. .. .. .. r":0,"SvSt":0}
2019-03-27 20:44:11.217 (Gree A/C) MQTT message: ewpe-smart/f4911e62794b/status {'Blo': 0, 'SwUpDn': 0, 'SvSt': 0, 'Quiet': 0, 'Mod': 4, 'Pow': 1, 'Lig': 1, 'SetTem': 23, 'Tur': 0, 'SwingLfRig': 0, 'Air': 0, 'TemRec': 0, 'TemUn': 0, 'SwhSlp': 0, 'Health': 0, 'WdSpd': 0}
2019-03-27 20:44:11.217 (Gree A/C) ewpe-smart/f4911e62794b
2019-03-27 20:44:11.217 (Gree A/C) {"Blo": 0, "SwUpDn": 0, "SvSt": 0, "Quiet": 0, "Mod": 4, "Pow": 1, "Lig": 1, "SetTem": 23, "Tur": 0, "SwingLfRig": 0, "Air": 0, "TemRec": 0, "TemUn": 0, "SwhSlp": 0, "Health": 0, "WdSpd": 0}
2019-03-27 20:44:11.216 Error: (Gree A/C) 'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'nValue''.
2019-03-27 20:44:11.216 Error: (Gree A/C) ----> Line 125 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/plugin.py', function onMessage
2019-03-27 20:44:11.216 Error: (Gree A/C) ----> Line 99 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/plugin.py', function onMessage
2019-03-27 20:44:11.216 Error: (Gree A/C) ----> Line 133 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/mqtt.py', function onMessage
2019-03-27 20:44:11.216 Error: (Gree A/C) ----> Line 78 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/plugin.py', function onMQTTPublish
2019-03-27 20:44:11.216 Error: (Gree A/C) ----> Line 169 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/device.py', function handle_message
2019-03-27 20:44:11.217 Error: (Gree A/C) ----> Line 125 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/device.py', function _update_state
2019-03-27 20:44:11.217 Error: (Gree A/C) ----> Line 115 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/device.py', function _update_device
- FireWizard
- Posts: 1745
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
Hi,
It looks that this plugin acts as a MQTT client.
Can you try with another client, e.g. MQTTfx to connect to the MQTT broker (default port 1883) and subscribe to the topics from your airconditioner, in order to see if the topics are published in a correct way.
It looks that this plugin acts as a MQTT client.
Can you try with another client, e.g. MQTTfx to connect to the MQTT broker (default port 1883) and subscribe to the topics from your airconditioner, in order to see if the topics are published in a correct way.
-
- Posts: 10
- Joined: Sunday 16 April 2017 11:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: NL
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
I have installed Mosquitto port 1883. I can publish from iphone to MQTT broker and from MQTT broker to Iphone.FireWizard wrote: ↑Monday 25 March 2019 23:30 Hi.
You said that you have the same problem as described above. However there has never been any feedback so far, so that is not sure.
You provided very little information.
You said MQTT is running on Rasberry Pi. Have you installed Mosquitto or another broker?
Which port is it running? 1883? With your IPhone MQTT client you can publish messages to your MQTT broker. Have you subscribed to the same topics with your IPhone client?
If so, that proves only that your broker is running, but does the air-conditioning MQTT bridge publish messages to the broker?
Can you verify that you can subscribe to the topics published by your air-conditioner.
Check that data is published by the air-conditioning by subscribing to the topic "ewpe-smart/#" (without quotes).
the default topic is ewpe-smart. Should i change it to ewpe-smart/#?
I also don't see the device in domoticz. i can add the hardware . but it doesn't show up in devices.
- FireWizard
- Posts: 1745
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
The communication with your air conditioner consist of 2 parts.
Lets concentrate on the first part for now
1. The communication with the MQTT bridge:
https://github.com/stas-demydiuk/ewpe-smart-mqtt
Do you run it in a Docker container?
I assume that you have configured this plugin as described under 3 of the README.md.
Take care that the network settings matches your network.
The setting: MQTT_SERVER MQTT server URI mqtt://127.0.0.1 assumes that the plugin is installed
on the same computer as the Mosquitto broker.
If not change the IP address 127.0.0.1 to the IP address of your Mosquitto broker.
You see also that the Base MQTT topic for bridge messages is ewpe-smart.
According to the README file you should subscribe to:
ewpe-smart/devices/list
ewpe-smart/{deviceId}/get
and probably publish to
ewpe-smart/{deviceId}/set
To see everything from your bridge you should subscribe to: ewpe-smart/#.
If you subscribe to ewpe-smart you probably won't see anything because the README file says that the
the Base MQTT topic is ewpe-smart.
A mistake often made is that a leading forward slash (/) is used, like /ewpe-smart.
A short and good tutorial on how to subscribe to MQTT topics you will find here:
http://www.steves-internet-guide.com/un ... tt-topics/
If you want to see everything (subscribe to all topics) use #
Test first that your air conditioner is publishing to the broker.
Regards.
Lets concentrate on the first part for now
1. The communication with the MQTT bridge:
https://github.com/stas-demydiuk/ewpe-smart-mqtt
Do you run it in a Docker container?
I assume that you have configured this plugin as described under 3 of the README.md.
Take care that the network settings matches your network.
The setting: MQTT_SERVER MQTT server URI mqtt://127.0.0.1 assumes that the plugin is installed
on the same computer as the Mosquitto broker.
If not change the IP address 127.0.0.1 to the IP address of your Mosquitto broker.
You see also that the Base MQTT topic for bridge messages is ewpe-smart.
According to the README file you should subscribe to:
ewpe-smart/devices/list
ewpe-smart/{deviceId}/get
and probably publish to
ewpe-smart/{deviceId}/set
To see everything from your bridge you should subscribe to: ewpe-smart/#.
If you subscribe to ewpe-smart you probably won't see anything because the README file says that the
the Base MQTT topic is ewpe-smart.
A mistake often made is that a leading forward slash (/) is used, like /ewpe-smart.
A short and good tutorial on how to subscribe to MQTT topics you will find here:
http://www.steves-internet-guide.com/un ... tt-topics/
If you want to see everything (subscribe to all topics) use #
Test first that your air conditioner is publishing to the broker.
Regards.
-
- Posts: 43
- Joined: Monday 20 February 2017 17:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
Well, in my case, communication with the air conditioner and MQTT is working fine. It's just the plugin that does not work. I am familiar with MQTT and have other MQTT devices (Sonoff Tasmota) in my network that work fine with domoticz.
I'm using mosquitto. I tried this command on bash command line:
mosquitto_pub -t ewpe-smart/f4911e62794b/set -m '{"Pow": 1, "SetTem": 23}'
And the aircon beeps and sets temp to 23. So it works. But plugin fails with the log I pasted above.
I'm using mosquitto. I tried this command on bash command line:
mosquitto_pub -t ewpe-smart/f4911e62794b/set -m '{"Pow": 1, "SetTem": 23}'
And the aircon beeps and sets temp to 23. So it works. But plugin fails with the log I pasted above.
- FireWizard
- Posts: 1745
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
@Zuikkis
In your case the communication between the air conditioning and the broker is ok.
Your communication between Domoticz and the broker is also functioning, otherwise your Sonoff would not function.
I suggest that you put the same question as an issue on github, so that the developer can look to it
I do not own the equipment, so cannot test it.
In your case the communication between the air conditioning and the broker is ok.
Your communication between Domoticz and the broker is also functioning, otherwise your Sonoff would not function.
I suggest that you put the same question as an issue on github, so that the developer can look to it
I do not own the equipment, so cannot test it.
-
- Posts: 10
- Joined: Sunday 16 April 2017 11:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: NL
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
1. The communication with the MQTT bridge:
https://github.com/stas-demydiuk/ewpe-smart-mqtt
if i try this one i get this error:
root@raspberrypi:/home/pi/ewpe-smart-mqtt# npm start
> [email protected] start /home/pi/ewpe-smart-mqtt
> node index.js
/home/pi/ewpe-smart-mqtt/index.js:33
const getDeviceStatus = async (deviceId) => {
^
SyntaxError: Unexpected token (
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
npm ERR! Linux 4.9.35-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node index
npm ERR! Make sure you have the latest version of node.js and npm ins
npm ERR! If you do, this is most likely a problem with the ewpe-smartge,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js
npm ERR! You can get information on how to open an issue for this pro
npm ERR! npm bugs ewpe-smart-mqtt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ewpe-smart-mqtt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/ewpe-smart-mqtt/npm-debug.log
https://github.com/stas-demydiuk/ewpe-smart-mqtt
if i try this one i get this error:
root@raspberrypi:/home/pi/ewpe-smart-mqtt# npm start
> [email protected] start /home/pi/ewpe-smart-mqtt
> node index.js
/home/pi/ewpe-smart-mqtt/index.js:33
const getDeviceStatus = async (deviceId) => {
^
SyntaxError: Unexpected token (
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
npm ERR! Linux 4.9.35-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node index
npm ERR! Make sure you have the latest version of node.js and npm ins
npm ERR! If you do, this is most likely a problem with the ewpe-smartge,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js
npm ERR! You can get information on how to open an issue for this pro
npm ERR! npm bugs ewpe-smart-mqtt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ewpe-smart-mqtt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/ewpe-smart-mqtt/npm-debug.log
-
- Posts: 10
- Joined: Sunday 16 April 2017 11:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: NL
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
i use mosquitto from here:
sudo apt-get install mosquitto mosquitto-clients python-mosquitto
sudo apt-get install mosquitto mosquitto-clients python-mosquitto
- FireWizard
- Posts: 1745
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
Hello Gizmo2000
This is the normal way to install mosquitto.
Which version of Raspbian do you use? Stretch?
Python-mosquitto is normally not necessary, unless you develop python applications.
This is the normal way to install mosquitto.
Which version of Raspbian do you use? Stretch?
Python-mosquitto is normally not necessary, unless you develop python applications.
-
- Posts: 10
- Joined: Sunday 16 April 2017 11:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: NL
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
i use Jessie.FireWizard wrote: ↑Friday 29 March 2019 21:41 Hello Gizmo2000
This is the normal way to install mosquitto.
Which version of Raspbian do you use? Stretch?
Python-mosquitto is normally not necessary, unless you develop python applications.
Code: Select all
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
- FireWizard
- Posts: 1745
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
Hello Gizmo,
I'm not sure that there is a relationship, but your version (Raspbian Jessie) is quit old.
The first release of Raspbian Stretch dates back to August 16, 2017. Debian Stretch itself was released June 17, 2017.
Your kernel seems to be 4.9.35. The 4.9 kernel does not support Raspberry Pi 3B+.
The developer published his first release of EwpeSmart - Domoticz Python Plugin November 30, 2018 and the MQTT bridge for EWPE Smart powered devices was published November 28, 2018.
It is not unlikely that the development was based on Debian/Raspbian Stretch and not on Jessie.
There might exist one or more backwards incompatibilities.
I recommend to upgrade to the latest version of Raspbian Stretch, update all the packages and try again.
Regards.
I'm not sure that there is a relationship, but your version (Raspbian Jessie) is quit old.
The first release of Raspbian Stretch dates back to August 16, 2017. Debian Stretch itself was released June 17, 2017.
Your kernel seems to be 4.9.35. The 4.9 kernel does not support Raspberry Pi 3B+.
The developer published his first release of EwpeSmart - Domoticz Python Plugin November 30, 2018 and the MQTT bridge for EWPE Smart powered devices was published November 28, 2018.
It is not unlikely that the development was based on Debian/Raspbian Stretch and not on Jessie.
There might exist one or more backwards incompatibilities.
I recommend to upgrade to the latest version of Raspbian Stretch, update all the packages and try again.
Regards.
-
- Posts: 10
- Joined: Sunday 16 April 2017 11:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: NL
- Contact:
Re: Help with - EwpeSmart Air Conditioners via MQTT (Gree Smart)
Hello
Upgraded to stretch.
Same problem
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Upgraded to stretch.
Same problem
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Who is online
Users browsing this forum: No registered users and 0 guests