-
Notifications
You must be signed in to change notification settings - Fork 25
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
Node ID naming convention #157
Comments
@MindaugasMeskauskas |
you right this is bad idea, but how we solve issue when node could have multiple functions e.g. Zone controller + water temp or boiler controller + water temp?
add another name in where (my current solution) e.g.: |
i think that would be good to amend exiting query to accommodate node with multi functions. on same note its time to define zone and boiler controller names Boiler Controller
Zone Controller |
Just a thought and going back to the original idea - why not use 3 or 4 HEX digits to identify the node, the first digits would identify the controller mix by setting bits eg
then combinations would be -
If that does not give us enough options we could use 2 HEX digits for 16 controller types, and even expand by using more digits So to display only temperature nodes you check if bit 0 set The last 2 HEX digits would be the node number 0 - 255 Conversion to real world names would be a config file or table |
@twa127, |
😁 you and me both
…Sent from my iPhone
On 3 Mar 2020, at 12:02, PiHomeHVAC ***@***.***> wrote:
@twa127,
I have read your reply but didn’t understand,
My brain isn’t functioning properly these days, i think i nees some holidays, i will go through your reply over weekend and think it through
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Would it be better to use like for filtering rather than equal to for example: This would cover all mix use nodes like "Boiler Relay & Temp Sensor" if your naming is OK |
@aszumski % supported by all versions of MySQL/MariaDB? until node id sequence is decided this could be a alternant solution. |
@pihome-shc |
i agree with @aszumski with using %Zone% and %Boiler% options. |
Every home is different so that is heating system setup. I was thinking to use defined Node ID naming convention to make PIHome more flexible. Currently my setup has boiler relay and hot water temperature nodes as single node and that breaks few things on website as things are displayed by sketch name. Would this fit to future of PIHome?
Example: Node ID naming convention (x represents node number 0-9) this gives more flexibility in variety of different setup and future expansion/improvements, e.g. other type of sensors combined to single node.
So to display only temperature nodes you check if middle number is 2.
For Hot Water temperature node you check if middle number is 3.
For boiler if first number 2 and so on.
SELECT * FROM nodes WHERE node_id LIKE '_2_'
The text was updated successfully, but these errors were encountered: