add york
This commit is contained in:
parent
2cbd94bd17
commit
90fb35aeb4
3 changed files with 159 additions and 3 deletions
15
src/main.cpp
15
src/main.cpp
|
|
@ -145,13 +145,21 @@ void setup()
|
|||
climateCard_daikin.bindFRAM(&espmega.fram, 5000);
|
||||
climateCard_daikin.loadStateFromFRAM();
|
||||
climateCard_daikin.setFRAMAutoSave(true);
|
||||
espmega.display->bindclimateCard_daikin(&climateCard_daikin);
|
||||
espmega.display->bindclimateCard(&climateCard_daikin);
|
||||
|
||||
espmega.installCard(4, &ct_light_phase1);
|
||||
espmega.installCard(5, &ct_light_phase2);
|
||||
espmega.installCard(6, &ct_socket);
|
||||
espmega.installCard(7, &ct_ac_phase1);
|
||||
espmega.installCard(8, &ct_ac_phase2);
|
||||
espmega.installCard(9, &ct_ac_phase3);
|
||||
|
||||
espmega.installCard(10, &climateCard_york);
|
||||
climateCard_york.bindFRAM(&espmega.fram, 5000);
|
||||
climateCard_york.loadStateFromFRAM();
|
||||
climateCard_york.setFRAMAutoSave(true);
|
||||
espmega.display->bindclimateCard(&climateCard_york);
|
||||
|
||||
espmega.iot->registerCard(4);
|
||||
espmega.iot->registerCard(5);
|
||||
espmega.iot->registerCard(6);
|
||||
|
|
@ -200,9 +208,10 @@ void setup()
|
|||
pm_fan_speed.enableSetValue("/pm/set_fan_speed");
|
||||
espmega.iot->registerCard(0); // Register the Input Card
|
||||
espmega.iot->registerCard(1); // Register the Output Card
|
||||
espmega.iot->registerCard(2); // Register the Climate Card
|
||||
espmega.iot->registerCard(2); // Register the Climate Card Daikin
|
||||
espmega.iot_>registerCard(10); // Register the Climate Card York
|
||||
auto bindedGetTime = std::bind(&ESPMegaPRO::getTime, &espmega);
|
||||
iseDisplay.begin(&espmega.inputs, &espmega.outputs, &climateCard_daikin, &pm_switch, &pm_fan_speed);
|
||||
iseDisplay.begin(&espmega.inputs, &espmega.outputs, &climateCard_daikin, &climateCard_york,&pm_switch, &pm_fan_speed);
|
||||
espmega.iot->registerRelativeMqttCallback(&handleMqttMessage);
|
||||
iseDisplay.registerPageChangeCallback(&handlePageChange);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue