Jump to content

skank

Members
  • Posts

    1,116
  • Joined

  • Last visited

Posts posted by skank

  1. or should i delete the template sensors i created from the binary sensor

    and enter the entity "binary sensor" in the card and then point to the attributes?

     

    How did you do this here?

    https://github.com/ElectricBrainUK/UnraidAPI/wiki/Lovelace-Config

     

    See also

    https://github.com/custom-cards/entity-attributes-card

     

    It also keeps saying the binary sensor is unavailble

     

    the first time under development options i could look at the binary sensor and see the attributes, now i cannot anymore

     

    1.JPG.ffbd7bfa32328396f4a269b9ec74d1e4.JPG

     

    Hopefully this will all be fixed once you have a HA addon :p

  2. 2 hours ago, ElectricBrainUK said:

    Oh cool I didnt know you could add packages like that, thanks! I had been using !include for each thing but my sensors and other files were getting a bit large so this would be a good way to break them up.

     

    But Im afraid I really don't know what the problem is sorry! The only thing I can thing of is that the template is creating a sensor with the same name as a glances one, though I thought that would just append a _2 to the id. 

    ur welcome :p

    damn so im on my own ? :(

     

  3. its under packages > server.yaml

     

    
    #### CUSTOMIZE #################################################################
    
    homeassistant:
      customize_glob:
        sensor.unraid_server:
          templates:
            hs_color: "if (state === 'up') return [115,100];
              else return [360,100];"
    
    glances:
      - host: !secret unraid_server
    
    sensor:
      - platform: template 
        sensors:
          unraid_server:
            entity_id: device_tracker.unraid_server
            friendly_name: Unraid
            icon_template: mdi:nas
            value_template: >
              {% if is_state('device_tracker.unraid_server', 'home') %}
                up
              {% else %}
                down
              {% endif %} 
          server_motherboard:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'motherboard') }}"
          server_cpu:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'cpu') }}"
          server_memory:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'memory') }}"
          server_diskspace:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'diskSpace') }}"      
          server_arraystatus:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'arrayStatus') }}"
          server_arrayprotection:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'arrayProtection') }}"
    
    

  4. and my server.yaml

     

    
    #### CUSTOMIZE #################################################################
    
    homeassistant:
      customize_glob:
        sensor.unraid_server:
          templates:
            hs_color: "if (state === 'up') return [115,100];
              else return [360,100];"
    
    glances:
      - host: !secret unraid_server
    
    sensor:
      - platform: template 
        sensors:
          unraid_server:
            entity_id: device_tracker.unraid_server
            friendly_name: Unraid
            icon_template: mdi:nas
            value_template: >
              {% if is_state('device_tracker.unraid_server', 'home') %}
                up
              {% else %}
                down
              {% endif %} 
          server_motherboard:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'motherboard') }}"
          server_cpu:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'cpu') }}"
          server_memory:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'memory') }}"
          server_diskspace:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'diskSpace') }}"      
          server_arraystatus:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'arrayStatus') }}"
          server_arrayprotection:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'arrayProtection') }}"
    
    

  5. no this is my config yaml

     

    
    default_config:
    
    homeassistant:
      customize: !include customize.yaml
      packages: !include_dir_named packages
    
    
    frontend:
      themes: !include_dir_merge_named themes
      
    # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
    # http:
    #   base_url: example.duckdns.org:8123
    
    lovelace:
      mode: yaml
    
    customizer:
      custom_ui: local
      
    hacs:
      token: !secret hacs_token
      appdaemon: true
      
    # Text to speech
    
    tts:
      - platform: google_translate
    
    group: !include groups.yaml
    automation: !include automations.yaml
    script: !include scripts.yaml
    scene: !include scenes.yaml
    
    sensor:
      - platform: unifigateway
        host: !secret unifi_host
        site_id: !secret unifi_site
        username: !secret unifi_username  
        password: !secret unifi_password
        monitored_conditions:
          - www
          - lan
          - wan
          - wlan
          - vpn
          - alerts
          - firmware
          
    remote:
      - platform: harmony
        name: Harmony Hub
        host: !secret harmony
    
    
      
    
    

  6. 9 minutes ago, ElectricBrainUK said:

    Regarding time frame on the add-on I'm not sure but it certainly won't be as long as months! Maybe 1 but if I get an evening where I have a lot of time I'm sure I'll be able to do it. 

     

    No that looks right to me, does the ha config check return anything unusual? 

    config check says all is valid

    Dunno why the glances info all are gone, as soon as i add the attributes...

    If i delete the attributes cards, then its back visible

  7. I had the glances stuff working

    so i added the new sensors for the attributes, and now all is gone...

    is there something wrong with my page?

    
    title: Server
    icon: mdi:nas
    path: server
    theme: ios-dark-mode
    cards:
      - type: vertical-stack
        cards:
          - type: custom:vertical-stack-in-card
            title: Unraid Server
            cards:  
              - type: horizontal-stack
                cards:  
                  - type: custom:card-modder
                    card:
                      type: picture 
                      image: /local/unraid.png
                  - type: custom:entity-attributes-card
                    title: Kenmerken
                    filter:
                      include:
                        - key: sensor.server_motherboard
                        - key: sensor.server_cpu
                        - key: sensor.server_memory
                        - key: sensor.server_diskspace
                        - key: sensor.server_arraystatus
                        - key: sensor.server_arrayprotection
              - type: conditional
                conditions:
                  - entity: sensor.glances_disk_used_percent
                    state_not: "unavailable"
                  - entity: sensor.glances_disk_used_percent
                    state_not: "unknown"    
                card:
                    type: custom:bar-card
                    align: split
                    show_icon: true
                    padding: 4px
                    columns: 2
                    card_style: 
                      border-radius: 5px
                    severity:
                    - value: 50
                      color: '#3bb3ee'
                    - value: 80
                      color: '#e7a24a'
                    - value: 100
                      color: '#ff0000'                        
                    entities:
                      - entity: sensor.glances_disk_used_percent
                        title: Disk
                        max: 100            
                      - entity: sensor.glances_cpu_used
                        title: CPU
                        max: 100             
              - type: conditional
                conditions:
                  - entity: sensor.glances_disk_used_percent
                    state_not: "unavailable"
                  - entity: sensor.glances_disk_used_percent
                    state_not: "unknown"    
                card:
                    type: custom:bar-card
                    align: split
                    show_icon: true
                    padding: 4px
                    columns: 2
                    card_style: 
                      border-radius: 5px
                    severity:
                    - value: 50
                      color: '#3bb3ee'
                    - value: 80
                      color: '#e7a24a'
                    - value: 100
                      color: '#ff0000'                        
                    entities:
                      - entity: sensor.glances_swap_used_percent
                        title: SWAP             
                        max: 100
                      - entity: sensor.glances_ram_used_percent
                        title: RAM
                        max: 100
              - type: conditional
                conditions:
                  - entity: sensor.glances_containers_active
                    state_not: '0'
                  - entity: sensor.glances_disk_used_percent
                    state_not: "unavailable"
                  - entity: sensor.glances_disk_used_percent
                    state_not: "unknown"                
                card:
                    type: custom:bar-card
                    align: split
                    show_icon: true
                    padding: 4px
                    columns: 2
                    card_style: 
                      border-radius: 5px
                    entities:
                      - entity: sensor.glances_containers_ram_used
                        title: Docker RAM 
                        max: 10000                
                      - entity: sensor.glances_containers_cpu_used
                        title: Docker CPU
                        max: 100                   
              - type: conditional
                conditions:
                  - entity: sensor.glances_disk_used_percent
                    state_not: "unavailable"
                  - entity: sensor.glances_disk_used_percent
                    state_not: "unknown"    
                card:
                    type: custom:bar-card
                    align: left
                    title_position: left
                    show_icon: true
                    padding: 4px
                    columns: 1
                    card_style: 
                      border-radius: 5px
                    severity:
                    - value: 50
                      color: '#3bb3ee'
                    - value: 80
                      color: '#e7a24a'
                    - value: 100
                      color: '#ff0000'                        
                    entities:
                      - entity: sensor.glances_containers_active 
                        title: Containers    
                        max: 40   
    
    

     

    My sensors:

     

    
    
    sensor:
      - platform: template 
        sensors:
          server_motherboard:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'motherboard') }}"
          server_cpu:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'cpu') }}"
          server_memory:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'memory') }}"
          server_diskspace:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'diskSpace') }}"      
          server_arraystatus:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'arrayStatus') }}"
          server_arrayprotection:
            value_template: "{{state_attr('binary_sensor.unraid_server', 'arrayProtection') }}"
    
     
    
    
  8. So , normal step is i install the broker on the pi

    so you are setting a API HA addon? So stats will remain visible? Thats cool !

    Cant wait

    This will mean ,all stats will be visible even when unraid is shut down?

     

    - for the last question about statistics, you misunderstand me

    i meant the attributes  like wat kind of motherbord, what cpu, what mem

  9. ok so yesterday it suddenly worked after i launched it and logged in (it says fill in username and paswword 2 times)
    i now have entities like switches for dockers and a sensor..
     i do have other questions though.

    - al those entitities are in ha saying they are unavailable, is that normal?
    - if i shutdown the broker on the unraid machine, will the attributes of the machine still be visible in the broker for the raspberry pi(ha) to read from?
    - i have the broker now on the unraid machine, and ha on my raspberry pi, since i shutdown my unraid (and not the pi) shouldnt it be wiser to set up the broker on the pi?
     - you have these sensors, how do i get them? they arent made by the discovery
    ```
                        - key: binary_sensor.unraid_server.cpu                      
                        - key: binary_sensor.unraid_server.memory
                        - key: binary_sensor.unraid_server.motherboard
                        - key: binary_sensor.unraid_server.arrayStatus
                        - key: binary_sensor.unraid_server.diskSpace
                        - key: binary_sensor.unraid_server.arrayProtection  
    ```
    Thx for your support here!

  10. On 1/10/2020 at 5:34 PM, meep said:

    OK, have it working. Many thanks!

     

    One thing I missed after updating the server details was that I needed to login via the docker UI. I'd stopped and started unraid-API a few times as I wasn't getting the response to the MQTT request. Once I logged in, I was golden.

     

    I'll have a play over the weekend to see what I can do with this.

    I'm having same issues, cant seem to get it work

     

    2 things

     

    - for the ipadress, i just fill in the ip or with "http://" in front of it?

    - what did u do to fix?

    Youo say you logged in, that fixed it? log in , in the api ?

  11. I'm on latest version of unraid

    Mobo is: ASUS M4A78LT-M - Moederbord - micro ATX - AMD 760G -
    I do have an expansion card AOC-SASLP 

     

    My mobo supports sleep: i use the S3 sleep plugin, machine goes to sleep but i cant awake it

     

    In the old days before the expansion card, i had no problem to do this.

    Is the expansion card the problem?

  12. 5 hours ago, johnnie.black said:

    No, I mean if there's a folder for that movie on any of the data disks, assuming you create a folder for each movie inside the share, if that's not the case them please post an example of the path used.

     

     

    EUREKA!  That was it, its moving now. Thx mate !

     

    Not sure what you mean with the f-s share

    those are 2 different folders

    - films

    - fotos

    its not with cases in it

  13. 55 minutes ago, johnnie.black said:

    If the mover is still trying to move the file to a disk without enough space it's the split level setting, note that a folder would be created when the first move was attempted, after that, even with the corrected minimum space, if the split level requires to keep all files on the same folder it will again try to copy to the same disk, you'd need to manually deleted the folder, or move it to another disk if there are other files there.

    you mean the folder "Films" on my cache containing the movie "Movie x"?

    Move the movie back to the download folder on the cache, delete the "Films" folder on the cache

    Make a new folder on the cache "Films"

    Cut and past the "Movie x" back into the "Films"

    click on mover

     

    tried that, still no go

     

  14. 2 shares beginning with f yes

     

    Films

    and

    Fotos

    Never had problems with that

     

    split level is: automatically split only top level directory as required

    i got films\name movie x\ files movie x

    i want to have the movie files on 1 disk together

     

     

    its wrong?

×
×
  • Create New...