-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No possible disable sleep #44
Comments
How do you implement this boolean? Can you share the input_boolean.bedroom_ac_sleep entity? |
input_boolean: |
Can you turn on debugging for this component and paste the debug log? The boolean seems fine. |
Here! I did operation around 16:22 |
Hmm. I dont use/have this feature, so its hard for me to debug. @wjketting implemented this feature. maybe he can aid us with this issue. |
I don't know python and so I don't how debug |
I experienced similar strange thing about sleep mode, finally I gave it up and I implemented this feature via automation (temp decreasing/increasing + quiet mode at specified time). |
It is something you like to share with me? |
Here are some code snipet.
|
I will try to use what you do for quiet for the sleep mode |
No working: the result is the same. |
I did some test: with light, that seems the same, all it is ok. With sleep this is what happen after I enable the switch in Home Assistant to stop the sleep As you can see, one of the sync thread switch to on. I cannot understand if there is a problem in the perl script or it is a problem on Gree device that don't stop the sleep |
sorry for delayed respons. |
After a bit of testing it seems the problem is with the airco not accepting the status change for SwhSlp from 1 => 0, see summarised part of my log below. The 8th parameter in the numbered list is SwhSlp (sleepmode).
If you do the same for status change for SwhSlp from 0 => 1, the airco accepts the change. Don't know the reason. With the Gree App it is possible to switch sleep on and off and select several sleep modes (at least on my airo). |
Thanks for your job!
This was also my suspect: since the light is working and the code is the
same, the problem is in the Gree device.
How home assistant call the device? Does it use the API?
Regards
Claudio
Il mer 25 dic 2019, 13:12 Wolter <notifications@github.com> ha scritto:
… After a bit of testing it seems the problem is with the airco not
accepting the status change for SwhSlp from 1 => 0, see summarised part of
my log below.
The 8th parameter in the numbered list is SwhSlp (sleepmode).
The scripts sends 0 (acOptions => statePackJson) and receives 1 (part
after Done sending etc...) back from the airco.
- Overwriting SwhSlp: 0
- Done overwriting acOptions
- acOptions: {'Pow': 1, 'Mod': 1, 'SetTem': 20, 'WdSpd': 1, 'Air': 1,
'Blo': 0, 'Health': 0, 'SwhSlp': 0, 'Lig': 0, 'SwingLfRig': 0, 'SwUpDn': 4,
'Quiet': 2, 'Tur': 0, 'StHt': 0, 'TemUn': 0, 'HeatCoolType': 0, 'TemRec':
0, 'SvSt': 0}
- Start sending state to HVAC
- statePackJson:
{"opt":["Pow","Mod","SetTem","WdSpd","Air","Blo","Health","SwhSlp","Lig","SwingLfRig","SwUpDn","Quiet","Tur","StHt","TemUn","HeatCoolType","TemRec","SvSt"],"p":[1,1,20,1,1,0,0,0,0,0,4,2,0,0,0,0,0,0],"t":"cmd"}
- Done sending state to HVAC: {'t': 'res', 'mac': 'f4911e1cddad', 'r':
200, 'opt': ['Pow', 'Mod', 'SetTem', 'WdSpd', 'Air', 'Blo', 'Health',
'SwhSlp', 'Lig', 'SwingLfRig', 'SwUpDn', 'Quiet', 'Tur', 'StHt', 'TemUn',
'HeatCoolType', 'TemRec', 'SvSt'], 'p': [1, 1, 20, 1, 1, 0, 0, 1, 0, 0, 4,
2, 0, 0, 0, 0, 0, 0], 'val': [1, 1, 20, 1, 1, 0, 0, 1, 0, 0, 4, 2, 0, 0, 0,
0, 0, 0]}
If you do the same for status change for SwhSlp from 0 => 1, the airco
accepts the change.
Don't know the reason. With the Gree App it is possible to switch sleep on
and off and select severall sleep modes (at least on my airo).
Maybe the payload used in the script is missing a parameter.
Don't know how to check and solve this any further.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#44?email_source=notifications&email_token=ANLM2OEQTRNWJ6UIQ6L3VILQ2NE2VA5CNFSM4JRA2ZP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHUJZMQ#issuecomment-568892594>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANLM2OHCPMZF5AMPXCR7OUTQ2NE2VANCNFSM4JRA2ZPQ>
.
|
Hello Rob.
I found this project that is the base.
https://github.com/tomikaa87/gree-remote
I took a look and it seems that for sleep only 1 or 0 need to passed.
What is strange is why the Android app allow it. I will try to understand
how sniff the messages from app to device, but I don't know if I can do
Marry xmans
Claudio
Il giorno mer 25 dic 2019 alle ore 13:27 claudio sala <
claudiosala80@alice.it> ha scritto:
… Thanks for your job!
This was also my suspect: since the light is working and the code is the
same, the problem is in the Gree device.
How home assistant call the device? Does it use the API?
Regards
Claudio
Il mer 25 dic 2019, 13:12 Wolter ***@***.***> ha scritto:
> After a bit of testing it seems the problem is with the airco not
> accepting the status change for SwhSlp from 1 => 0, see summarised part of
> my log below.
>
> The 8th parameter in the numbered list is SwhSlp (sleepmode).
> The scripts sends 0 (acOptions => statePackJson) and receives 1 (part
> after Done sending etc...) back from the airco.
>
> - Overwriting SwhSlp: 0
> - Done overwriting acOptions
> - acOptions: {'Pow': 1, 'Mod': 1, 'SetTem': 20, 'WdSpd': 1, 'Air': 1,
> 'Blo': 0, 'Health': 0, 'SwhSlp': 0, 'Lig': 0, 'SwingLfRig': 0, 'SwUpDn': 4,
> 'Quiet': 2, 'Tur': 0, 'StHt': 0, 'TemUn': 0, 'HeatCoolType': 0, 'TemRec':
> 0, 'SvSt': 0}
> - Start sending state to HVAC
> - statePackJson:
> {"opt":["Pow","Mod","SetTem","WdSpd","Air","Blo","Health","SwhSlp","Lig","SwingLfRig","SwUpDn","Quiet","Tur","StHt","TemUn","HeatCoolType","TemRec","SvSt"],"p":[1,1,20,1,1,0,0,0,0,0,4,2,0,0,0,0,0,0],"t":"cmd"}
> - Done sending state to HVAC: {'t': 'res', 'mac': 'f4911e1cddad',
> 'r': 200, 'opt': ['Pow', 'Mod', 'SetTem', 'WdSpd', 'Air', 'Blo', 'Health',
> 'SwhSlp', 'Lig', 'SwingLfRig', 'SwUpDn', 'Quiet', 'Tur', 'StHt', 'TemUn',
> 'HeatCoolType', 'TemRec', 'SvSt'], 'p': [1, 1, 20, 1, 1, 0, 0, 1, 0, 0, 4,
> 2, 0, 0, 0, 0, 0, 0], 'val': [1, 1, 20, 1, 1, 0, 0, 1, 0, 0, 4, 2, 0, 0, 0,
> 0, 0, 0]}
>
> If you do the same for status change for SwhSlp from 0 => 1, the airco
> accepts the change.
>
> Don't know the reason. With the Gree App it is possible to switch sleep
> on and off and select severall sleep modes (at least on my airo).
> Maybe the payload used in the script is missing a parameter.
> Don't know how to check and solve this any further.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#44?email_source=notifications&email_token=ANLM2OEQTRNWJ6UIQ6L3VILQ2NE2VA5CNFSM4JRA2ZP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHUJZMQ#issuecomment-568892594>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ANLM2OHCPMZF5AMPXCR7OUTQ2NE2VANCNFSM4JRA2ZPQ>
> .
>
|
Hi, I have compiled and run GreeRemoteAndroid from this repo and I can already tell you that with this it is also not possible to set sleep to off. You can only turn it on. A workaround is to switch to FAN mode or other mode that excludes sleep so sleep will be set to 0. However it is much easier to experiment using this app, and also you have the source code so modifications are pretty straightforward. |
Thanks a lot.
My idea is try to sniff the package that official app send, but I don't
know if it is possible and how long it will require to investigate
Il sab 4 gen 2020, 16:36 PLTorrent <notifications@github.com> ha scritto:
… Hi,
I have compiled and run GreeRemoteAndroid from this repo and I can already
tell you that with this it is also not possible to set sleep to off. You
can only turn it on. A workaround is to switch to FAN mode or other mode
that excludes sleep so sleep will be set to 0.
However it is much easier to experiment using this app, and also you have
the source code so modifications are pretty straightforward.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#44?email_source=notifications&email_token=ANLM2OBBNT4VMOW3O3ZC5N3Q4CUHZA5CNFSM4JRA2ZP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIC2HLQ#issuecomment-570794926>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANLM2OD6R4HZGENSRCQIXUDQ4CUHZANCNFSM4JRA2ZPQ>
.
|
Leave that to me. Got them captured already. Just need to decode the packs and see whats inside. I'll compare them with what the custom app as well as Home Assistant is sending to the device. ;] |
Is there any way I can help you on this decode?
Il dom 5 gen 2020, 10:24 PLTorrent <notifications@github.com> ha scritto:
… Leave that to me. Got them captured already. Just need to decode the packs
and see whats inside. I'll compare them with what the custom app as well as
Home Assistant is sending to the device. ;]
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#44?email_source=notifications&email_token=ANLM2OHGMZXFSZL6A7R4RODQ4GRN5A5CNFSM4JRA2ZP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIDSCXA#issuecomment-570892636>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANLM2OGUWDW7CZZKYLBKPFLQ4GRN5ANCNFSM4JRA2ZPQ>
.
|
Ok so this is how app does it: Deactivate: and then status message from device: So it seems that to deactivate sleep mode app sends only 2 params: SwhSlp and SlpMod Later I will try to send such payload from python to device and see if the Sleep Mode will deactivate. Will keep you updated, also if some other captures from original app are required please let me know. |
Mmm...
And code of the plugin cannot be modified, correct?
Il dom 5 gen 2020, 18:01 PLTorrent <notifications@github.com> ha scritto:
… Ok so this is how app does it:
Activate:
'opt': ['SwhSlp', 'SlpMod', 'SvSt', 'StHt'], 'p': [1, 1, 0, 0], 'val': [1,
1, 0, 0]}
Dev responds:
{'opt': ['SwhSlp', 'SlpMod', 'SvSt', 'StHt'], 'p': [1, 1, 0, 0], 't':
'cmd'}
Deactivate:
{'opt': ['SwhSlp', 'SlpMod'], 'p': [0, 0], 't': 'cmd'}
Dev responds:
{'opt': ['SwhSlp', 'SlpMod'], 'p': [0, 0], 'val': [0, 0]}
and then status message from device:
'cols': ['Pow', 'Mod', 'TemUn', 'SetTem', 'TemRec', 'HeatCoolType',
'WdSpd', 'Tur', 'Quiet', 'SwUpDn', 'SwingLfRig', 'Air', 'Blo', 'Health',
'SvSt', 'Lig', 'StHt', 'SwhSlp', 'SlpMod', 'AllErr'], 'dat': [1, 1, 0, 24,
0, 0, 1, 0, 0, 6, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0]
So it seems that to deactivate sleep mode app sends only 2 params: SwhSlp
and SlpMod
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#44?email_source=notifications&email_token=ANLM2OFAGUYIDY4BJYNIQPDQ4IG65A5CNFSM4JRA2ZP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEID3AUQ#issuecomment-570929234>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANLM2OCYLEAL46QXON6N2SDQ4IG65ANCNFSM4JRA2ZPQ>
.
|
Pull request resolving this below. UPDATE: I can now confirm that what we are missing is SlpMod parameter. I have sent the following request to device: statePackJson = '{' + '"opt":["Pow","Mod","SetTem","WdSpd","Air","Blo","Health","SwhSlp","Lig","SwingLfRig","SwUpDn","Quiet","Tur","StHt","TemUn","HeatCoolType","TemRec","SvSt","SlpMod"],"p":[1,4,24,1,0,0,1,1,1,0,6,0,0,0,0,0,0,0,1],"t":"cmd"}' And this has turn the device on, set to heating, temp to 24C, Health to on, Light to on and Sleep mode to on. Then I have sent: statePackJson = '{' + '"opt":["Pow","Mod","SetTem","WdSpd","Air","Blo","Health","SwhSlp","Lig","SwingLfRig","SwUpDn","Quiet","Tur","StHt","TemUn","HeatCoolType","TemRec","SvSt","SlpMod"],"p":[1,4,24,1,0,0,1,0,1,0,6,0,0,0,0,0,0,0,0],"t":"cmd"}' And the sleep mode has been successfully deactivated. So it is simply a matter of adding SlpMod at the end. Furthermore I can confirm that not sending this parameter (i.e. SlpMod) will allow to activate the Sleep mode but since while Sleep mode is set SlpMod is set to 1 it is not possible to deactivate it without this parameter present. Just checked this as well. Both SwhSlp and SlpMod must be present in order to deactivate Sleep mode. |
Wonderful
I will test during my afternoon!
Il lun 6 gen 2020, 10:11 PLTorrent <notifications@github.com> ha scritto:
… Hi, forked a project and fixed the sleep mode. @claudiosala80
<https://github.com/claudiosala80> please check the sleep mode bugfix in
my repo below and let me know if this works for you.
https://github.com/PLTorrent/HomeAssistant-GreeClimateComponent/tree/sleep_mode_bugfix
<http://url>
@wjketting <https://github.com/wjketting> you could check also if you
have time.
If all is ok I'll create a pull request later on.
Regards.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#44?email_source=notifications&email_token=ANLM2OEL4QZQNGAE6CF3CHDQ4LYUXA5CNFSM4JRA2ZP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIE3PMI#issuecomment-571062193>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANLM2OHNZHTUMZMJJT7QRE3Q4LYUXANCNFSM4JRA2ZPQ>
.
|
Working!!!!
Wonderful!!!
Thanks a lot!
Il giorno lun 6 gen 2020 alle ore 10:42 claudio sala <claudiosala80@alice.it>
ha scritto:
… Wonderful
I will test during my afternoon!
Il lun 6 gen 2020, 10:11 PLTorrent ***@***.***> ha scritto:
> Hi, forked a project and fixed the sleep mode. @claudiosala80
> <https://github.com/claudiosala80> please check the sleep mode bugfix in
> my repo below and let me know if this works for you.
>
>
> https://github.com/PLTorrent/HomeAssistant-GreeClimateComponent/tree/sleep_mode_bugfix
> <http://url>
>
> @wjketting <https://github.com/wjketting> you could check also if you
> have time.
>
> If all is ok I'll create a pull request later on.
>
> Regards.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#44?email_source=notifications&email_token=ANLM2OEL4QZQNGAE6CF3CHDQ4LYUXA5CNFSM4JRA2ZP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIE3PMI#issuecomment-571062193>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ANLM2OHNZHTUMZMJJT7QRE3Q4LYUXANCNFSM4JRA2ZPQ>
> .
>
|
You're welcome. |
Merged & Closed Version 2.1.0 released. Can be updates through HACS! Thanks @everyone for all of your efforts! |
Describe the bug
I added the option for sleep, with an input Boolean
When I set the button to true, the sleep is enabled on the final device.
If I make the button change status, the sleep is not disabled on the device
my yaml
name: Condizionatore camera
host: 192.168.x.x
port: 7000
mac: '123456789'
target_temp_step: 1
sleep: input_boolean.bedroom_ac_sleep
Platform:
The text was updated successfully, but these errors were encountered: