Comments (10)
Agree, more examples would be nice.
I could not figure out a way to count the number of times my wine cellar door was opened in a day/week/month.
from ha-measureit.
For counting the planes during the night, I also created an automation that listens to the flightradar24_entry event and then updates a counter. Then MeasureIt uses that counter as a source sensor from 22:00-07:00h.
alias: Flight counter
description: ""
trigger:
- platform: event
event_type: flightradar24_entry
condition: []
action:
- service: counter.increment
metadata: {}
data: {}
target:
entity_id: counter.flights_in_area
mode: single
It would be very nice if MeasureIt can count events directly. I will add that to my roadmap!
@bigramonk that would solve your case as well, as opening the cellar door will trigger an event in home assistant.
from ha-measureit.
The concept of MeasureIt is great, but more examples would be really helpful.
I'm trying to get time stats with full/empty home battery, but can't get it to work.
Condition template:
{states('sensor.scb_battery_soc') | float > 95}
{states('sensor.scb_battery_soc') | float < 10}
Edit:
Works now! Double brackets are mandatory. Didn't knew that.
{{states('sensor.scb_battery_soc') | float > 95}}
{{states('sensor.scb_battery_soc') | float < 10}}
from ha-measureit.
Now available in v0.5.4! Let me know your experiences!
from ha-measureit.
Same here. I haven't been able to count planes using flightradar integration. Examples how to use measureit would be great.
from ha-measureit.
@bigramonk that would solve your case as well, as opening the cellar door will trigger an event in home assistant.
I already have an automation triggered by the opening of my cellar which sends me a picture by Telegram. I'll add the counter, that should do the trick.
Thanks!
from ha-measureit.
That is indeed the most straightforward solution. The strength of MeasureIt would be if you want to count specifically how many times the cellar opens when you are not home, or when it's >30 degrees, etc.
from ha-measureit.
It would be very nice if MeasureIt can count events directly. I will add that to my roadmap!
From my initial reading of description, I (and clearly others) thought that was what the integration actually did!
I really look forward to this capability being built-in to the integration!
from ha-measureit.
Now available in v0.5.4! Let me know your experiences!
Brilliant! It would be great if you could provide new step by step instructions for the example counting planes with Flight radar based on the new version of MeasureIt!
from ha-measureit.
To be honest, I don't think this changes something to the approach I wrote down above.
I decided against listening to events in MeasureIt since it's quite an advanced concept which most users are not familiair with. Instead I implemented a counter that counts every time a condition becomes True.
You could use this and count each time 'sensor.flightradar24_entered_area' > 0, but then you'll miss out when 2 or more planes are entering.
from ha-measureit.
Related Issues (20)
- Dependency Dashboard HOT 1
- Reset with service HOT 6
- Show source_sensor in sensor properties HOT 1
- Retain or not option for sensor HOT 8
- Incorrect count for: "unit_of_measurement: h" HOT 9
- Add a non-resetting sensor HOT 2
- Daily Reset Using UTC Instead of Local Time HOT 14
- I just can't get it to work HOT 2
- Issue with updating meters HOT 1
- "Unknown error" when the user forgot to select a period from the list :joy: HOT 1
- Can't edit a sensor configuration HOT 1
- Next reset is one hour off when DST happens in period
- Support cron expressions for custom periods HOT 1
- Support for 'resetting source entities' with state_class TOTAL_INCREASING
- The integration needs to be adapted to changes in event filter signature
- Set or update value for counter HOT 2
- Add a Service: Increment Counter HOT 2
- Add Services: Start and Stop Timer
- Time tracking gives me incorrect values HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-measureit.