i00 / Chatter

1 stars 0 forks source link

SRM sensor #1

Open i00 opened 4 years ago

i00 commented 4 years ago

Chatter for further information in: https://github.com/home-assistant/core/pull/31523#issuecomment-623335873

skynet01 commented 3 years ago

Yes, ill even buy you some beer/coffee to motivate you if necessary :)

i00 commented 3 years ago

Will have a look at the documentation to implement the interface config this weekend.

skynet01 commented 3 years ago

@i00 Kris, do you by any chance have any updates on your latest Lovelace config? It looks like the latest version of Multiple Entity Row broke the config again :)

i00 commented 3 years ago

@skynet01 ... works for me ... what does it look like for you?

skynet01 commented 3 years ago

Multiple Entity Row got updated to v4.1.1 and the rows are now busted. I downgraded back to 3.5.1 for now.

i00 commented 3 years ago

Will hopefully get around to looking at this in a few weeks :P

genesispc commented 3 years ago

Hey I've been seeing "2021-05-09 20:52:32 ERROR (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'synology_srm_router'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'synology_srm_router'" lately, have you had a chance to work on this. Can I help I really like the extra details provided.

pepsonEL commented 3 years ago

@i00 is any chance to implement it to official integration in HA ?

pepsonEL commented 3 years ago

but this project was lost.... and no continiue by Synology.

I also think that NSM looks better than SRM , i dont know why Synology lost this project. Now good news will be if Synology implement functionsality NSM to new SRM 1.3.0 which will be release in newar future. But i dont know if it implement any feature in new SRM.

genesispc commented 3 years ago

I created a manifest.json file in the synology_srm custom components directory with the following contents. It seems to have removed the error.

{ "domain": "synology_srm_router", "name": "Synology SRM integration", "version": "1.0.0", "documentation": "", "dependencies": [], "codeowners": [], "issue_tracker": "", "requirements": [], "config_flow": false }

pepsonEL commented 3 years ago

Ok but how use it in HA ?

skynet01 commented 3 years ago

Ok but how use it in HA ?

Go to custom_components\synology_srm_router open file manifest.json (or create it if its not there) and paste

{
"domain": "synology_srm_router",
"name": "Synology SRM integration",
"version": "1.0.0",
"documentation": "",
"dependencies": [],
"codeowners": [],
"issue_tracker": "",
"requirements": [],
"config_flow": false
}

@i00 Kris any chance you have updated config for the Multiple Entity Row 4.2.0? I tried poking around it myself but your templating skillz are beyond me 😂

pepsonEL commented 2 years ago

@pepeEL Sure I will do this in two separate posts below for ease image

Hi I configure as you show and i have a problem with icons as show on image: icons

skynet01 commented 2 years ago

I had the same issue as you, i think its cause the Multile Entieties rows got updated. I switched to using Flex-table-card. You can get in on HACS. It's much easier to use, displays data in a cleaner way and uses much less resources: Here is my example:

type: custom:stack-in-card
title: Ethernet Devices
cards:
  - type: custom:auto-entities
    filter:
      exclude:
        - state: not_home
      include:
        - attributes:
            scanner: SynologySrmDeviceScanner
            connection: ethernet
    card:
      type: custom:flex-table-card
      sort_by: hostname
      clickable: true
      columns:
        - data: hostname
          name: Name
        - data: ip_addr
          name: IP
  - type: custom:flex-table-card
    entities:
      include: device_tracker.*
    title: Wireless Devices
    sort_by: hostname+
    strict: true
    clickable: true
    columns:
      - data: hostname
        name: Name
      - data: band,current_rate
        name: Band
        multi_delimiter: ' - '
        suffix: Mbps
      - data: ip_addr
        name: IP
      - data: band
        name: Name
        hidden: true

image

advorsky73 commented 2 years ago

So any updates on this? Is it integrated already?

pepsonEL commented 2 years ago

I also wait for any integration but probably no plan for integration.

skynet01 commented 2 years ago

The SRM sensor stopped working for me, or more accurately the attributes no longer show up under the sensor. Anyway to get it to work again?

pepsonEL commented 2 years ago

Good will,be if someone can write integration for Home Assistant... official or for HACS

clicky73 commented 2 years ago

Broke for me also after going to 2022.4.3.

As I need the network traffic, I changed to using SNMP in the link below, until this is fixed. https://www.reddit.com/r/homeassistant/comments/njxon2/making_a_bandwidth_monitor_for_synology_rt2600ac/

Would rather use this integration than SNMP.

skynet01 commented 2 years ago

You were able to get the network traffic with this integration as it was one of the attributes you just had to convert the units using a template sensor. ... but yeah it no longer works now. Thank you for the link to the SNMP thing, I'll be switching to that if there is no update :)

dries83 commented 2 months ago

Still struggling to get the monitor back work. I was able to get the correct overview, but I miss the "Ethernet" status.

I am a bit further, by adding the card_mod in front of style, it shows again the correct lay-out:

show_state: true
card_mod:
  style: >

However, I now encounter the issue that the “Ethernet” is not being shown, it comes back as “undefined”:

image

If I look to the following code, it should show “Ethernet” for non-wireless devices:

    } {% if state_attr(config.entity, 'is_wireless') == false %} .secondary {
      visibility: visible;
      display: block;
    } {% else %} .secondary:after {
      content: ' (Level {% if state_attr(config.entity, 'mesh_node_id') == 0 %}1{% elif state_attr(config.entity, 'mesh_node_id') == 4 %}3{% elif state_attr(config.entity, 'mesh_node_id') == 3 %}4{% else %}?{% endif %})';
    } {% endif %}

However, it doesn’t. I tried to debug and alter the code, but so far without success. Also ChatGPT was not able to help me further. Any ideas from your side?