Jarno Rankinen
4b3f7c6f45
Configuration file ~/.config/enervent-ctrl/configuration.yaml
...
If the file does not exist, will be generated with default values.
CLI flags override values from configuration file.
2023-03-14 12:36:03 +02:00
Jarno Rankinen
d53e976a36
Squashed commit of the following:
...
commit 468bc33f7e
Author: Jarno Rankinen <jarno@oranki.net>
Date: Tue Mar 14 09:37:07 2023 +0200
gh-7 Log failed authentications. Forked rocketlaunchr/https-go to add CN to the generated certifcate
commit 0e10c9d925
Author: Jarno Rankinen <jarno@oranki.net>
Date: Sun Mar 12 22:30:53 2023 +0200
gh-7 Added HTTP basic authentication to REST API. Default credentials pingvin:enervent. Still need to implement logging failed auth requests. A log file option is also a good idea.
commit a3165db631
Author: Jarno Rankinen <jarno@oranki.net>
Date: Sun Mar 12 12:41:41 2023 +0200
gh-7 Updated Home Assistant rest example to https
commit 54b555c523
Author: Jarno Rankinen <jarno@oranki.net>
Date: Sun Mar 12 12:25:53 2023 +0200
gh-7 Enabled SSL encryption
commit 2738b60386
Author: Jarno Rankinen <jarno@oranki.net>
Date: Sun Mar 12 12:07:36 2023 +0200
gh-7 Implemented automatic self-signed SSL generation on startup under ~/.config/enervent-ctrl
Closes gh-7
2023-03-14 09:37:36 +02:00
Jarno Rankinen
0311605bae
Update README.md
...
Add mention about copyright.
2023-03-11 12:28:02 +02:00
Jarno Rankinen
f95004a7bc
Update README.md
2023-03-11 12:20:08 +02:00
Jarno Rankinen
534fb5939d
Implemented max cooling toggle to dashboard. Max heating is shown when the requested temperature is less than room temperature, otherwise Max cooling toggle is shown. Closes gh-22
2023-03-10 21:05:52 +02:00
Jarno Rankinen
ec402259f4
Rename build directory to BUILD
2023-03-10 14:15:56 +02:00
Jarno Rankinen
778c249b9b
gh-22 gh-6 ADashboard, rest entities, helpers and automations for boost and overpressure
2023-03-10 14:13:26 +02:00
Jarno Rankinen
a5fbc53eba
gh-6 Rework automations, as homeassistant.update_entity doesn't seem to be working for restful resources with multiple sensors
2023-03-10 13:47:34 +02:00
Jarno Rankinen
c6741645b6
gh-6 update dashboard, helpers and automations for temperature setting via helper+automations.
...
Will postpone updating the english dashboard until most of the features are
done in the finnish version.
2023-03-10 12:03:52 +02:00
Jarno Rankinen
4b89aec1c5
0.0.17 Remove 'Days until service'. Closes gh-25
2023-03-10 11:13:07 +02:00
Jarno Rankinen
a0dedc7fcd
0.0.16 Correct hreg addresses for humidity readings. Outside hum still shows 0%, will need to wait until summer to see if the reading works. Closes gh-26. Added 48h avg hum readings back to HASS dashboards
2023-03-10 11:09:36 +02:00
Jarno Rankinen
a0bb5c3e69
temperature endpoint can take raw register value, full degrees C or a single decimal precision float degrees C value as parameter. up & down as parameters shift the temperature setpoint up or down a full degree. Closes gh-21
2023-03-09 22:35:43 +02:00
Jarno Rankinen
415bf638be
gh-24 0.0.14 ReadCoil, WriteCoil, WriteCoils, andheckMutexCoils, now use common modbus.Client with proper locking
2023-03-09 22:18:12 +02:00
Jarno Rankinen
afcbe06581
gh-24Rework of the locking mechanisms. The bug causinga deadlock was probably caused by locking bebefore calling another function that also tries to acquire the lock...
2023-03-09 22:05:46 +02:00
Jarno Rankinen
c79f172f32
gh-24 WriteRegister uses common modbus.Client
2023-03-09 21:57:32 +02:00
Jarno Rankinen
d0d26d346a
gh-24 ReadRegister uses common modbus.Client
2023-03-09 21:51:43 +02:00
Jarno Rankinen
602a560cf9
gh-24 updateCoils and updateRegisters now use common modbus.Client
2023-03-09 21:26:28 +02:00
Jarno Rankinen
a49978ee5f
gh-21 PUT /api/v1/temperature/<action> for changing temperature setpoint
2023-03-09 16:15:54 +02:00
Jarno Rankinen
f0afee1256
gh-6 Changed icon for boost binary sensor
2023-03-08 23:57:41 +02:00
Jarno Rankinen
ff5ea40c7b
gh-6 updated Home Assistant YAMLs
...
- Sensor names only in English now
- Dashboards in Finnish and English
- Added helpers.yaml and automations.yaml, needed for the
Max heating & Adaptive circulation fan toggles in the dashboards.
Idea is that these can be copy-pasted to appropriate locations
in the UI or straight to configuration.yaml.
Experimenting currently with using HASS to change the device state
according to room temperature, that automation is not yet added
to automations.yaml
2023-03-08 23:46:14 +02:00
Jarno Rankinen
193cfede8d
0.0.12 Include all coil values in homeassistant status output
2023-03-08 20:46:07 +02:00
Jarno Rankinen
0f081fe5fd
CLI flags
...
-debug enables debug logging
-httplog enables HTTP access logging
-interval N sets background update interval to N seconds
closes gh-18
2023-03-03 10:09:43 +02:00
Jarno Rankinen
8e8b51f8b9
Improved p.Debug.Println, left out the DEBUG: prefix as couldn't figure out how to add the suffix yet. Closes gh-17
2023-03-03 09:28:41 +02:00
Jarno Rankinen
dbbc22809e
0.0.10 PinvinKL.Debug.Println, logs debug messages with prefix 'DEBUG:' if debug is enabled
2023-03-03 08:20:54 +02:00
Jarno Rankinen
93992d3dd6
POST /api/v1/coils/N to flip a coil
2023-03-03 08:08:36 +02:00
Jarno Rankinen
ce1c569564
Methods for reading and writing single holding registers. Unfortunately the writes don't seem to have much effect, the registers are reset after a short period or instantly. Maybe due to something with the library, but no errors are produced. Closes gh-5
2023-03-02 14:24:05 +02:00
Jarno Rankinen
bcb8d55126
gh-10 0.0.7 Check that only one of mutex coils is 1 at a time
2023-03-02 13:36:49 +02:00
Jarno Rankinen
7d6ea93421
'Heater return water' -> 'Return water' in HASS english version
2023-02-28 20:54:37 +02:00
Jarno Rankinen
c304704656
Finish renaming and actually show values for Measurements
2023-02-28 20:51:53 +02:00
Jarno Rankinen
173020b720
Version bump
2023-02-28 20:49:26 +02:00
Jarno Rankinen
6053698552
Rename VentInfo to Measurements, add heater element water temperature to Home Assistant data
2023-02-28 20:47:47 +02:00
Jarno Rankinen
b6450914d1
Coils for cooker hood and central vacuum modes
2023-02-28 20:32:18 +02:00
Jarno Rankinen
150ed97071
gh-6 /api/v1/status returns float values if applicable
2023-02-27 21:10:24 +02:00
Jarno Rankinen
853ef45464
gh-10 WriteCoils, wrapper for forcing multiple consecutive coils with a boolean slice
2023-02-25 01:21:42 +02:00
Jarno Rankinen
f76bddbb45
gh-10 read/write single coil api method
...
GET /api/v1/coils/N
- read coil N (int)
POST /api/v1/coils/N/VAL
- set coil N (int) to VAL, VAL can be one of accepted values for
strconv.ParseBool (1 or 0 is the simplest)
2023-02-24 22:52:13 +02:00
Jarno Rankinen
71e949f760
Highlight changed values in web looking glass pages (/coils, /registers)
2023-02-24 21:56:15 +02:00
Jarno Rankinen
6198d2b522
Added debug output to Monitor()
2023-02-24 21:55:24 +02:00
Jarno Rankinen
6ffb90b848
Reduced Monitor interval to 2 seconds, will implement a cli flag for this soon
2023-02-24 21:54:50 +02:00
Jarno Rankinen
5fddc0dcb7
gh-10 Method for writing a single coil
2023-02-23 22:07:51 +02:00
Jarno Rankinen
1759dabbca
gh-6 Found coil for overpressure (3) by experimenting, fix HA status logic
2023-02-23 20:42:00 +02:00
Jarno Rankinen
b1aa71e5c7
gh-6 Updated Home Assistant configuration files for room temperature
2023-02-23 20:09:33 +02:00
Jarno Rankinen
1b1a9c75ea
gh-6 Panel room temperature reading for Home Assistant status, comments
2023-02-23 20:08:47 +02:00
Jarno Rankinen
1f5a258937
gh-6 Add operating mode to HASS YAMLs
2023-02-19 22:51:57 +02:00
Jarno Rankinen
aba5156e7a
gh-6 Device operating mode parsed from bitfield. Bitfields are now 16 bits long, as they should be
2023-02-19 22:34:34 +02:00
Jarno Rankinen
ea00590e33
Merge pull request #15 from 0ranki/dependabot/pip/enervent-ctrl-python/werkzeug-2.2.3
...
Bump werkzeug from 2.2.2 to 2.2.3 in /enervent-ctrl-python
2023-02-19 21:29:54 +02:00
Jarno Rankinen
175254b4ba
gh-16 Retry reading registers 5 times, added debug variable to PingvinKL.New(). Not much debug output yet.
2023-02-19 21:28:50 +02:00
Jarno Rankinen
ea148e5a38
Fix copy-paste mistake in HASS yamls
2023-02-19 12:31:59 +02:00
Jarno Rankinen
e30c83c96a
gh-10 Background updates for data
2023-02-19 12:28:26 +02:00
Jarno Rankinen
f36c2b4f17
gh-6 Home Assistant sensors and dashboard example YAMLs, finnish and english versions
2023-02-19 11:39:47 +02:00
Jarno Rankinen
d3c2dd5de3
gh-6 All the simpler values for /status endpoint implemented. Alarms, op mode, uptime&date will be in separate functions
2023-02-18 22:18:37 +02:00