{"action":"created","issue":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/1135","repository_url":"https://api.github.com/repos/balloob/home-assistant","labels_url":"https://api.github.com/repos/balloob/home-assistant/issues/1135/labels{/name}","comments_url":"https://api.github.com/repos/balloob/home-assistant/issues/1135/comments","events_url":"https://api.github.com/repos/balloob/home-assistant/issues/1135/events","html_url":"https://github.com/balloob/home-assistant/issues/1135","id":131635129,"number":1135,"title":"Can I trigger a write to Influx on every piece of sensor information?","user":{"login":"alanbowman","id":2292983,"avatar_url":"https://avatars.githubusercontent.com/u/2292983?v=3","gravatar_id":"","url":"https://api.github.com/users/alanbowman","html_url":"https://github.com/alanbowman","followers_url":"https://api.github.com/users/alanbowman/followers","following_url":"https://api.github.com/users/alanbowman/following{/other_user}","gists_url":"https://api.github.com/users/alanbowman/gists{/gist_id}","starred_url":"https://api.github.com/users/alanbowman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanbowman/subscriptions","organizations_url":"https://api.github.com/users/alanbowman/orgs","repos_url":"https://api.github.com/users/alanbowman/repos","events_url":"https://api.github.com/users/alanbowman/events{/privacy}","received_events_url":"https://api.github.com/users/alanbowman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-05T12:46:02Z","updated_at":"2016-02-06T21:18:22Z","closed_at":null,"body":"(This may affect more than just writes to Influx, but it is where I have noticed the issue)\r\n\r\nI have an MQTT sensor that measures household power.  HA receives the data and writes it to Influx.  However, it only appears to write when the value changes.  Long periods of constant power use do not get updates, leading to a graph as shown below:\r\n![image](https://cloud.githubusercontent.com/assets/2292983/12846745/2d8e6764-cc06-11e5-8c4c-3cbb1260a18b.png)\r\n\r\nThe green line is what I see given the blue sensor points, but the red line is what I would expect. (Please forgive the scrawl, it seemed the easiest way to illustrate the situation).\r\n\r\nCan I make each piece of sensor data be written, even if it is the same as the last one?"},"comment":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/comments/180865906","html_url":"https://github.com/balloob/home-assistant/issues/1135#issuecomment-180865906","issue_url":"https://api.github.com/repos/balloob/home-assistant/issues/1135","id":180865906,"user":{"login":"balloob","id":1444314,"avatar_url":"https://avatars.githubusercontent.com/u/1444314?v=3","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"created_at":"2016-02-06T21:18:22Z","updated_at":"2016-02-06T21:18:22Z","body":"I think it should fall within the domain of Home Assistant.\r\n\r\nLooking at the different components, this is something that is only relevant for sensor entities with a unit of measurement - but not all of them. It depends if the platform is caching data that it gets from device/cloud or that it is actually retrieving the latest information when new data is polled. Only in the last case would we want to send a state changed event.\r\n\r\nI need to give this some more thought."}}