Comments (2)
Awesome! That did work! Thanks a lot!
from hass-config.
DSM
Control Panel > Terminal & SNMP > Enable SNMP Service
Tick SNMPv1, SNMPv2c service.
Community: public
Click Apply
configuration.yaml
sensor:
- platform: snmp
host: !secret synologydsm_host
community: public
name: Drifttid
baseoid: 1.3.6.1.2.1.25.1.1.0
value_template: >
{% set uptime = value %}
{% set days = ((uptime | int) / 8640000) | int %}
{% set hours = ((uptime | int) / 360000) | int %}
{% set minutes = ((uptime | int) / 6000) | int %}
{% if days >= 2 %}{{ days }} dagar
{% elif days >= 1 %}{{ days }} dag
{% elif minutes < 1 %}Mindre än 1 minut
{% elif minutes <= 1 %}{{ minutes }} minut
{% elif minutes < 60 %}{{ minutes }} minuter
{% elif hours <= 1 %}{{ hours }} timme
{% elif hours < 24 %}{{ hours }} timmar
{% endif %}
If the baseoid doesn't work google "synology snmpwalk"
from hass-config.
Related Issues (20)
- Set Battery state with percentage possible? HOT 1
- template yaml HOT 1
- There are adjustments about the button card lock HOT 3
- Restarting after update to yaml HOT 2
- Wallpanel Full Screen HOT 2
- 2023.7 workaround HOT 2
- Alarm Card HOT 1
- Can't edit the dashboard cards. HOT 4
- Popup is transparent on iPad HOT 1
- Why does a broken icon appear when I toggle a button? HOT 1
- Manually copy over these files from matt8707/hass-config HOT 1
- Missing blur overlay on media, button card with chrome browser
- Showing Camera in Sidebar? HOT 4
- Missing Background (just had it on Chrome)
- Vacuum More Info (whack-a-mole needed) HOT 9
- Custom element doesn't exist: grid-layout. HOT 1
- Youtube watching sensor not working anymore
- Dashboard Home Assistant
- how to use LG WebOs on media slider
- No Background Image
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 hass-config.