stas-demydiuk / domoticz-ewpe-smart-mqtt-plugin Goto Github PK
View Code? Open in Web Editor NEWPython plugin for Domoticz to control ewpe-smart powered air conditioners
License: MIT License
Python plugin for Domoticz to control ewpe-smart powered air conditioners
License: MIT License
My Gree AC will install next week. The Technician say that it use Gree+ app. I check this app, but it seems to totally same with EWPE...
It will work my AC this plugin? i want to integrate it to Domoticz.
hi i have some issues everytime on every installs (ubuntu, ubuntu virtualbox, rpi with raspberry). Can you guys help me with this?
[email protected] start /home/pi/ewpe-smart-mqtt
node index.js
events.js:174
throw er; // Unhandled 'error' event
^
Error: Connection refused: Not authorized
at MqttClient._handleConnack (/home/pi/ewpe-smart-mqtt/node_modules/mqtt/lib/client.js:920:15)
at MqttClient._handlePacket (/home/pi/ewpe-smart-mqtt/node_modules/mqtt/lib/client.js:350:12)
at work (/home/pi/ewpe-smart-mqtt/node_modules/mqtt/lib/client.js:292:12)
at Writable.writable._write (/home/pi/ewpe-smart-mqtt/node_modules/mqtt/lib/client.js:302:5)
at doWrite (/home/pi/ewpe-smart-mqtt/node_modules/readable-stream/lib/_stream_writable.js:428:64)
at writeOrBuffer (/home/pi/ewpe-smart-mqtt/node_modules/readable-stream/lib/_stream_writable.js:417:5)
at Writable.write (/home/pi/ewpe-smart-mqtt/node_modules/readable-stream/lib/_stream_writable.js:334:11)
at Socket.ondata (_stream_readable.js:667:20)
at Socket.emit (events.js:189:13)
at addChunk (_stream_readable.js:284:12)
Emitted 'error' event at:
at MqttClient._handleConnack (/home/pi/ewpe-smart-mqtt/node_modules/mqtt/lib/client.js:922:10)
at MqttClient._handlePacket (/home/pi/ewpe-smart-mqtt/node_modules/mqtt/lib/client.js:350:12)
[... lines matching original stack trace ...]
at addChunk (_stream_readable.js:284:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-08-03T22_05_15_287Z-debug.log
root@raspberrypi:/home/pi/ewpe-smart-mqtt#
root@raspberrypi:/home/pi/ewpe-smart-mqtt# cat /root/.npm/_logs/2019-08-03T22_05_15_287Z-debug.log
0 info it worked if it ends with ok
1 warn npm npm does not support Node.js v10.15.2
2 warn npm You should probably upgrade to a newer version of node as we
3 warn npm can't make any promises that npm will work with this version.
4 warn npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
5 warn npm You can find the latest version at https://nodejs.org/
6 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
7 info using [email protected]
8 info using [email protected]
9 verbose run-script [ 'prestart', 'start', 'poststart' ]
10 info lifecycle [email protected]prestart: [email protected]start: [email protected]
11 info lifecycle [email protected]
12 verbose lifecycle [email protected]start: unsafe-perm in lifecycle truestart: PATH: /usr/share/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/ewpe-smart-mqtt/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
13 verbose lifecycle [email protected]
14 verbose lifecycle [email protected]start: CWD: /home/pi/ewpe-smart-mqttstart: Args: [ '-c', 'node index.js' ]
15 silly lifecycle [email protected]
16 silly lifecycle [email protected]start: Returned: code: 1 signal: nullstart: Failed to exec start script
17 info lifecycle [email protected]
18 verbose stack Error: [email protected] start: node index.js
18 verbose stack Exit status 1
18 verbose stack at EventEmitter. (/usr/share/npm/node_modules/npm-lifecycle/index.js:283:16)
18 verbose stack at EventEmitter.emit (events.js:189:13)
18 verbose stack at ChildProcess. (/usr/share/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
18 verbose stack at ChildProcess.emit (events.js:189:13)
18 verbose stack at maybeClose (internal/child_process.js:970:16)
18 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
19 verbose pkgid [email protected]
20 verbose cwd /home/pi/ewpe-smart-mqtt
21 verbose Linux 4.19.58-v7l+
22 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
23 verbose node v10.15.2
24 verbose npm v5.8.0
25 error code ELIFECYCLE
26 error errno 1
27 error [email protected] start: node index.js
27 error Exit status 1
28 error Failed at the [email protected] start script.
28 error This is probably not a problem with npm. There is likely additional logging output above.
29 verbose exit [ 1, true ]
Hello ,
I know it's not the best way to contact you and ask for help on domoticz plugin...but whatever.
I saw you already wrote some domoticz plugin with mqtt for some devices.
Do you think it's posible for you to write a new plug to manage SMS thru domoticz and gammu.
The idea is receiveing sms with gamme playing a onreceive script and populate mqqt ton incremente data in domoticz the plys some scene or other...
and the possibility send sms for notifications.
best regards,
Fa
Is it possible to control temperature in blocky? I found only switches are controllable.
Also, this plugin works with Electrolux A/C units.
The ewpe-smart-mqtt was recently adapted with "Fetch temperature sensor information in device status".
The Python plugin does not process this new info.
I added a couple of lines in device.py as follows to make it work:
72 if self.get_device(address, 'mtemp') == None: 73 device_id = address + '_mtemp' 74 Domoticz.Debug('Creating domoticz device to handle measured temperature') 75 Domoticz.Device(Unit=self.get_first_available_unit(), DeviceID=device_id, Name=name + ' - Temperature Measured', TypeName="Temperature").Create() 76
This add a temp device of subtype 'LaCrosse TX3' for each AirCo.
and to set the value:
167 if "TemSen" in state and "TemRec" in state: 168 temperature = state['TemSen'] + (0.5 if state['TemRec'] == 1 else 0) 169 self._update_device('mtemp', 0, str(temperature)) 170
Hello,
When I try to send an On/off command to my Gree air conditioners, I got those errors :
2022-07-10 23:50:04.628 Error: Clim via MQTT: Call to function 'onCommand' failed, exception details:
2022-07-10 23:50:04.648 Error: Clim via MQTT: Traceback (most recent call last):
2022-07-10 23:50:04.648 Error: Clim via MQTT: File "/home/pi/domoticz/plugins/ewpe-smart-mqtt/plugin.py", line 143, in onCommand
2022-07-10 23:50:04.648 Error: Clim via MQTT: plugin.onCommand(Unit, Command, Level, Color)
2022-07-10 23:50:04.648 Error: Clim via MQTT: File "/home/pi/domoticz/plugins/ewpe-smart-mqtt/plugin.py", line 91, in onCommand
2022-07-10 23:50:04.648 Error: Clim via MQTT: [mac, alias] = Devices[Unit].DeviceID.split('')
2022-07-10 23:50:04.648 Error: Clim via MQTT: ValueError: not enough values to unpack (expected 2, got 1)
All the other commands are sent normaly : SetPoint, Light, etc ...
DomoticZ 2022.1 beta 14352 and Mosquitto are running on a Pi with Bullseye 32bits.
Is it a configuration problem on my side ?
Last time I got this error I think I got it fixed by installing node v14 (and removing nodejs). But it does not help anymore now.
===
2021-09-30 21:21:14.934 Error: AircoWoonkamer: (AircoWoonkamer) 'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'nValue''.
2021-09-30 21:21:14.934 Error: AircoWoonkamer: (AircoWoonkamer) Exception traceback:
2021-09-30 21:21:14.935 Error: AircoWoonkamer: (AircoWoonkamer) ----> Line 138 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/plugin.py', function onMessage
2021-09-30 21:21:14.935 Error: AircoWoonkamer: (AircoWoonkamer) ----> Line 106 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/plugin.py', function onMessage
2021-09-30 21:21:14.935 Error: AircoWoonkamer: (AircoWoonkamer) ----> Line 168 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/mqtt.py', function onMessage
2021-09-30 21:21:14.935 Error: AircoWoonkamer: (AircoWoonkamer) ----> Line 84 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/plugin.py', function onMQTTPublish
2021-09-30 21:21:14.935 Error: AircoWoonkamer: (AircoWoonkamer) ----> Line 188 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/device.py', function handle_message
2021-09-30 21:21:14.935 Error: AircoWoonkamer: (AircoWoonkamer) ----> Line 137 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/device.py', function _update_state
2021-09-30 21:21:14.935 Error: AircoWoonkamer: (AircoWoonkamer) ----> Line 125 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/device.py', function _update_device
Issue description
Put general information here:
GREE WSBEC02 WiFi KIt not working
Additional information
Python version: 3.5.3 (Domoticz)
Domoticz version: Version: 4.11605
Plugin version: 1.0?
Logs
Attach any additional logs here which might be useful: mqtt, domoticz, plugin logs
The Cooper & Hunter is working greatly, fluo heatpump with wifi module (seems to be an gree WSBEC02 wifi module) is not working. No messages are recieved :(
Is this possible to get it working?
If you need help with debugging just let me know, i have several fluo heatpumps to test with.
Hi.
Can you support the TOSOT air conditioners as well? It is nearly the same as the Gree, the app name is TOSOT+, but it looks like ewpe. If you need any help for testing, info, debug etc, I'm ready to do it!
Thank you!
Hi @stas-demydiuk !
In the domoticz log communication is visible.
However the switches do not work.
The domoticz Ewpesmart Air Conditionets hardware turn off.
Thereafter.
The domoticz Ewpesmart Air Conditionets hardware turn on.
All functions work.
It takes a few hours.
Does not respond.
And then if again. I turn it off. I turn it on. All functions work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.