Skip to content
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

Read all lines from file, not only the last one #6

Open
VeksKM opened this issue Sep 23, 2021 · 2 comments
Open

Read all lines from file, not only the last one #6

VeksKM opened this issue Sep 23, 2021 · 2 comments

Comments

@VeksKM
Copy link

VeksKM commented Sep 23, 2021

Can you make it read all lines from the file, not just the last one? So that, for example, the data in the week / hour file can be set not in one line of 168 elements, but in 7 lines of 24 elements.

@yann1420
Copy link

Another suggestion,
instead of using (e.g.) 168x single numbers, one could use not a series of tuples where the tuple consist of a point in time (e.g. 0 being the first hour of the week or 167 being the last number of the week) and a number being the temperature point where one wants to switch to. So for a week one would only need a tuple where the temperature needs to change.
Furthermore I can imagine it would not be too hard to make a nice GUI for it so also a NOOB would be able to program this thermostat.

@MapoDan
Copy link
Collaborator

MapoDan commented Mar 9, 2022

Ciao guys,
Well the idea of having everything in 1 line is to make it editable via HA interface with input numbers, notify integration and a couple of other things.
I did want above and it works. It is a little bit complex to mantain.

To be honest I'm not an expert developer, I'm just 'playing' with it to solve a couple of things in my house.
So building a GUI I'm not able at all, but I have prepared a first version of an Excel file that should ease the operation. Once I've run the test I'll put it here.

In order to read more lines, I don't know how to do it, but it should be feasable. However this means that the file has to contain only that information. So I have to think about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants