-
Notifications
You must be signed in to change notification settings - Fork 37
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
Change default setting for only_publish_changed
#127
Comments
Hey legrego! Is this feature enabled yet? I tried enabling it with v0.4.0-beta2 and all data stopped coming in at all unless I have a glaring typo. Very much looking forward to the next release. Also, related to this, I think all the traffic with this set to I disabled the plugin for awhile, and no more issues with the Chromecasts. The error I was getting from HA was it couldn't reach the Chromecasts which was bizarre, and restarting HA, NOT the Chromecasts would fix it. I have a hypothesis that all the outgoing sockets may be getting used up on the HA side and it can't reach out until it reboots. Only a hypothesis as disabling the plugin seems to resolve it, and reminds me of something I've seen in the past with work. No hard evidence yet it is this plugin or maybe a combo of this and other plugins, not sure yet. |
Hey @mloebl - this hasn't been enabled yet by default, but it should be functional. I won't have time to test my own setup for a couple of days, but I'll see if I can reproduce this.
Interesting, thanks for letting me know. Can you adjust the It makes me wonder if we aren't closing (or reusing) our connections properly, but I suspect we'd see failure notices from this plugin if that was the case. If you can, I'd also like to see what this component reports with debug logging enabled for your setup: # configuration.yml
logger:
default: info
logs:
custom_components.elasticsearch: debug |
@legrego No worries and thanks for the reply. I've bumped up the The Chromecasts work solid outside of HA, and that plugin I believe just basically makes an http/https redirect call to them, so not a lot of rocket science there either. HA (or Supervisor/docker?) may have an issue on it's side cleaning up stale sockets. |
@mloebl
I noticed a similar problem on my local install. It appears that we attempted to publish a document before the component was fully initialized. I haven't found the root cause there yet, but I added additional logging in #137, which works around the problem for the time being. In my particular case, I saw an exception in the logs, and then my I published |
I will give it a shot, thank you!! FWIW I changed |
Should I still be seeing |
That's expected if you started one of these betas with existing Elasticsearch config in your yaml file. If you want to use the UI, then you'll need to remove the config entry from your yaml, and restart. Next, remove the Elasticsearch integration from the integrations screen (don't remove the code, or files). Once that's done, you can add the integration back through the UI. At this point, you'll be able to use the UI to tweak your config |
That worked, thank you! So much easier now to add domains and entities to exclude :D |
@legrego TLDR; Just a followup, the Chromecast issue was NOT this plugin Full explanation... the networking issue I've been having are not related to this integration. To save a long complex situation, there was a routing problem on my network where my IP cameras were isolated. HA was constantly trying to hit those, and 50% of the time having a route issue (but no real errors, found it by accident debugging frigate nvr). This believe it or not lead to a memory leak bug I had been chasing for weeks now in HA, this memory leak would cause HA to restart it's container every 24-48hours without me knowing it, making it look like the issue went away when I disabled this plugin. |
@mloebl I appreciate you following up -- thanks! I'm glad we were able to rule out the Elasticsearch component. I just saw your writeup on reddit about the memory leak, and I never would have guessed a networking problem either! |
Currently, this integration will publish the current state of all entities every
n
seconds, regardless of whether or not this entity underwent a state change.The intent was to make visualizing this information easier in Kibana, as missing values would not render nicely in line or area charts.
Users who only want to publish state changes need to configure
only_publish_changed: true
.Kibana recently added support for fitting functions for area and line charts (elastic/kibana#78154), so the need for us to publish all states should be reduced.
This issue is a proposal to change the default setting for
only_publish_changed
fromfalse
totrue
.The text was updated successfully, but these errors were encountered: