Quantcast
Channel: Configuration - Home Assistant Community
Viewing all 107449 articles
Browse latest View live

Play and pause certain google tv apps and automation

$
0
0

Hi everyone again, I have an automation on play and pause that works, but now I’m trying to make start it only with certain android apps and not all, can you give me a look and make me understand where am I wrong?

Thank you.

automations.yaml

# SOGGIORNO
- alias: GoogleTV soggiorno paused
  trigger:
  - entity_id: media_player.android_castsoggiorno
    from: playing
    platform: state
  - entity_id: remote.harmony_soggiorno
    platform: state
    attribute: current_activity
  condition:
  - condition: state
    entity_id: sun.sun
    state: below_horizon
  - condition: template
    value_template: >
      {{ is_state_attr('remote.harmony_soggiorno', 'current_activity', 'Watch GoogleTV' ) }}
  - condition: template
    value_template: >
      {{ is_state_attr('media_player.android_castsoggiorno', 'app_name') in [ 'Amazon Prime Video', 'Plex', 'Netflix', 'Disney+', 'HDHomeRun' ] }}
  action:
    service: scene.turn_on
    entity_id: scene.soggiorno_pausa
- alias: GoogleTV soggiorno play
  trigger:
  - entity_id: media_player.android_castsoggiorno
    to: playing
    platform: state
  - entity_id: remote.harmony_soggiorno
    platform: state
    attribute: current_activity
  condition:
  - condition: state
    entity_id: sun.sun
    state: below_horizon
  - condition: template
    value_template: >
        {{ is_state_attr('remote.harmony_soggiorno', 'current_activity', 'Watch GoogleTV' ) }}
  action:
    service: scene.turn_on
    entity_id: scene.soggiorno_spenta
- alias: GoogleTV soggiorno off
  trigger:
  - entity_id: remote.harmony_soggiorno
    platform: state
    attribute: current_activity
    to: 'PowerOff'
  condition:
  - condition: state
    entity_id: sun.sun
    state: below_horizon
  - condition: template
    value_template: "{{ is_state_attr('remote.harmony_soggiorno', 'current_activity', 'PowerOff' ) }}"
  action:
  - service: scene.turn_on
    entity_id: scene.soggiorno_normale
- alias: GoogleTV soggiorno on
  trigger:
  - entity_id: remote.harmony_soggiorno
    platform: state
    attribute: current_activity
    from: 'PowerOff'
  condition:
  - condition: state
    entity_id: sun.sun
    state: below_horizon
  - condition: template
    value_template: "{{ is_state_attr('remote.harmony_soggiorno', 'current_activity', 'Watch GoogleTV' ) }}"
  action:
  -  service: scene.turn_on
     entity_id: scene.soggiorno_spenta
# TAVERNA
- alias: GoogleTV taverna paused
  trigger:
  - entity_id: media_player.android_casttaverna
    from: playing
    platform: state
  - entity_id: remote.harmony_taverna
    platform: state
    attribute: current_activity
  condition:
  - condition: template
    value_template: >
      {{ state_attr('remote.harmony_taverna', 'current_activity') in [ 'Project GoogleTV' ] }}
  action:
    service: scene.turn_on
    entity_id: scene.taverna_pausa
- alias: GoogleTV taverna play
  trigger:
  - entity_id: media_player.android_casttaverna
    to: playing
    platform: state
  - entity_id: remote.harmony_taverna
    platform: state
    attribute: current_activity
  condition:
  - condition: template
    value_template: >
      {{ state_attr('remote.harmony_taverna', 'current_activity') in [ 'Project GoogleTV' ] }}
  action:
    service: scene.turn_on
    entity_id: scene.taverna_spenta
- alias: GoogleTV taverna off
  trigger:
  - entity_id: remote.harmony_taverna
    platform: state
    attribute: current_activity
    to: 'PowerOff'
  condition:
   - condition: template
     value_template: "{{ is_state_attr('remote.harmony_taverna', 'current_activity', 'PowerOff' ) }}"
  action:
  - service: scene.turn_on
    entity_id: scene.taverna_normale
  - delay: 00:02:30
  - service: switch.turn_off
    entity_id: switch.accessory_mss310_main_channel
  - service: switch.turn_off
    entity_id: switch.media_center_mss310_main_channel
- alias: GoogleTV taverna on
  trigger:
  - entity_id: remote.harmony_taverna
    platform: state
    attribute: current_activity
    from: 'PowerOff'
  condition:
  - condition: template
    value_template: >
      {{ is_state_attr('remote.harmony_taverna', 'current_activity') in [ 'Project GoogleTV', 'Project PC', 'Project Wii', 'Project Xbox 360', 'Project Retro Console', 'Projector' ] }}
  - condition: template
    value_template: >
      {{ is_state_attr('media_player.android_castsoggiorno', 'app_name') in [ 'Amazon Prime Video', 'Plex', 'Netflix', 'Disney+', 'HDHomeRun' ] }}
  action:
  - service: scene.turn_on
    entity_id: scene.taverna_spenta

config.yaml

#androidTV
media_player:
  - platform: androidtv
    scan_interval: 5
    name: Android CastSoggiorno
    device_class: androidtv
    host: !secret CastSoggiorno_IP
    exclude_unnamed_apps: true
    apps:
      com.google.android.apps.tv.launcherx: "Home"
      com.google.android.youtube.tv: "Youtube"
      com.amazon.amazonvideo.livingroom: "Amazon Prime Video"
      com.plexapp.android: "Plex"
      com.netflix.ninja: "Netflix"
      com.disney.disneyplus: "Disney+"
      com.spotify.tv.android: "Spotify"
      com.valvesoftware.steamlink: "Steam"
      com.silicondust.view: "HDHomeRun"
    state_detection_rules:
      'com.amazon.amazonvideo.livingroom':
        - 'playing':
            'wake_lock_size': 3
        - 'standby':
            'wake_lock_size': 1
      'com.netflix.ninja':
        - 'playing':
            'media_session_state': 3
            'wake_lock_size': 2
        - 'paused':
            'media_session_state': 2
            'wake_lock_size': 0
        - 'standby':
            'media_session_state': 1
            'wake_lock_size': 0
      'com.plexapp.android':
        - 'standby':
            'wake_lock_size': 0
      'com.disney.disneyplus':
        - 'playing':
            'media_session_state': 3
            'wake_lock_size': 3
        - 'paused':
            'media_session_state': 2
            'wake_lock_size': 1
        - 'standby':
            'wake_lock_size': 1
      'com.silicondust.view':
        - 'playing':
            'media_session_state': 3
            'wake_lock_size': 3
        - 'paused':
            'media_session_state': 2
            'wake_lock_size': 1
        - 'standby':
            'media_session_state': 0
            'wake_lock_size': 1
  - platform: androidtv
    name: Android CastCucina
    device_class: androidtv
    host: !secret CastCucina_IP
    exclude_unnamed_apps: true
    apps:
      com.google.android.apps.tv.launcherx: "Home"
      com.google.android.youtube.tv: "Youtube"
      com.amazon.amazonvideo.livingroom: "Amazon Prime Video"
      com.plexapp.android: "Plex"
      com.netflix.ninja: "Netflix"
      com.disney.disneyplus: "Disney+"
      com.spotify.tv.android: "Spotify"
      com.valvesoftware.steamlink: "Steam"
      com.silicondust.view: "HDHomeRun"
  - platform: androidtv
    scan_interval: 5
    name: Android CastTaverna
    device_class: androidtv
    host: !secret CastTaverna_IP
    exclude_unnamed_apps: true
    apps:
      com.google.android.apps.tv.launcherx: "Home"
      com.google.android.youtube.tv: "Youtube"
      com.amazon.amazonvideo.livingroom: "Amazon Prime Video"
      com.plexapp.android: "Plex"
      com.netflix.ninja: "Netflix"
      com.disney.disneyplus: "Disney+"
      com.spotify.tv.android: "Spotify"
      com.valvesoftware.steamlink: "Steam"
      com.silicondust.view: "HDHomeRun"
    state_detection_rules:
      'com.amazon.amazonvideo.livingroom':
        - 'playing':
            'wake_lock_size': 3
        - 'standby':
            'wake_lock_size': 1
      'com.netflix.ninja':
        - 'playing':
            'media_session_state': 3
            'wake_lock_size': 2
        - 'paused':
            'media_session_state': 2
            'wake_lock_size': 0
        - 'standby':
            'media_session_state': 1
            'wake_lock_size': 0
      'com.plexapp.android':
        - 'standby':
            'wake_lock_size': 0
      'com.disney.disneyplus':
        - 'playing':
            'media_session_state': 3
            'wake_lock_size': 3
        - 'paused':
            'media_session_state': 2
            'wake_lock_size': 1
        - 'standby':
            'wake_lock_size': 1
      'com.silicondust.view':
        - 'playing':
            'media_session_state': 3
            'wake_lock_size': 3
        - 'paused':
            'media_session_state': 2
            'wake_lock_size': 1
        - 'standby':
            'media_session_state': 0
            'wake_lock_size': 1
  - platform: androidtv
    name: Android CastStudio
    device_class: androidtv
    host: !secret CastStudio_IP
    exclude_unnamed_apps: true
    apps:
      com.google.android.apps.tv.launcherx: "Home"
      com.google.android.youtube.tv: "Youtube"
      com.amazon.amazonvideo.livingroom: "Amazon Prime Video"
      com.plexapp.android: "Plex"
      com.netflix.ninja: "Netflix"
      com.disney.disneyplus: "Disney+"
      com.spotify.tv.android: "Spotify"
      com.valvesoftware.steamlink: "Steam"
      com.silicondust.view: "HDHomeRun"
  - platform: androidtv
    name: Android CastCameretta
    device_class: androidtv
    host: !secret CastCameretta_IP
    exclude_unnamed_apps: true
    apps:
      com.google.android.apps.tv.launcherx: "Home"
      com.google.android.youtube.tv: "Youtube"
      com.amazon.amazonvideo.livingroom: "Amazon Prime Video"
      com.plexapp.android: "Plex"
      com.netflix.ninja: "Netflix"
      com.disney.disneyplus: "Disney+"
      com.spotify.music: "Spotify"
      com.valvesoftware.steamlink: "Steam"
      com.silicondust.view: "HDHomeRun"

1 post - 1 participant

Read full topic


Lost connection

$
0
0

I’m a bit in panic right now as I can’t connect to Home Assistant either through the app as through Duckdns and even local isn’t working.

On my phone app I get this message:
The certificate for this service is invalid

And on the duckdns website it says:
Unable to connect to Home Assistant.

I really don’t know what to do to fix this. Already tried to unplug the Pi from power and turn it back on but that didn’t work.

2 posts - 2 participants

Read full topic

Add custom Lovelace UI, while retaining default UI

$
0
0

Hey folks!

I really like the default Lovelace home page - when I add new stuff it turns up automatically, I can scroll around and do whatever I want. Eventually, I want to have some other tabs too - like one with my cameras, one with just my climate control, etc.

Is there a way I can add multiple Lovelace tabs (pages? views?) while having one of those tabs preserve the default behaviour - showing everything it can, auto-updating etc?

Thanks!

Sam

2 posts - 2 participants

Read full topic

Proxmox CPU+ temp to HA (working guide + files)

$
0
0

I decided to publish working guide with already generated files for proxmox CPU temperatures…

The goal, to see temperatures in Home Assistant:
image

1. STEP - Set up API access in Home Assistant:


Click on user, then create new long-term token.
Please be careful to write down the API secret string as this you will need later in configuration *.py file (step 3) so that proxmox could connect to HA.

2. STEP - Set up sensors in HA configuration:

sensor:
  - platform: template
    sensors:
      proxmox_cpu_temp:
        friendly_name: "Procesor"
        value_template: '{{ states("input_number.proxmox_input_cpu_temp") | multiply(0.001) | round(1) }}'
        unit_of_measurement: °C

  - platform: template
    sensors:
      proxmox_acpi_interface:
        friendly_name: "ACPI vmesnik"
        value_template: '{{ states("input_number.proxmox_input_acpi_interface") | multiply(0.001) | round(1) }}'
        unit_of_measurement: °C

  - platform: template
    sensors:
      proxmox_isa_adapter:
        friendly_name: "ISA adapter"
        value_template: '{{ states("input_number.proxmox_input_isa_adapter") | multiply(0.001) | round(1) }}'
        unit_of_measurement: °C
input_number:
    proxmox_input_cpu_temp:
      name: Procesor
      min: 0
      max: 200000

    proxmox_input_acpi_interface:
      name: ACPI
      min: 0
      max: 200000

    proxmox_input_isa_adapter:
      name: ISA adapter
      min: 0
      max: 200000

In main configuration file you must also add API access, so add line:
api:

After that changes restart Home Assistant.

3. STEP - Upload modified .py files to PROXMOX:

Login to:
https://www.vseznalec.si/homeassistant/Proxmox_CPU_temp/
Username:
homeassistant
Password:
virtualclone2020_weeWX%

Download files:
proxmox_cpu_temp.py
proxmox_isa_adapter.py
proxmox_acpi_interface.py

Edit the files (use Notepad++) and change url (bold) based on your HA static IP address:
url = “http://192.168.X.XX:8123/api/states/input_number.proxmox_input_acpi_interface”
Edit the API key (bold):
“Authorization”: “Bearer HA_API_KEY”,
you get the API key in step 1.

After you change file upload files via WinSCP
image

image

You must upload to /root/.

4. STEP - Install dependencies on Debian Linux (proxmox)
Login to proxmox as root via SSH (PuTTy) and enter commands (after every line press ENTER):
sudo apt update
sudo apt install python3-pip
(confirm installation with Y)

5. STEP - Make .py files executable on Debian
Login to proxmox as root via SSH (PuTTy) and enter commands (after every line press ENTER):
chmod +x proxmox_cpu_temp.py
chmod +x proxmox_acpi_interface.py
chmod +x proxmox_isa_adapter.py

6. STEP - Most important step - edit crontab via SSH (PuTTy)
Enter command:
crontab -e
and enter lines the same as seen here:
image

* * * * * /root/proxmox_cpu_temp.py >/dev/null 2>&1
* * * * * (sleep 30 ; /root/proxmox_cpu_temp.py) >/dev/null 2>&1
* * * * * /root/proxmox_isa_adapter.py >/dev/null 2>&1
* * * * * (sleep 30 ; /root/proxmox_isa_adapter.py) >/dev/null 2>&1
* * * * * /root/proxmox_acpi_interface.py >/dev/null 2>&1
* * * * * (sleep 30 ; /root/proxmox_acpi_interface.py) >/dev/null 2>&1

Do not forget to add “>/dev/null 2>&1”, this means that in case that you will make restart of Home Assistant you won’t get bunch of error e-mails to you proxmox root account :slight_smile:
Also, do not forget to go to new line after last line, or cron job could not be created…

7. STEP - Last step is to add sensor to Lovelace in Home Assistant
sensor.proxmox_cpu_temp
sensor.proxmox_acpi_interface
sensor.proxmox_isa_adapter

That’s it…

Tools which are needed:
WinSCP:
https://winscp.net/eng/download.php
PuTTy:
https://www.putty.org/
Notepad++:
https://notepad-plus-plus.org/downloads/

Hardware used:
Intel NUC8i7BEH
https://www.intel.com/content/www/us/en/products/boards-kits/nuc/kits/nuc8i7beh.html

So that this user guide is possible to make I need to thank to:



4 posts - 2 participants

Read full topic

Syntax sensor template - Configuration Error

$
0
0

Hi, I’m just struggling with a sensor template… :woozy_face:

I’ve read the documentation , several posts ( 190105, 83469 and 236421) but I don’t get the clue why I geht “Configuration invalid” error.

This is my code:

  - platform: template
    sensors:
      rain_sensor:
        friendly_name: "Regensensor"
        value_template: >-
          {% if states('sensor.esp_regensensor_analog')|float > 3.0 }
            trocken
          {% else %}
            nass
          {% endif %}

integrated in by this in confiugartion.yaml

sensor: !include_dir_merge_list sensors/

and this is the error:

Invalid config for [sensor.template]: invalid template (TemplateSyntaxError: unexpected ‘}’) for dictionary value @ data[‘sensors’][‘rain_sensor’][‘value_template’]. Got “{% if states(‘sensor.esp_regensensor_analog’)|float > 3.0 }\n trocken\n{% else %}\n nass\n{% endif %}”. (See ?, line ?).

Any idea or hint?

PS. I know only for two values I could use a binary sensor, but I want to add more states when it works with this two.

3 posts - 2 participants

Read full topic

Automations are very confusing (where are the names of states)

$
0
0

I’m trying to effect an automation on state change, but I have no idea what the states are called. Its not clear at all even where to find them. If I look at the device history, they are written out as:

Cleared (no occupancy detected)

10:45:37 PM - 10 minutes ago

Detected occupancy

10:43:48 PM - 12 minutes ago

But when I try that in the automation, get nothing. Why are they not the same, how are you meant to know?

Also the wait function here, is it seconds, mins, years?

alias: Go to Sleep
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.withings_in_bed_withings
    from: Cleared (no occupancy detected)
    to: Detected occupancy
condition: []
action:
  - type: turn_on
    device_id: 
    entity_id: switch.bedroom_fan
    domain: switch
  - device_id: 
    domain: cover
    entity_id: cover.bedroom_curtain
    type: set_position
    position: 0
  - type: turn_on
    device_id: 
    entity_id: light.bedroom_strip_1_st
    domain: light
    brightness_pct: 25
  - wait_template: ''
    continue_on_timeout: true
    timeout: '60'
  - type: turn_off
    device_id: 
    entity_id: light.bedroom_strip_1_st
    domain: light
mode: queued
max: 10

Thanks guys!

I think ive just been spoilt by WebCore lol

3 posts - 2 participants

Read full topic

Turn_off socket

$
0
0

Hi folks,
the socket won’t turn off, why

The socket is not turned off, why

- id: '1611741889596'
  alias: End tablet charging
  description: When 95% turn off
  trigger:
  - platform: numeric_state
    entity_id: sensor.sm_t320_akkufullstand
    above: '95'
  condition: []
  action:
  - type: turn_off
    device_id: 52ce05ed1a1b73fd088185282a5c4e1a
    entity_id: switch.steckdose_03
    domain: switch
  mode: single

Thank you

1 post - 1 participant

Read full topic

Homematic.virtualkey service

$
0
0

Hello,
I’m working with Home Assistant + Homematic CCU3 since a couple of days.
My first impression : I’m amazed about the possibilities that Home Assistant offers !

I’m new on the forum so I’m probable asking something stupid but still…

I’m trying unsuccessfully to trigger a virtual key on the CCU3 with a Button I made.
Using the “Developer Tools” / “Service” / “homematic.virtualkey” everything works fine

But when I put it into my http://homeassistant:8123/lovelace it doesn’t work anymore…

      - type: button
        tap_action:
          action: call-service
          service: homematic.virtualkey
          address: BidCoS-RF
          channel: 14
          param: PRESS_SHORT
        name: Test
        hold_action: none

I get this on the Log:

[2975940368] required key not provided @ data[‘channel’]
2:06:17 PM – websocket_api (ERROR) - message first occurred at 12:57:03 PM and shows up 43 times

Could anybody help me out with this ??
Thanks a lot !!

1 post - 1 participant

Read full topic


How to expose Docker containers created with Portainer?

$
0
0

Hello everyone! I want to expose docker containers created with Portainer (Transmission, Plex server, etc).

My idea is to expose those docker containers to be available as a Panel in the Sidebar, not just as iframe_panel because I want to access them outside my local network (I’m using Nabu Casa btw).

How can achieve this? Using Ingress? How?

Thanks for the help!

1 post - 1 participant

Read full topic

Can't get my Lovelace config to work

$
0
0

Hey everybody,

some background info:
I’m André and I killed (one of the hdds died) my server running homeassistant, a file server, a bunch of docker containers, several virtual machines… without a proper backup. :scream:
Yes. That was stupid.
I replaced alle the harddrives and reinstalled everything (the “homeassistant supervised” variant on top of an Ubuntu server running docker) and yes, I’m doing proper backups now. :see_no_evil:

Now let’s continue with the actual problem:
I now installed HACS and tried to install some custom cards from there and keep running into trouble.
I installed the “Atomic Calendar Revive” card and created a second dashboard (“Test-Dashboard”) following the documentation here: https://www.home-assistant.io/lovelace/dashboards-and-views/
In my configuration.yaml, it looks like this:

lovelace:
  # Das erste Dashboard soll das automatisch konfigurierte sein
  mode: storage
  #Custom Cards etc.
  #resources:
  #  - url: /community/atomic-calendar-revive/atomic-calendar-revive.js
  #    type: module
  # Jetzt die yaml Dashboards
  dashboards:
    test-dashboard:
      mode: yaml
      title: "Test-Dashboard"
      icon: mdi:script
      show_in_sidebar: true
      filename: test-dashboard.yaml

Note that the “ressources” part is commented - I already tried it with and without this part and it keeps giving me errors.

My test-dashboard.yaml looks like this:

title: "homeassistant.ha7.lan - Where the good shit happens"

views:
  - title: main
    panel: true
    icon: mdi:home
    cards:
      - type: entities
        name: "Test"
        entities:
          - light.licht_deckenventilator_buro
      - type: "custom:atomic-calendar-revive"
        name: "Kalender"
        showProgressBar: False
        showMultiDay: True
        entities:
          - <nextcloud calendar>
          - <another nextcloud calendar>

The Dashboard only shows the light switch and here is the error message from the log:

Logger: homeassistant.components.lovelace
Source: components/lovelace/__init__.py:168
Integration: Lovelace (documentation, issues)
First occurred: 13:59:01 (1 occurrences)
Last logged: 13:59:01
Cannot register panel at test-dashboard, it is already defined in <homeassistant.components.lovelace.dashboard.LovelaceYAML object at 0x7ffb924df8e0>

So… What am I doing wrong? I used to have a calendar with the events of the next few days on my dashboard and would like to get it back this way.

Best regards,

André

1 post - 1 participant

Read full topic

Can´t get Homematic Addon working

$
0
0

Hello.

I can´t get the Homematic Addon to work.

When i start the addon it gives me some Errors and Fatal Errors.

Please have a look at the Addon Log:

172.30.32.2 - - [01/Feb/2021:14:36:32 +0100] "GET /webui/js/lang/de/translate.lang.js?_=1612186590109 HTTP/1.1" 200 68838 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:32 +0100] "GET /webui/js/lang/de/translate.lang.extension.js?_=1612186590110 HTTP/1.1" 200 105906 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:32 +0100] "GET /webui/webui.js?_version_=2.0pre1 HTTP/1.1" 200 1639737 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:32 +0100] "GET /webui/js/lang/de/translate.lang.stringtable.js?_=1612186590111 HTTP/1.1" 200 81808 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:32 +0100] "GET /webui/js/lang/de/translate.lang.deviceDescription.js?_=1612186590112 HTTP/1.1" 200 19594 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:32 +0100] "GET /webui/js/lang/de/translate.lang.diagram.js?_=1612186590113 HTTP/1.1" 200 9987 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:32 +0100] "GET /webui/js/lang/de/translate.lang.group.js?_=1612186590114 HTTP/1.1" 200 2525 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:32 +0100] "GET /webui/js/lang/de/translate.lang.system.js?_=1612186590115 HTTP/1.1" 200 1924 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:32 +0100] "GET /webui/js/lang/de/translate.lang.channelDescription.js?_=1612186590116 HTTP/1.1" 200 9204 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:32 +0100] "GET /webui/js/lang/de/translate.lang.help.js?_=1612186590117 HTTP/1.1" 200 81 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:32 +0100] "GET /webui/js/lang/de/translate.lang.notTranslated.js?_=1612186590118 HTTP/1.1" 200 6439 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:32 +0100] "GET /webui/js/mainmenu/admin.js?_version_=3.55.5 HTTP/1.1" 200 3557 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:32 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 63 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 1193 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 61 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 85 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 90 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 55 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 55 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 63 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "GET /ise/htm/header.htm?_=1612186590119 HTTP/1.1" 200 1237 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 63 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /pages/tabs/startpage.htm?sid=@epj3coj3r8@ HTTP/1.1" 200 1730 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 175 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 63 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 745 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 63 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 64 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 88 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:33 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 63 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:34 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 63 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:34 +0100] "GET /ise/img/homematic_logo_small.png HTTP/1.1" 200 22405 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:34 +0100] "GET /ise/img/ajaxload.gif HTTP/1.1" 200 2955 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:34 +0100] "GET /ise/img/dot/grey.png HTTP/1.1" 200 1434 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:34 +0100] "GET /ise/img/loading.gif HTTP/1.1" 200 15355 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
172.30.32.2 - - [01/Feb/2021:14:36:34 +0100] "POST /api/homematic.cgi HTTP/1.1" 200 61 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
2021/02/01 14:36:36.431 <Debug> () CCU2CommController::startCoprocessorApp(): Trying to start coprocessor application
2021/02/01 14:36:36.932  CCU2CommController::startCoprocessorAppThreadFunction(): Send start command
2021/02/01 14:36:36.932  CCU2CommController::SendSystemCommdand()
2021/02/01 14:36:36.932  CCU2CommController::SendSystemCommdand() sending: fd 00 03 00 00 03 18 0a 
2021/02/01 14:36:37.933 <Debug> () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.
2021/02/01 14:36:39.933  CCU2CommController::startCoprocessorAppThreadFunction(): Retrying to send start command
2021/02/01 14:36:39.933  CCU2CommController::startCoprocessorAppThreadFunction(): Send start command
2021/02/01 14:36:39.933  CCU2CommController::SendSystemCommdand()
2021/02/01 14:36:39.933  CCU2CommController::SendSystemCommdand() sending: fd 00 03 00 01 03 9e 09 
2021/02/01 14:36:40 [info] 531#531: *13 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.30.32.2, server: _, request: "POST /api/homematic.cgi HTTP/1.1", upstream: "http://127.0.0.1:80/api/homematic.cgi", host: "192.168.35.95:8123"
172.30.32.2 - - [01/Feb/2021:14:36:40 +0100] "POST /api/homematic.cgi HTTP/1.1" 499 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
2021/02/01 14:36:40 [info] 531#531: *11 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.30.32.2, server: _, request: "POST /api/homematic.cgi HTTP/1.1", upstream: "http://127.0.0.1:80/api/homematic.cgi", host: "192.168.35.95:8123"
172.30.32.2 - - [01/Feb/2021:14:36:40 +0100] "POST /api/homematic.cgi HTTP/1.1" 499 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
2021/02/01 14:36:40 [info] 531#531: *1 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.30.32.2, server: _, request: "POST /api/homematic.cgi HTTP/1.1", upstream: "http://127.0.0.1:80/api/homematic.cgi", host: "192.168.35.95:8123"
172.30.32.2 - - [01/Feb/2021:14:36:40 +0100] "POST /api/homematic.cgi HTTP/1.1" 499 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
2021/02/01 14:36:40 [info] 531#531: *17 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.30.32.2, server: _, request: "POST /api/homematic.cgi HTTP/1.1", upstream: "http://127.0.0.1:80/api/homematic.cgi", host: "192.168.35.95:8123"
172.30.32.2 - - [01/Feb/2021:14:36:40 +0100] "POST /api/homematic.cgi HTTP/1.1" 499 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
2021/02/01 14:36:40 [info] 531#531: *9 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.30.32.2, server: _, request: "POST /api/homematic.cgi HTTP/1.1", upstream: "http://127.0.0.1:80/api/homematic.cgi", host: "192.168.35.95:8123"
172.30.32.2 - - [01/Feb/2021:14:36:40 +0100] "POST /api/homematic.cgi HTTP/1.1" 499 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
2021/02/01 14:36:40 [info] 531#531: *6 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.30.32.2, server: _, request: "POST /api/homematic.cgi HTTP/1.1", upstream: "http://127.0.0.1:80/api/homematic.cgi", host: "192.168.35.95:8123"
172.30.32.2 - - [01/Feb/2021:14:36:40 +0100] "POST /api/homematic.cgi HTTP/1.1" 499 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
2021/02/01 14:36:40.934 <Debug> () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.
2021/02/01 14:36:41.433 <Fatal error> CCU2CommController::init(): Init failed. Cannot start coprocessor application.
2021/02/01 14:36:41.433  CCU2CommController::SendSystemCommdand()
2021/02/01 14:36:41.433  CCU2CommController::SendSystemCommdand() sending: fd 00 04 00 02 0a 00 3d 10 
2021/02/01 14:36:42.434 <Debug> () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.
2021/02/01 14:36:42.434 <Error> () CCU2CommController::setCSMACAEnabled(): Error disabling CSMA/CA.
2021/02/01 14:36:42.436 <Error> No BidCoS-Interface available
2021/02/01 14:36:42.436 <Warning> Error initializing interfaces
2021-02-01 14:36:42,446 [ERROR] BidCosRpcDispatcher - Could not register BidCos-RF_java
2021-02-01 14:36:42,454 [ERROR] BidCosRpcDispatcher - Could not register BidCos-RF_java
[14:36:42] INFO: Starting rfd...
2021/02/01 14:36:42.803 <Info> BidCoS-Service started
2021/02/01 14:36:42.803 <Info> XmlRpc Server is listening on TCP port 2001
2021/02/01 14:36:42.805 <Debug> CCU2CommController::init() - Legacy initialization.
2021/02/01 14:36:47.807 <Debug> () CCU2CommController::startCoprocessorApp(): Trying to start coprocessor application
2021/02/01 14:36:48.308  CCU2CommController::startCoprocessorAppThreadFunction(): Send start command
2021/02/01 14:36:48.308  CCU2CommController::SendSystemCommdand()
2021/02/01 14:36:48.308  CCU2CommController::SendSystemCommdand() sending: fd 00 03 00 00 03 18 0a 
2021/02/01 14:36:49.309 <Debug> () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.
2021/02/01 14:36:51.309  CCU2CommController::startCoprocessorAppThreadFunction(): Retrying to send start command
2021/02/01 14:36:51.309  CCU2CommController::startCoprocessorAppThreadFunction(): Send start command
2021/02/01 14:36:51.309  CCU2CommController::SendSystemCommdand()
2021/02/01 14:36:51.309  CCU2CommController::SendSystemCommdand() sending: fd 00 03 00 01 03 9e 09 
2021/02/01 14:36:52.310 <Debug> () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.
2021/02/01 14:36:52.809 <Fatal error> CCU2CommController::init(): Init failed. Cannot start coprocessor application.
2021/02/01 14:36:52.809  CCU2CommController::SendSystemCommdand()
2021/02/01 14:36:52.809  CCU2CommController::SendSystemCommdand() sending: fd 00 04 00 02 0a 00 3d 10 
2021/02/01 14:36:53.810 <Debug> () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.
2021/02/01 14:36:53.810 <Error> () CCU2CommController::setCSMACAEnabled(): Error disabling CSMA/CA.
2021/02/01 14:36:53.814 <Error> No BidCoS-Interface available
2021/02/01 14:36:53.814 <Warning> Error initializing interfaces
2021-02-01 14:36:53,816 [ERROR] BidCosRpcDispatcher - Could not register BidCos-RF_java
2021-02-01 14:36:53,823 [ERROR] BidCosRpcDispatcher - Could not register BidCos-RF_java
[14:36:54] INFO: Starting rfd...
2021/02/01 14:36:54.175 <Info> BidCoS-Service started
2021/02/01 14:36:54.176 <Info> XmlRpc Server is listening on TCP port 2001
2021/02/01 14:36:54.178 <Debug> CCU2CommController::init() - Legacy initialization.

Hardware:
Raspberry Pi 3B+ with the original power supply
Homematic HM-MOD-RPI-PCB (newest Firmware)

It would be very nice if someone can give me an hint whats wrong here :slight_smile:

1 post - 1 participant

Read full topic

Homeassistant + Influxdb: is it possible to select a different Retention policy for a couple of sensors?

$
0
0

Hi to all,
I have many sensors that write into Influxdb; it uses a default retention policy of 1 week.

I have a couple of sensors (gas and water counters) that I want they use another infinite retention policy, called “infinite”.

Is it possible on configuration of HomeAssistant select different retention policy OR can someone help me to “copy” them from “one_week” retention to “infinite” retention?

At the moment I have these CQs:

CREATE CONTINUOUS QUERY cq_water ON homeassistant BEGIN SELECT value INTO homeassistant.infinite."l" FROM homeassistant.one_week."l" GROUP BY time(1h), entity_id fill(previous) END

CREATE CONTINUOUS QUERY cq_gas ON homeassistant BEGIN SELECT value INTO homeassistant.infinite."m3" FROM homeassistant.one_week."m3" GROUP BY time(1h), entity_id fill(previous) END

But infinite.l and infinite.m3 are empties (but not the one_week, I can show data in Grafana also). Thank you!

1 post - 1 participant

Read full topic

Keeping data for long term - managing Recorder

$
0
0

I have some specific entities that I want its date to be to be stored and available in my graphs for over a year. My understanding is that it stores by default 10 days. So I’m looking at the documentation:

I reckoning it would be something like this:

recorder:
  auto_purge: true #currently the default
  purge_keep_days: 365
  db_url: sqlite:////home/user/.homeassistant/test
    entities:
      - sensor.humidity_158d0001b91088
   ..............

Now I have two questions:

  1. Struggling with the include/exclude, that way that I did, will it store for 365 daysonly for that entities and 10 days for the other ones?
  2. Also, according to the documentation it says that the “purge_keep_days” parameter: “Specify the number of history days to keep in recorder database after a purge”. Question is, So we are saying that is gets purged automatically every day but it get stored the number of days? How does that work?

Note: not sure how will this affect performance, I’m using Docker on a Synology NAS, I also have MariaDB already set up in another container if needed.

1 post - 1 participant

Read full topic

Not asked for a password ... Just choose a user and you're in?!?

$
0
0

I was just noticed during a debug session where I added a user for someone else to log into my HA system, that there was NO NEED TO ENTER A PASSWORD.

If you enter the url you’re presented with this:

This is my config:

  auth_providers:
  - type: trusted_networks
    trusted_networks:
      - 192.168.1.0/24
      - 172.0.0.0/8
  - type: homeassistant

Any idea what I need to change to make my system secure again?
Thanks!!

1 post - 1 participant

Read full topic

Restore broken Grafana dashboard

$
0
0

Hello, I misconfigured Grafana dashboard JSON and now it does not load and shows error. The problem is that I even cannot get to dashboard settings to see versions to restore previous version. How can I fix JSON in such broken dashboard?

1 post - 1 participant

Read full topic


Script working in Developer Tools but not under button

$
0
0

I’ve created a bash file on my Nas, and want to execute it using Hassio.

Created a script in scripts.yaml:

transmission_remove:
  alias: TM Remove completed
  sequence:
  - service: shell_command.tm_remove

shell_command.yaml contains:

tm_remove: ssh -i /config/sshnas/id_rsa -o StrictHostKeyChecking=no -q hassio@[ip nas] /var/services/homes/hassio/transmission_remove_finished.sh

Setup authentication between Hassio and Nas using authentication keys, so that is not the problem.

When I test the service in Developer Tools, it works fine, the .sh is executed:

Developer Tools > Services > Service: script.transmission_remove > Call Service

Created a button in ui-lovelace.yaml:

    - type: button
      name: tr remove
      title: remove tm
      icon: mdi:delete-forever
      tap_action:
        service: script.transmission_remove

Restarted transmission, but the button does not work.

1 post - 1 participant

Read full topic

Issue with Google Assistant integration: devices:reportStateAndNotification failed: 404

$
0
0

Hello,

When I add a new device using Home Assistant or when a new Hue device is added to the Hub then is added to Home Assistant, I have the following error multiple times:
devices:reportStateAndNotification failed: 404

I Read the Troubleshooting section of the Google Assistant Integration documentation and found the 404 error is when Homegraph API is not enabled for the project.
I was sure to have enabled it before but I began again and paid particulary attention when checking the project ID where I enabled Homegraph but the error still occurs.

Has someone succeeded in solving this issue?
Because I have to manually sync my device when it should be done automatically and I am sure to have followed the documented instructions.

Except this issue everything works right when using my Home Assistant devices with Google Assistant.
I use Home Assistant OS in a Qemu VM managed with Libvirt on Debian Buster.

1 post - 1 participant

Read full topic

Sensor templating for additional informations should be done with the the device or inside HA?

$
0
0

First of all … newbie question (less but a week with HA) , plz keep that in mind, perhaps it was asked already but I wasn’t able to dig it in here.

Assume I got some ESPs running with temp/humi whatsoever sensors.

Since wanting things such as dewpoint, humiindex, … perhaps even parallel output in °C aswell as °F I’m aware of these possible ways to do so:

a) add the code for the ESP itself so that calculations are all done by the ESPs?

b) I could keep the ESPcode clean by simply offering the sensordata doing such calculations within a sensors.yaml file.

Is this upon the users choice or is there a recommended way which offers advantages against the other?

1 post - 1 participant

Read full topic

Duck DNS Install, HA Disappeared (Remote AND Local)

$
0
0

Hi all,

I just installed HA on a Raspberry Pi Model B over the weekend so I am nice and new. I was working through a list of abilities I wanted to integrate, which included the Alexa functionality. I was working through following this video (https://www.youtube.com/watch?v=Ww2LI59IQ0A) and I got to a point where he says you need to have Duck DNS to run. So then I ran through the steps to create a Duck DNS server. I got to the very end and rebooted my pi and my HA just disappeared. I can’t access it from local (which I understand is supposed to happen) or my new url (https://********.duckdns.org). I would LOVE to provide the code in my config file, except I can’t find a way to get back on. So I suppose at this point I have a theory + question and then a question

It just occurred to me, I have my devices, pi and smart home components connected to a Linksys Smart Wifi router which is then connected to a Netgear Modem/Router combo (I bought the modem/router so I don’t need to pay for my ISP’s, but the router aspect and wifi range sucked so I plugged a Linksys router into that which works great). So here are the questions, is this causing an issue with my port forwarding, and is there a way to make this work, like if I port forwarded the second router, or would I need to just switch all of my smart components over to the front end router.

Then my stand-alone question, is there a way to get back onto my HA without reflashing the SD card and starting from scratch?

Thanks!

1 post - 1 participant

Read full topic

Help with repeat while automation

$
0
0

Hi all,

I have an automation that notifies me when my dishwasher has finished. The automation checks whether the dishwasher door is open or closed before repeating the message every 10min and here’s the problem. In fact, it happens that it takes less than 10min to empty it and close the door so the message starts again even if there is no longer needed.

  - id: lavastoviglie_finita_hub
    alias: Lavastoviglie Finita
    initial_state: on
    trigger:
    - entity_id: input_boolean.lavastoviglie_switch
      platform: state
      to: 'off'
    condition:
      - condition: template
        value_template: >
          {%- if states.binary_sensor.lavastoviglie.last_changed -%}
            {{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.lavastoviglie.last_changed)) > 60*10 }}
          {%- else -%}
            true
          {%- endif -%}
    action:
      repeat:
        while:
          - condition: state
            entity_id: binary_sensor.lavastoviglie
            state: 'off'
          - condition: template
            value_template: "{{ repeat.index <= 12 }}"
          - condition: state
            entity_id: group.dispositivi_tracciati
            state: home
          - condition: state
            entity_id: input_boolean.lavastoviglie_switch
            state: 'off'
        sequence:
          - service: script.my_notify
            data_template:
              call_no_annuncio: 1 
              title: "Lavastoviglie"
              google: true
              message_tts: "la lavastoviglie è terminata"
              message: >-
                {{ [
                "La lavastoviglie è terminata. E' ora di sistemare i piatti!",
                "La lavastoviglie ha finito.",
                "I piatti sono puliti. Adesso tocca sistemarli!"
                ] | random }}
          - delay:
              minutes: 10

Can anyone suggest me a smarter solution?

1 post - 1 participant

Read full topic

Viewing all 107449 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>