I have added a sollution to V_VAR problem in both my rain and power pulse meter (check these threads). As said above, Homeassistant will not give an answer to these requests if there are no value in the mysensors json file. Either add this in the hardware code or as I did, request a couple of times to make sure you get the value if there is one. Count these requests and set a upper limit, like five or ten reuqest. Once your each this limit, send the value 0 to HA and this will be updated in the json file and start from there.
Thank you @fabyte ! I had mostly figured out the persistence file thing... had to jump through some hoops to change from pickle to json so I could edit it -- in the process cleared all my devices, but now I am set up to remove devices easily as i test and build out. Did not think about the database file... will check that out too. Appreciate the help!
my config is:
- device: '192.168.0.147'
- device: '192.168.0.146'
i also have some errors in the log, but i still have to look where the problem is.
2020-02-16 17:21:14 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up mysensors platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 159, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
File "/usr/src/homeassistant/homeassistant/components/mysensors/sensor.py", line 53, in async_setup_platform
File "/usr/src/homeassistant/homeassistant/components/mysensors/__init__.py", line 178, in setup_mysensors_platform
devices[dev_id] = device_class_copy(*args_copy)
File "/usr/src/homeassistant/homeassistant/components/mysensors/device.py", line 39, in __init__
child = gateway.sensors[node_id].children[child_id]
@macieiks This is triggered by the HA, as the log suggests:
2020-02-19 08:18:39 DEBUG (MainThread) [mysensors] Sending 0;255;3;0;2;
2020-02-19 08:18:39 DEBUG (MainThread) [mysensors] Receiving 0;255;3;0;2;2.3.2
2020-02-19 08:18:49 DEBUG (MainThread) [mysensors] Sending 0;255;3;0;2;
2020-02-19 08:18:49 DEBUG (MainThread) [mysensors] Receiving 0;255;3;0;2;2.3.2
Please check with the HA ppl