pihome-shc / pihome

PiHome - Smart Heating, Ventilation and Air Conditioning (HVAC)
http://www.pihome.eu
Other
52 stars 25 forks source link

PiHome version 2.0 #416

Open pihome-shc opened 3 years ago

pihome-shc commented 3 years ago

i was thinking should we aim for version 2.0 now, at version 2.0 we will drop upgrade from previous version. All extra features updates goes toward version 2.0

what you guys think?

sandreialexandru commented 3 years ago

In my opinion, going to version 2, which is a big step, should include some major improvements and bug fixes.

393 #415 #413 #417 are the ones that i'm thinking about, but I may be subjective 😁

pihome-shc commented 3 years ago

@sandreialexandru yes move from 1.x version to 2.x will have some upgrades and we need to decide database changes and try to stick with them so we don't have to update database or at least no major db update. in version 2.x

twa127 commented 3 years ago

Hi,

Sounds good to me.

Some of the changes are fundamental to how the system operates, I see version 2 moving away from being zone based eg #393 this will require some significant changes to the database but should add more flexibility for future enhancements.

393 is almost ready to go, perhaps this should be the first version 2 release , if anyone is interested in testing, I've attached the code, you need to run migrate_sensor.php to update the database

#393.zip

sandreialexandru commented 3 years ago

Having in mind that no future upgrades to the database should be made, I would suggest taking into consideration #413 . Doesn't anyone find this implementation useful? Something like this 6426206700041-termostat-de-camera-electronic-digital-cu-fir-ct-3s-1042

Maybe running a few tests with the reset button should be done before v2. I'm still thinking about the best way of this implementation and as soon as I have something working I shall upload. Keep in mind that we could need the use of a table to store the WiFi SSID and the password (or just keep them in memory untill wpa_supplicant.conf is written).

twa127 commented 3 years ago

Hi,

Can we have a repository for V2 ?

pihome-shc commented 3 years ago

PiHome - Next Generation Smart Thermostat version 2.0 repo is ready https://github.com/pihome-shc/PiHomeHVAC

twa127 commented 3 years ago

Hi,

Some notes on this version

The previous version was centered around the creation of zones, this version is more centered around devices. The system setup process is

  1. Add Nodes (as per the previous version)
  2. Create Temperature Measurement devices (with a node and child id)
  3. Create Relay devices (with a node and child id)
  4. Create Zones using the temperature measurement and relay devices created previously
  5. Temperature Measurement devices can be display without the need to be allocated to a 'zombie' zone

The Temperature Measurement devices can be created from the One Touch menu deploy1

New configuration GUIs are available for the Relays and Sensors devices deploy2

Part of the reason for this version is to support HVAC systems and hence the system can be configured to work in either the existing Boiler or HVAC mode. The mode is selected from settings/system configuration menu deploy3

The home screen will show the mode of operation deploy4 deploy5

The 'MODE' button will cycle through the various modes of operation, for Boiler mode this is OFF, TIMER, CE, HW or BOTH (not yet implemented), for HVAC the modes are OFF, TIMER, AUTO, HEAT, COOL or FAN.

The trusted boiler.php engine has been replaced by controller.php

I have left 2 sample databases in the MySQL_Database directory, eu_27_10_2020.sql and hvac_26_10_2020.sql

Any comments more than welcome

sandreialexandru commented 3 years ago

It looks great! Nice work! Looking forward to testing the new version. Could you please explain in a few words what TIMER, CE and HW(hot water, i believe) are and how are they changed from previous version?

twa127 commented 3 years ago

Hi

The idea was a spin off from the HVAC mode, the idea is to provide the same kind of function you get on a standard central heating controller, where you have OFF, Central Heating ON, Hot Water On, Both ON or TIMED. At the moment it does not do anything, I can always drop it, if it is not wanted

sandreialexandru commented 3 years ago

How about a Discord server, where we can chat about features and ask questions, leaving Github only for technical discussions?

pihome-shc commented 3 years ago

@sandreialexandru i agree, i have receive tons of email where people ask for help, i have to migrate PiHome site from current hosting as it is performing very very slow and i have plane to this on 7th November,

sandreialexandru commented 3 years ago

@twa127 I see that you are adding live temp to PiHOME v2 with the mode selector(central heating mode). I think the modes should be MANUAL(live temp) or TIMED(schedule, boost, override, night climate, holiday) and leave the zone based heating as it was. Let's say that Hot Water is the selected mode. What happens with the heating zones? No heating will occur? If Central Heating is selected, then no hot water zones will be managed. Another idea would be to have a switch under each zone card to toggle between manual and timed, but this would mean that we would have to keep track of the mode for every zone. Doesn't a heating flow based logic make it less complicated? (Boost>Night climate>Override>Schedule>Live temperature)

sandreialexandru commented 3 years ago

Searching for ideas of new features got me thinking about OVERRIDE. I see override as boost without a timer cut-off, which as @twa127 said, is a safety feature. I don't see any use of override as long as it is simple to edit a schedule or to modify target temp with live temperature slider. Do you agree?

sandreialexandru commented 3 years ago

@pihome-shc I have created an open server on Discord, so we cand chat about new features. This can be temporary untill you have time to create one for PiHOME or i can transfer ownership to you. Use this invite code: https://discord.gg/mXKZSsG