-->
Page 3 of 7

Re: How to talk to CN105 of a mitsubishi heat pump

PostPosted: Tue Feb 07, 2017 2:49 pm
by SwiCago
Hi Kanyo, agree ESP related updates should be in this thread, not on Hadleys page. His great for discussion. Anyhow, sure do a fork on my git and make some changes you think may work. I can then review them and we can then merge. And yes the MQTT example would be great. And yes I agree .loop() makes sens, but make it a copy of .sync(), in that loop just calls sync. That way either sync or loop work and works with what ever conventions people are used to.
I do want to add a auto detect of communication loss, so that it will auto re-connect. This would be good for power cycle, power outage or unknown loss of comms event. But I'll wait to add that until we can merge. Don't want to be too far out of sync again with someone else.

Re: How to talk to CN105 of a mitsubishi heat pump

PostPosted: Tue Feb 07, 2017 4:16 pm
by Albertooo
I agree with you. I will help you in all I can.

Thanks in advance

Re: How to talk to CN105 of a mitsubishi heat pump

PostPosted: Wed Feb 08, 2017 7:02 am
by Albertooo
if i get time this week, i will try write homebridge plugin for your code, for control heat pump with siri.

Regards!!!!

Re: How to talk to CN105 of a mitsubishi heat pump

PostPosted: Thu Feb 09, 2017 1:35 am
by Albertooo
Hi Kayno,Al,

I've been testing the circuit with Kayno's code. Sometimes it happens that when the state of makina is "on" and the heat state and command the same mode by mqtt for example {"mode" = "HEAT"} the machine shuts off and on the contrary (sometimes it happens randomly). Also sometimes (I think s because the esp8266 is sometimes restarted) the machine turns on with values ‚Äč‚Äčlike 28 for heat and 24 for air conditioning. For the rest it seems perfect.

Regards!!!!