Giter Club home page Giter Club logo

domoticz-ewpe-smart-mqtt-plugin's Introduction

EwpeSmart - Domoticz Python Plugin

Python plugin for Domoticz to control ewpe-smart powered air conditioners which can be controled via WiFi using EWPE Smart app

gree-plugin

Prerequisites

Setup ewpe-smart-mqtt bridge

Installation

  1. Clone repository into your domoticz plugins folder
cd domoticz/plugins
git clone https://github.com/stas-demydiuk/domoticz-ewpe-smart-mqtt-plugin.git ewpe-smart-mqtt
  1. Restart domoticz
  2. Go to "Hardware" page and add new item with type "EwpeSmart Air Conditioners via MQTT"
  3. Set your MQTT server address and port to plugin settings

Plugin update

  1. Stop domoticz
  2. Go to plugin folder and pull new version
cd domoticz/plugins/ewpe-smart-mqtt
git pull
  1. Start domoticz

Supported devices

All devices which can be controlled via EWPE Smart or Gree+ app should be supported, including:

  • Gree: Smart, U-CROWN series
  • Cooper&Hunter: Supreme, Vip Inverter, ICY II, Arctic, Alpha, Alpha NG, Veritas, Veritas NG series
  • EcoAir X series

domoticz-ewpe-smart-mqtt-plugin's People

Contributors

jan-nl avatar stas-demydiuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

domoticz-ewpe-smart-mqtt-plugin's Issues

GREE WSBEC02 WiFi KIt

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.

On/Off button not working

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 ?

Plugin does not transfer new measured temperature item of AirCo (item='TemSen')

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

npm start problem

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]
11 info lifecycle [email protected]
start: [email protected]
12 verbose lifecycle [email protected]start: unsafe-perm in lifecycle true
13 verbose lifecycle [email protected]
start: 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
14 verbose lifecycle [email protected]start: CWD: /home/pi/ewpe-smart-mqtt
15 silly lifecycle [email protected]
start: Args: [ '-c', 'node index.js' ]
16 silly lifecycle [email protected]start: Returned: code: 1 signal: null
17 info lifecycle [email protected]
start: Failed to exec start script
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 ]

Some time is not available.

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.

Domoticz Plugin help MQTT Gammu sms

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

TOSOT AC support

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!

'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'nValue''

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.