Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


peejayw

1841 posts

Uber Geek


#306118 29-Jun-2023 18:14
Send private message

Is anyone experienced with History Stats? I have set up a rain gauge following this project and its working well. Currently the daily rainfall data resets to zero at midnight and I want it to run from 7am to 7am the following day instead so I changed the sensor as follows,

 

```
- platform: history_stats
    name: Rainsensor flips
    entity_id:  binary_sensor.lumi_lumi_sensor_magnet_aq2_opening_2
    state: "off"
    type: count
    start: '{{ now().replace(hour=7, minute=0, second=0) }}'
    duration:
      hours: 24
```

 

but that didnt work, still rolled over at 12.00

 

I asked the OP for advice and he said to make these changes...

 

remove "start"

 

and add

 

end: "{{ (now().replace(minute=0, second=0, microsecond=0) + timedelta(hours=8)).replace(hour=16) }}"
duration:
    hours: 24

 

That didnt work either so now I am hoping someone here could advise me.

 

Thanks.

 

 

 

 





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Create new topic
Tinkerisk
4235 posts

Uber Geek


  #3096317 29-Jun-2023 18:35
Send private message

Data collection sent to InfluxDB („big data“) and data display/analysis with Grafana.

 

 





- NET: FTTH, OPNsense, 10G backbone, GWN APs, ipPBX
- SRV: 12 RU HA server cluster, 0.1 PB storage on premise
- IoT:   thread, zigbee, tasmota, BidCoS, LoRa, WX suite, IR
- 3D:    two 3D printers, 3D scanner, CNC router, laser cutter




hairy1
3332 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #3097422 29-Jun-2023 21:19
Send private message

I haven't used it but take a look at the Victoria Metrics add on.

Cheers, Matt




My views (except when I am looking out their windows) are not those of my employer.


Create new topic





News and reviews »

Gen Threat Report Reveals Rise in Crypto, Sextortion and Tech Support Scams
Posted 7-Aug-2025 13:09


Logitech G and McLaren Racing Sign New, Expanded Multi-Year Partnership
Posted 7-Aug-2025 13:00


A Third of New Zealanders Fall for Online Scams Says Trend Micro
Posted 7-Aug-2025 12:43


OPPO Releases Its Most Stylish and Compact Smartwatch Yet, the Watch X2 Mini.
Posted 7-Aug-2025 12:37


Epson Launches New High-End EH-LS9000B Home Theatre Laser Projector
Posted 7-Aug-2025 12:34


Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.