-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support for Saphir Compact AC #4
Comments
Hi, I will look into it in the next couple of days. Could you additionally provide me the log during startup/first connection to cp plus. Also I had no access to an Combi D6 so I might need your assistance to validate if the switch from electronic to Diesel heating is working or what message is expected. Cheers Fabian |
Hi thx for the fast reply, I help you where i can :) Here is the second log just to clarify it works fine until i plug in the ac :) |
Hi, |
Hey really nice fix :) i got the log with the AC for you
hope this helps you. |
Thanks for the logs that helps a lot. I will have a think how best to test controlling the Aircon. |
Hey im back :) i have a new log for you if you want to try it its the quto mode with the same config as aboth
hope this helps if you need someone to test i can assit you with that :) |
Hi,
Thanks |
Hey i tested your code snipped and all 3 guesses are corect and work fine
and i made you a new log for the combinde heating an cooling.
|
Can you please test a few things:
Using the results I would update the code and rename the variables accordingly. What are the correct naming for the mode values? What are the called on the display or manual? |
here are my test results:
Example
activating and deactivating of the auto mode set auto mode temp from 18 to 25 |
Thanks for the log. That's very helpful and at the same time I now have even more questions.
|
|
Hey i tested point 3 and both showed up on the cp plus with an app call but nothing changed the code i tried:
and
|
and i haver a new problem with the ac it just vanishes from the cp plus and i have to cut the power it and after that it is back do you see anything in the logs that looks suspicious? |
I checked the logs and can see that the AC device was reported as online and then after it is switched on suddenly switches to offline. But the Inetbox app is not informed about any error reason. I checked no unknown bytes are set. |
thats odd |
Yeah that would be helpful and maybe a a log. |
ok i will try that and give you the results. |
So I have cleaned up the code and prepared for testing of the Auto mode. There the initial code will no longer work as things got renamed. number:
- platform: truma_inetbox
name: "Aircon Temperature"
type: AIRCON_MANUAL_TEMPERATURE If you want to keep the lamba then it should look this now: lambda: |-
const auto truma_inetbox = id(truma_inetbox_id);
if (!truma_inetbox->get_aircon_manual()->can_update()){
ESP_LOGW("lambda", "Cannot update aircon.");
return;
}
const auto aircon_msg = truma_inetbox->get_aircon_manual()->update_prepare();
//aircon_msg->mode = truma_inetbox::AirconMode::OFF;
aircon_msg->mode = truma_inetbox::AirconMode::AC_VENTILATION;
//aircon_msg->mode = truma_inetbox::AirconMode::AC_COOLING;
aircon_msg->operation = truma_inetbox::AirconOperation::AC_ONLY;
aircon_msg->energy_mix = truma_inetbox::EnergyMix::ENERGY_MIX_GAS;
aircon_msg->target_temp_aircon = truma_inetbox::decimal_to_aircon_manual_temp(20.0f);
truma_inetbox->get_aircon_manual()->update_submit(); As for the auto mode can you please test the following lamba: lambda: |-
const auto truma_inetbox = id(truma_inetbox_id);
if (!truma_inetbox->get_aircon_auto()->can_update()){
ESP_LOGW("lambda", "Cannot update aircon.");
return;
}
const auto aircon_msg = truma_inetbox->get_aircon_auto()->update_prepare();
aircon_msg->target_temp_aircon_auto = truma_inetbox::decimal_to_aircon_auto_temp(20.0f);
aircon_msg->energy_mix_a = truma_inetbox::EnergyMix::ENERGY_MIX_ELECTRICITY;
aircon_msg->energy_mix_b = truma_inetbox::EnergyMix::ENERGY_MIX_ELECTRICITY;
//truma_inetbox::EnergyMix::ENERGY_MIX_GAS
//truma_inetbox::EnergyMix::ENERGY_MIX_ELECTRICITY
//truma_inetbox::EnergyMix::ENERGY_MIX_MIX
aircon_msg->el_power_level_a = truma_inetbox::ElectricPowerLevel::ELECTRIC_POWER_LEVEL_900;
aircon_msg->el_power_level_b = truma_inetbox::ElectricPowerLevel::ELECTRIC_POWER_LEVEL_900;
//truma_inetbox::ElectricPowerLevel::ELECTRIC_POWER_LEVEL_0
//truma_inetbox::ElectricPowerLevel::ELECTRIC_POWER_LEVEL_900
//truma_inetbox::ElectricPowerLevel::ELECTRIC_POWER_LEVEL_1800
truma_inetbox->get_aircon_auto()->update_submit(); |
Hey Fabian I finally managed to test the code, and it works fine if I only connect the AC, but if I connect the heater to it, it does not.
|
I-Net-Box implementation with heater works fine.
When i connect the Saphir Compact AC the I-Net-Box crashes with the following error.
Hardware:
The text was updated successfully, but these errors were encountered: