Closed cristianchelu closed 9 months ago
How about now? Let me know if it works!
Alright, this was a surprisingly fast fix.
Supplying either one or the other results in a linter error.
Supplying none works the same as supplying both with value 0 -- no heartbeat messages in the logs with level=DEBUG
after a few minutes.
I have a few more issues I found / feature requests, hope you don't mind the spam. I thought to try PRs instead, but I believe it's best I leave those for configs :)
Thanks!
Sure, fire away. PRs, issues or comments here - all fine by me :)
I'm trying to create a config for Smart Pet Food Feeder (mmgg.feeder.fi1) which doesn't need a heartbeat SIID/PIID and discovered that even though
miot_heartbeat_siid
andmiot_heartbeat_piid
are defined as Optional in the config validator schema, they don't have a default set in__main__.py
.With the following yaml I get no editor warnings but the below error on compilation.
This yaml snippet works as intended though and no heartbeat message is being sent to the MCU.
ESPHome 2023.12.9 esphome-miot@d64d16b
P.S. Thanks for this repo! I already have some parts of the config working beatifully for my device.