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

Having problem adding NAD mediaplayer

$
0
0

@flodnog wrote:

Hi community.
I’m having issues adding an NAD mediaplayer using the nad platform.

configuration.yaml:
media_player:
 - platform: nad
   host: 192.168.1.19
   type: Telnet
   name: C390D
   max_volume: -20
   min_volume: -70
   volume_step: 2
   port: 23
error log:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 312, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 476, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/nad/media_player.py", line 200, in update
    self._volume = self.calc_volume(self._nad_receiver.main_volume("?"))
  File "/usr/local/lib/python3.7/site-packages/nad_receiver/__init__.py", line 83, in main_volume
    return int(self.exec_command('main', 'volume', operator, value))
ValueError: invalid literal for int() with base 10: '-42.0dB''

I hope somebody can help. I’m not much of a programmer. But is the platform trying to dB to an int?
Regards.

Posts: 1

Participants: 1

Read full topic


Cannot connect locally after duckdns

$
0
0

@yoni wrote:

After successfully installing duckdns, my ios app stopped connecting to my local network and only works trough duckdns…

It keeps saying that the SSL cert is invalid and it only verifies if I login over duckdns.

Posts: 2

Participants: 2

Read full topic

SSL Not Working Locally

$
0
0

@warllo54 wrote:

I’m running home assistant in a docker environment using traefik as a reverse proxy and everything is working great. I’m able to access my install via SSL internally and externally. However I am attempting to migrate to Home Assistant Core (what I think use to be hassio) and I am able to access the new environment externally via SSL however internally I can only access it via local ip address.

I have enabled NAT reflection on my pfsense router, and rebooted all hardware involved. I will also post my config below although it’s very minimal at this point. I’m hoping something is missing from my config. Any suggestions would be most appreciative.

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

discovery:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
http:
  base_url: https://hassio.warllo.org
  server_port: 8124

# Text to speech
tts:
  - platform: google_translate


group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

Posts: 4

Participants: 2

Read full topic

Huawei B525 integration - units for current download/upload rate sensors

Problems configuring DuckDNS after a rebuild

$
0
0

@neilc wrote:

Hi,

I’ve had a few problems trying to do a rebuild. I tried to restore from google backup after reinstalling Hassio but each time I try it prevents the webUI from loading.
I decided to rebuild my environment from the ground up reinstalling each add-on and configuring it from fresh… painful process.
The main problem I have encountered is trying to configure DuckDNS. I have my domain set up and the config looks as follows:

lets_encrypt:
  accept_terms: true
  certfile: fullchain.pem
  keyfile: privkey.pem
token: my-token-id-value
domains:
  - myDomainName.duckdns.org
seconds: 300

This issue occurs when I try to add my http details to configuration.yaml. As soon as I try to restart the box after adding these values the webUI won’t load. Fortunately I can remove the values via winSCP but I just can’t figure out what the problem is with them. I’ve checked in the ssl directory and both pem files are in there. The domain name appears to match what I set up on duckDNS (as does the token).

http:
  # base_url: myDomainName.duckdns.org:8123
  # ssl_certificate: /ssl/fullchain.pem
  # ssl_key: /ssl/privkey.pem

If I uncomment All or just 1 of the 3 values I get the problem with the webUI failing to load. The homeassistant.log doesn’t show anything to indicate a problem. The duckDNS log is as follows:

# INFO: Using main config file /data/workdir/config
+ Account already registered!
[14:45:56] INFO: OK
212.159.89.102
NOCHANGE
# INFO: Using main config file /data/workdir/config
Processing myDomainName.duckdns.org
 + Checking domain name(s) of existing cert... unchanged.
 + Checking expire date of existing cert...
 + Valid till Jun 20 19:13:00 2020 GMT Certificate will not expire
(Longer than 30 days). Skipping renew!
[14:51:12] INFO: OK
212.159.89.102
NOCHANGE
[14:56:13] INFO: OK
212.159.89.102
NOCHANGE

Anyone got any ideas? Is there a more detail log hidden somewhere that might give me a better insight into the problem?

Thanks in advance

Posts: 3

Participants: 3

Read full topic

Harmony input_select

$
0
0

@jan.mob wrote:

Can someone tell me why this doesnot work?
i try to turn the volume up from my tv and ter controle turn over the input_boolean switch.

this doesnot work!

- alias: "test:"
    trigger:
       platform: state
       entity_id: input_select.volume
       to: 'VolumeUp'
    action:
      - service: remote.turn_on
        data: 
          entity_id: remote.harmony_barts_remote
          command: "VolumeUp" 
          device: "67374347"
      - service: input_boolean.turn_on
        data:    
          entity_id: input_boolean.test_jan2

If i try it like this it works but whitout volume going up (clear)

- alias: "test:"
    trigger:
       platform: state
       entity_id: input_select.volume
       to: 'VolumeUp'
    action:      
      - service: input_boolean.turn_on
        data:    
          entity_id: input_boolean.test_jan2

Posts: 3

Participants: 2

Read full topic

Lutron Caseta lights not responding in HA

$
0
0

@ADHawk wrote:

Hi,

I have two Caseta dimmers and one on-off switch integrated with HA. They’ve been working well for months, but the devices seem to have stopped responding to HA overnights last night.

I’m running HA 0.107.5 on a Raspberry 3b+. I have the Lutron certificates installed via the helper add-on.

The Lutron devices work properly via the Lutron app.

When I try to control the lights via HA, I get an error like the following

Any help is appreciated.

Posts: 1

Participants: 1

Read full topic

Get one var from json

$
0
0

@tiebe111 wrote:

Hey all,

I have spotcast set up, and when it has an attribute called devices_json

This json is like this:

[{"name": "Kitchen display", "cast_type": "cast", "model_name": "Google Nest Hub", "uuid": "9afaa83d-d64c-5485-d64d-cf464b9fc300", "manufacturer": "Unknown manufacturer"}, {"name": "Tiebe Bedroom", "cast_type": "audio", "model_name": "Google Home Mini", "uuid": "aeaf0506-0e8e-f1e9-fadf-3ca2a9c6d6e6", "manufacturer": "Unknown manufacturer"}, {"name": "Bedroom Lotte speaker", "cast_type": "audio", "model_name": "Google Home Mini", "uuid": "5e8e2113-597d-ed67-c7a1-e28e52e9f824", "manufacturer": "Unknown manufacturer"}, {"name": "Living Room speaker", "cast_type": "audio", "model_name": "Google Home", "uuid": "38aaf3c3-be68-f00a-a9ce-ce577a17751e", "manufacturer": "Unknown manufacturer"}, {"name": "Home group", "cast_type": "group", "model_name": "Google Cast Group", "uuid": "ce756229-6610-4d69-9aa5-c5da4add3cff", "manufacturer": "Unknown manufacturer"}, {"name": "Office speaker", "cast_type": "audio", "model_name": "Google Home Mini", "uuid": "0b55fd19-91b5-68f0-1c47-b6f153629716", "manufacturer": "Unknown manufacturer"}]

I would like to get all the name data, and put them in a input_select.

Is this possible, if so, how would I do this?

Thanks in advance.

Posts: 2

Participants: 1

Read full topic


"unit_of_measurement" in current language

$
0
0

@chemelli wrote:

Hi,

would be possible to translate unit_of_measurement in current UI language ?
For example I have

unit_of_measurement: days

in my template.
If it’s possible, how should I proceed ?

Thank you in advance,

Simone

Posts: 1

Participants: 1

Read full topic

Can't find error in automation.yaml

$
0
0

@Stooovie wrote:

Check config and log are throwing this error:

Invalid config for [automation]: [after] is an invalid option for [automation]. Check: automation->trigger->3->after. (See /config/configuration.yaml, line 41).

Here’s the config yaml
Here’s automations.yaml

The culprit seems to be somewhere in the last automations (the washing machine stuff), which is copied from here

I can’t figure it out as the log entry doesn’t seem to navigate me to anything useful (line 41 in config is empty). Thanks!

Posts: 4

Participants: 3

Read full topic

Send command from HA to Rhasspy

$
0
0

@pploume wrote:

Hi,

Just playing around with HA and Rhasspy.

I’m able to send “text to speech” from HA to Rhasspy …
I would like to be able to send a command to make Rhasspy waiting for a sentence (then create an intent and send it to HA)

What I use is :
in configuration.yaml (the part tts: work perfectly…)

 rest_command:
  tts:
      url: 'http://192.168.0.3:12101/api/text-to-speech'
      method: 'POST'
      content_type: text/plain
      payload: '{{payload}}'
  
  wake:
      url: 'http://192.168.0.3:12101/api/listen-for-command?nohass=false'
      method: 'POST'
      content_type: text/plain
      payload: '{{payload}}'

and the call in automation.yaml

- alias: 'Aide Generale'
  trigger:
    platform: event
    event_type: rhasspy_AideGenerale
  action:
    - service: light.turn_on
      entity_id: light.bureau
    - service: rest_command.tts
      data_template: 
        payload: >
          {% set aide = trigger.event.data.aidegenerale %}
          {% if trigger.event.data.aidegenerale %}
          "Je peux m'occuper des lumières ou de la radio, dites aide lumière ou aide radio"
          {% else %}
          "y'a pas d'aide"
          {% endif %} }
    - service: rest_command.wake
      data: {payload: ""}

In Rhasspy log, I see nothing about receiving a command from API
nor I can hear the ready ‘ding’ … like if I use the command from Rhasspy API web interface.

Thanks for your help
p

Posts: 1

Participants: 1

Read full topic

Reverse proxy not working properly

$
0
0

@Malte wrote:

Hello there,

I am having problems setting up a reverse proxy on my home assistant installation. The weird part is that I have access to the login page and also seem to get authorized (because a refresh-token is genereated) when I log in but then I get the message:

Unable to connect to Home Assistant.
When I hit the refresh button then it just brings me back to the login screen. I am thinking that it might have something to do with ProxyPassReverse setting in the apache2 configuration of the proxy server but actually do not know what I am doing wrong.

My setup is as follows:

I have a domain with a CNAME DNS-record pointing at the DuckDNS address which points at my homes IP. The external port 80 and 443 are forwarded to the same internal ports of the server running the reverse proxy.
The reverse proxy server is running apache2 with the following config and the same for port 80:

<VirtualHost *:443>
  ServerName home.example.org
  ProxyPreserveHost On
  ProxyRequests off
  ProxyPass /api/websocket ws://localhost:8123/api/websocket
  ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket
  ProxyPass / http://localhost:8123/
  ProxyPassReverse / http://localhost:8123/

  RewriteEngine on
  RewriteCond %{HTTP:Upgrade} =websocket [NC]
  RewriteRule /(.*)  ws://localhost:8123/$1 [P,L]
  RewriteCond %{HTTP:Upgrade} !=websocket [NC]
  RewriteRule /(.*)  http://localhost:8123/$1 [P,L]
</VirtualHost>

A created a SLL certificate for the external domain using certbot.

My home assistant config is the following:

http:
  base_url: external.domain.com
  use_x_forwarded_for: true
  trusted_proxies:
    - proxy_server_ip_address

I hope someone can help me. Thanks in advance!

Posts: 1

Participants: 1

Read full topic

Divider In Vertical Stack

$
0
0

@Veldkornet wrote:

I can’t seem to get the divider to work in a vertical stack, and ideas?

I keep getting the message:

Unknown type encountered: divider.
Type: divider

Home Assistant 0.107.5

type: vertical-stack
cards:
  - type: entities
    title: Section 1
    entities:
      - light.light_1
      - light.light_2
      - light.light_3
  - type: divider
  - type: entities
    title: Section 2
    entities:
      - light.light_4
      - light.light_5
      - light.light_6

Posts: 3

Participants: 2

Read full topic

Scene issues with Mqtt colored lights

$
0
0

@tyrsen wrote:

I just hooked up some Tuya colored (Tasmota flashed) lights to home assistant and they work great. Changing brightness, color temp and colors all work just fine. The only strange issue I am having I that when I try to set a color temp in a scene they automatically turn a saturated purple. But calling. the service color_temp: 500 works just fine. So this seems to only be a scene issue.

Anyone has any idea why this is happening?

Posts: 1

Participants: 1

Read full topic

HTML5 Actions and DuckDNS

$
0
0

@pschneider87 wrote:

Hi,

I’m searching and searching, but can’t find a solution.

Issue: I want to use HTML5 Notifaction Actions, but HA won’t register them
Solution: It seems that NGINX block the events, according to https://www.home-assistant.io/integrations/html5/#making-notifications-work-with-nginx-proxy

My Setup:
I’m using the DuckDNS addon with Let’s encrypt certificates. I’m able to reach the HA with SSL.

Approaches:
I’ve installed the NGINX Plugin, deleted the http-info in configuration.yaml but with this setup, I was not able to reach HA on HTTPS.

I’m trying to figure out, where I have to place the information from https://www.home-assistant.io/integrations/html5/#making-notifications-work-with-nginx-proxy

Can anybody help please?

Posts: 1

Participants: 1

Read full topic


Custom configCustom element doesn't exist: picture-entity

$
0
0

@marnixk77 wrote:

I am trying to get a state value as name on a picture entity card. Someone mentioned to use the config-template-card option.

type: 'custom:config-template-card'
variables:
  - 'states[''sensor.trash_first_next_item''].state'
entities:
  - sensor.trash_first_next_item
  - sensor.trash_first_next_date
card:
  type: 'custom:picture-entity'
  entities:
    - entity: sensor.trash_first_next_item
      name: '${states[''sensor.trash_first_next_date''].state}'
      state_image:
        Geen: /local/afvalwijzer/geen.png
        gft: /local/afvalwijzer/gft.png
        papier: /local/afvalwijzer/papier.png
        plastic: /local/afvalwijzer/plastic.png
        restafval: /local/afvalwijzer/grijs.png

With the config above I get the error:
Custom element doesn’t exist: picture-entity.

Is it possible to the custom-config-template with the custom-config-template addon?

Posts: 4

Participants: 2

Read full topic

How to process unclean REST data

$
0
0

@majuss wrote:

Hi guys,

I want to setup a RESTful sensor to monitor the contens of a webpage. I have a URL which returns this payload:

payload({"Result": {...}})

So as you can see the payload is encapsuled in normal brackets and therefore it’s not a JSON anymore. How can I extract the JSON inside the normal brackets?

Thank you!

Posts: 1

Participants: 1

Read full topic

Log warnings not knowing coming from

$
0
0

@Canedje wrote:

I do recieve regular the next errors (every 30 minutes or so):

I don’t know where these come from because it is not part of my “buienradar” (br) sensor:
Knipsel2

Any ideas? Or is this a bug in the buienradar API or so?

Posts: 2

Participants: 2

Read full topic

MQTT with SSL/TLS and a self-signed certificate

$
0
0

@fufs wrote:

Hi there,

I’m trying to setup a MQTT connection between Home Assistant and my MQTT broker over SSL/TLS. I’m using a self-signed certificate, I generated with OpenSSL 1.1.1d. I confirmed that my broker is setup correctly with a MQTT Dashboard app on my phone. Home Assistant cannot connect to it due to the self-signed certificate. I keep getting this error:

Failed to connect due to exception: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)

From the research I conducted I know that you can pass on verify=False in Python to omit that error. Is there any way I can set it up in configuration.yaml?

Posts: 1

Participants: 1

Read full topic

Best way for dev environment

$
0
0

@ninjadog wrote:

Seen a few guides on the docs , and a 101 , but not quite how I want to work.

I have a server running HA in a python venv.
Other servers run other software which I also extend through dev work.
Samba shares setup and working on the servers.
My dev box is Win10 running VSCode for dev work using the Samba shares.

What is the best way to create a dev environment to do develop HA custom cards, custom components , and platforms. Ideally, is it possible to use my existing HA server and setup projects on that box , using VSC to do remote builds/work. ?

What is the best way [a link to a guide would be great] that

Posts: 1

Participants: 1

Read full topic

Viewing all 105572 articles
Browse latest View live


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