Closed einarjh closed 1 year ago
Hello, I can understand that the json-writer error could be a bit more informative. Did a push just now to include a lite more meat to that bone. However this occurs when the Airiana tries to put the humidity data to the json-file. If humidity data is missing for some reason the call will throw this strangely worded error. Do you know if your units humidity sensor is malfunctioning or is incorrectly configured? I will do an update shortly to address the need for humidity data, might take me a few minutes.
ok, I just pushed 9616a5c9 give it a try by doing a git pull && ./restart
I'm not aware of any malfunctions or misconfigurations, though how could I tell? The ventilation system has seemed to be working fine, this is the first time I'm hooking up to it via modbus.
The system detected my shower yesterday morning, though, and it produces humidity graphs: example
I updated to 9616a5c and still getting the same error. note also a numpy error that I've seen before, but it had disappeared from my log on my initial bug report:
Using /dev/ttyUSB0
Holdoff time in effect, will re-ping in one hour.
System started Sun Oct 9 18:44:12 2022
Holdoff time in effect, will re-ping in one hour.
Pressure difference set to: 10% Sun Oct 9 18:45:08 2022
json-writer error []
/usr/lib/python3/dist-packages/numpy/core/fromnumeric.py:3372: RuntimeWarning: Mean of empty slice.
return _methods._mean(a, axis=axis, dtype=dtype,
/usr/lib/python3/dist-packages/numpy/core/_methods.py:170: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
json-writer error []
json-writer error []
json-writer error []
....
did it really update? the json-writer error should be more informative in the new version.
try to pull the latest and restart, see if you get the updated error msg
Seems I hadn't gotten the latest update after all (I used the update.py script) - now it seems to work, no more error messages! But now, of course, I'm missing out on "measured humidity" and "refererence humidity" values:
{
"extract": 21.91044444444444,
"coolingMode": "false",
"supply": 19.834222222222227,
"sf": 91,
"ef": 100,
"exhaust": 12.110444444444605,
"autoON": "true",
"shower": "false",
"rotorSpeed": 100,
"sfRPM": 6300,
"energyXfer": 584.4749471335036,
"efficiency": 83.70358142303336,
"efRPM": 6180,
"name": "VTR300",
"filterPercentRemaining": 99.5,
"pressure": 994.3,
"filterInstalledDays": 2,
"rotorActive": "yes",
"elecHeater": 0,
"inlet": 9.169241111111111,
"electricPower": 446.8043855191196,
"electricPowerTotal": 236.06
}
I'm curious; why does it show up in the graphs?
Quick answer; it is not there because you probably do not have an installed/configured humidity sensor; the humidity level you see in the diagram is a calculated one. I’ll fiddle a bit to get you the data you want in the json-file but you may want to check your units spec and or installation, I have a vtr300 aswell and it has an rh-sensor.
a fix is up, now added CalculatedHumidity to the json output file
That's awesome, thanks!
I had a look at the installation and service manual for the VTR 300, and the diagram for the print card clearly indicates a terminal header for a humidity sensor. This headed is missing from my print card. I'm at a loss. This sensor, is it meant to be within the unit itself, or is it an external sensor somewhere in the ducts?
I'm even more confused, now I'm seeing all three measurements:
{
"extract": 21.778700542489318,
"coolingMode": "false",
"supply": 20.179055555555554,
"sf": 36,
"ef": 40,
"exhaust": 11.938691467216982,
"autoON": "true",
"shower": "false",
"rotorSpeed": 100,
"sfRPM": 3060,
"energyXfer": 195.9557019197502,
"efficiency": 87.14653664030423,
"efRPM": 3240,
"name": "VTR300",
"filterPercentRemaining": 99.5,
"pressure": 994.3,
"filterInstalledDays": 2,
"rotorActive": "yes",
"elecHeater": 0,
"inlet": 9.334068333333336,
"electricPower": 75.00377635074058,
"electricPowerTotal": 13.51,
"calculatedHumidity": 43.8,
"referenceHumidity": 39.91472108522595,
"measuredHumidity": 43.79398610486934
}
Should "rotorActive" be a boolean, and a binary sensor? Or will it sometimes say "maybe"? :grin:
Its usually combined with the extrect temp sensor.
Skickat från min iPhone
9 okt. 2022 kl. 22:51 skrev einarjh @.***>:
That's awesome, thanks!
I had a look at the installation and service manual for the VTR 300, and the diagram for the print card clearly indicates a terminal header for a humidity sensor. This headed is missing from my print card. I'm at a loss. This sensor, is it meant to be within the unit itself, or is it an external sensor somewhere in the ducts?
— Reply to this email directly, view it on GitHubhttps://github.com/BeamCtrl/Airiana/issues/24#issuecomment-1272625502, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACUJ7E3TW7QHOZZT2R3RNU3WCMV6PANCNFSM6AAAAAARAU7IUM. You are receiving this because you commented.Message ID: @.***>
I did an update to make sure the calc value and measured to not bleed over on each other. there should be either or
closing after running live for 48hrs
Describe the bug The file air.out remains empty and the RAM/err file is filled with the error message "json-writer error []"
The rest seems to be working.
To Reproduce Steps to reproduce the behavior: I started with a blank Raspberry Pi 4 with the latest raspbian lite, and ran the install command.
Expected behavior Sensor data is available for publishing to mqtt.
Screenshots This is a paste from the airiana web frontend:
Desktop (please complete the following information):
Additional context Add any other context about the problem here.