As @anon34565116 said, the spacing is off. But you’ll also need list indications. You have more than 1 platform and each platform needs a note that lets it know when the platform starts. The symbol that notes each section/platform is the - symbol. You can actually see it being used under monitored_conditions. It’s the same principle, it notes the start of a new item inside that indentation level.
Also, your spacing is off between each platform. It’s always best to keep everything in line. I.E. each time you need an indent, use 2 spaces.
Your indentation for synology is one space out which places it under the config of darksky. Backspace your synology platform one space for each line and you will be in business
snmp but baseoid is different for different UBNT models you can grab the snmp from my repo or you may have to do an snmpwalk to find out which ones to use I’m pretty sure mine should work any airmax models.
FYI, I noticed your uptime value_templates have an error in them. You’re if statement checking if they are under a minute should be {%- if time < 6000 -%} instead of {%- if time < 60 -%}. The time that comes back from these things are in microseconds which you account for in all your other checks aside from that first one.
Also, if your interested, I condensed it a little bit for myself.
- platform: snmp
host: !secret unifi_bonus_switch
name: Bonus Room Switch Uptime
baseoid: 1.3.6.1.2.1.1.3.0
value_template: >
{%- set time = value | int // 100 %}
{%- set minutes = ((time % 3600) // 60) %}
{%- set minutes = '{}min'.format(minutes) if minutes > 0 else '' %}
{%- set hours = ((time % 86400) // 3600) %}
{%- set hours = '{}hr '.format(hours) if hours > 0 else '' %}
{%- set days = (time // 86400) %}
{%- set days = '{}d '.format(days) if days > 0 else '' %}
{{ 'Less than 1 min' if time < 60 else days + hours + minutes }}
Thanks will use your condensed version I probably should have you troll through all my templates and use your templating wizardry I think I could condense my templates by half in most instances. It is not my skill set am self taught I’m afraid and I go for the “it only has to work” mantra with templates.
I love the way you layout crap in your UI. I’m not inventive enough with this. I’ll share my config with you later on. It may save you some time in the future. You could really make use of yaml anchors.