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

Https certificate doesn't renew anymore

$
0
0

@Mark-81 wrote:

As usual I’m renewing my https certificate, following this documentation.
This time I get this error:

# /home/homeassistant/dehydrated/dehydrated -c
# INFO: Using main config file /home/homeassistant/dehydrated/config
Unknown hook this_hookscript_is_broken__dehydrated_is_working_fine__please_ignore_unknown_hooks_in_your_script
Processing <myname>.duckdns.org
Unknown hook this_hookscript_is_broken__dehydrated_is_working_fine__please_ignore_unknown_hooks_in_your_script
 + Checking domain name(s) of existing cert... unchanged.
 + Checking expire date of existing cert...
 + Valid till Oct 29 22:00:28 2019 GMT Certificate will expire
(Less than 30 days). Renewing!
 + Signing domains...
 + Generating private key...
 + Generating signing request...
 + Requesting new certificate order from CA...
  + ERROR: An error occurred while sending post-request to https://acme-v02.api.letsencrypt.org/acme/new-order (Status 400)

Details:
HTTP/2 400 
server: nginx
date: Sun, 03 Nov 2019 11:57:01 GMT
content-type: application/problem+json
content-length: 112
boulder-requester: 34189518
cache-control: public, max-age=0, no-cache
link: <https://acme-v02.api.letsencrypt.org/directory>;rel="index"
replay-nonce: 0002DV9Iq6WyUuTNWLGZjyH4aSs3sw_Oo8yaj1c6v5qgfjw

{
  "type": "urn:ietf:params:acme:error:badNonce",
  "detail": "JWS has no anti-replay nonce",
  "status": 400
}

I don’t understand why it doesn’t work anymore!

Posts: 9

Participants: 3

Read full topic


Component error: camera

$
0
0

@dhaker wrote:

After upgrading to 0.101.2 I receive the following error after doing the configuration validation.

Component error: camera - Requirements for stream not found: [‘av==6.1.2’].

Any suggestions would be appreciated.

Posts: 3

Participants: 2

Read full topic

Logbook shows automations being turned off

$
0
0

@GaryK wrote:

I noticed these entries in the HA logbook 0.101.2:

logbook
The Automation page continues to show these as On. Is this an known issue?

Posts: 1

Participants: 1

Read full topic

Workday sensor. How to check calendar?

Denon CEOL RCD-N9 integraties gives errors

$
0
0

@Nol wrote:

I’m trying to setup my Denon CEOL RCD-N9 using the Denon Network Reciever integration. This is the configuration in the configuration.yaml:

 media_player:
  - platform: denon
    host: 192.168.1.102
    name: denonstudeerkamer
  - platform: denon
    host: 192.168.1.85
    name: denonwoonkamer

I get the following errors in the log:

2019-11-03 15:55:29 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform denon
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 442, in wait_for
return fut.result()
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/denon/media_player.py”, line 85, in setup_platform
if denon.update():
File “/usr/src/homeassistant/homeassistant/components/denon/media_player.py”, line 174, in update
self._mediasource = self.telnet_request(telnet, “SI?”)[len(“SI”) :]
File “/usr/src/homeassistant/homeassistant/components/denon/media_player.py”, line 139, in telnet_request
lines.append(line.decode(“ASCII”).strip())
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe8 in position 14: ordinal not in range(128)

Any ideas how to fix this issue?

Posts: 1

Participants: 1

Read full topic

Docker compose and bluetooth

$
0
0

@Barique wrote:

Hi,
I’m struggling regarding usage of bluetooth in Docker-compose.
First: I have Home assistant working nicely as well as traeffik for external access to it.

Then i wanted to install my Asus bluetooth dongle on the Pi. It worked. I looked around to see if can have access to bluetooth through docker compose for HA to have a presence detection… And the results i found was to use network-mode: Host on the compose file for HA.

But now, i can’t have access to HA when i’m not in the same network…

Do you know if there is a solution for mapping bluetooth through the container and disable network-mode host as i want to have access through traefik to my instance ?

Thanks

Posts: 1

Participants: 1

Read full topic

Problem with a REST sensor (not technical but knowledge)

$
0
0

@RalfP wrote:

Dear all,

I would like to integrate my new charging station for my car into HA as a sensor.
The charger has a REST api and when I curl the status I get the following output (truncated)

{"success":true,"age":132,
"data":{"version":"B","tme":"0311190734","rbc":"8","rbt":"395977232","car":"4",
"amp":"32","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"56","tmp":"19",
"dws":"1944425","dwo":"0","adi":"0","uby":"0","eto":"1020","wst":"3","txi":"1", ....}

I’ve got that in my configuration.yaml

sensor:   
  - platform: rest
    resource: https://api.go-e.co/api_status?token=some_token&wait=0
    name: "Ladestation"
    scan_interval:
      minutes: 2
    value_template: '{{ value_json["data"] }}'
    json_attributes:
      - data
  - platform: template
    sensors:
      car_state:
        friendly_name: 'Zustand Ladestation'
        value_template: "{{ state_attr('sensor.Ladestation', 'data').car }}"
      charging_power:
        friendly_name: 'Ladestrom'
        value_template: "{{ state_attr('sensor.Ladestation', 'amp') }}"
      unit_temp:
        friendly_name: 'Temperatur der Ladestation'
        value_template: "{{ state_attr('sensor.Ladestation', 'data').tmp }}"
      error_code:
        friendly_name: 'Fehlermeldung Ladestation'
        value_template: "{{ state_attr('sensor.Ladestation', 'data').err }}"
       total_energy:
         friendly_name: 'Gesamte geladene Energiemenge'
         value_template: "{{ state_attr('sensor.Ladestation', 'data').eto }}"

With that I get no output for car_state: sensor (blank) and “None” for the charging_power: sensor.

The others will go the same way, so I just focus on these two now.

So here is what I really would like to have (but I don’t understand yet fully, if this is possible).

One sensor with multiple readings, one for car_state, one for charging_power, one for …

When I do one sensor with just one data field (e.g. amp) I already got the right value. Unfortunately I did not save that code for reference :frowning:

I’ve read several posts now and I’m trying for 2 days to get it working. I know I just have it close to my fingertips but maybe someone more experienced like me will solve this in seconds and then I will just cry…

Help is highly appreciated.

Thanks upfront
RalfP

Posts: 4

Participants: 3

Read full topic

How to automation can set the state of workday

$
0
0

@SteffenDE wrote:

Hi,

I’m using a Google calendar to getting public holidays. So I want to change the workday state from a automation. I have a template gives me ‘workday’, ‘weekend’ or the name of the public holiday.

Now I try to update the binary sensor workday to off if the state of this template is not ‘workday’. Any idea how to make this?

Regards, Steffen

Posts: 6

Participants: 3

Read full topic


Notification to State Which Sensor Triggered Manual Alarm

$
0
0

@chris_avfc wrote:

Hi All,

Looking for some help on how to send a notification which states which sensor tripped the manual alarm component, with the added complication of it being in a separate automation to the alarm trigger automation.
I want to keep the two separate so the notification is only sent when the alarm reaches the alarm triggered state, rather than the pending state.

My current code (simplified down to make it easier to read)

# ARMED AWAY TRIGGER
- id: alarm_trigger_away
  alias: Trigger Alarm While Armed Away
  trigger:
    - platform: state
      entity_id: binary_sensor.door_window_sensor_158d0001fd637f #Side Door
      to: 'on'
  condition:
    - condition: state
      entity_id: 'alarm_control_panel.home_alarm'
      state: armed_away
    - condition: state
      entity_id: 'input_boolean.bed_mode'
      state: 'off'
  action:
    - service: alarm_control_panel.alarm_trigger
      entity_id: alarm_control_panel.home_alarm
# ARMED AWAY TRIGGER NOTIFICATION  
- id: alarm_away_trigger_notification
  alias: Send notification when alarm away triggered
  trigger:
    - platform: state
      entity_id: alarm_control_panel.home_alarm
      to: 'triggered'
  action:
    - service: notify.notify
      data_template:
        title: "ALARM!"
        message: "The alarm has been triggered by the {{ trigger.to_state.attributes.friendly_name }} at {{now().strftime('%H:%M %d-%m-%Y')}}." 

Putting the {{ trigger.to_state.attributes.friendly_name }} in the original alarm automation will send the correct sensor (in this case the side door sensor), but moving it to the secondary automation the trigger is the home alarm itself.

Is there a way to have the sensor from the primary automation carry through?

Thanks

Posts: 2

Participants: 2

Read full topic

LIFX Smooth Color changing

$
0
0

@JayF wrote:

Good day,

I’ve two LIFX bulbs that I’ve successfully integrated into Home Assistant.

I would like to create the same smooth color transition between two colors. Right now, when using the LIFX app on iOS, when changing color, it is done smoothly. When changing the color through HA, it changes right away to the right color without any transition… it find the smooth change much better than the rough one HA is providing me. Any thoughts?

Thank you!

Posts: 1

Participants: 1

Read full topic

Remote access while port 80 and 443 used by other application

$
0
0

@song85129 wrote:

Hi guys,
This is my first post. I have been playing with Hassio on raspberry pi and everything works pretty good within my home network.
So I decided to move to next step so that I can access it from outsite. There are some threads and tutorial which are really helpful using duckdns to do it. But I’m afraid my case is bit different.
I have a static IP address and I have already used 80 and 443 for Nextcloud.
My current setup is I have a domain, lets say, aaa.domain.com pointing to my ip address for nextcloud server. I have setup the letsencrypt for that service.

Therefore, when I point duckdns to my ip, it will pick up the nextcloud page and letsencrypt certificate.

Is it possible to assign a letsencrpty certificate to a port and connect the port to another subdomain.
So I can use bbb.domain.com to access my home assistant on my ip:8123?

I have a feeling that this requires a lot of works. But to be honest, all I need is to access home assistant from my android app. Any other way to achieve it is also welcome.

Thank you.

Posts: 4

Participants: 4

Read full topic

Esp + mqtt + rule

$
0
0

@poudenes wrote:

Hi There,

I have some ESP Wall switches and configured some rules. But want activate them using MQTT
Now I have some shell_commands to do this:

meek_fan_turn_off: 'curl http://192.168.100.113/control?cmd=event,FanOff'
meek_fan_turn_on: 'curl http://192.168.100.113/control?cmd=event,FanOn'

Is it possible to change this into a MQTT Action?

The rule in ESP:

on FanOn do
     TaskValueSet 6,4,0
endon

on FanOff do
     TaskValueSet 6,4,1
endon

If it is possible to turn Tast 6,4 from 0 to 1 and vs using MQTT also than I can remove the rule in ESP

ESP info

Name of ESP Easy Mega: MeekWC

Thanks!!

Posts: 1

Participants: 1

Read full topic

My first automation. Light works, but no google say

$
0
0

@Cralis wrote:

I’ve made my first automation. It will only work, hopefully, at sunset. So I need to wait a few hours. However, I can trigger it.

I want a light to come on, and a google home mini to say something.

The light comes on, but the mini is silent.

Examples have quotes aroud the message. In the UI, I add the quotes… save the automation… but when I reopen it, the quotes are gone. do I need the quotes?

Can anyone see a problem as to why my speaker isn’t speaking?

Posts: 5

Participants: 4

Read full topic

Cannot access Home Assistant frontend via http

$
0
0

@mkg wrote:

Hi there I am running a vm version using oracle vm and windows server 2012. It has been working great up and till I tried updating to the latest. I cannot access via http://hassio.local:8123 or via fixed ip 192.168.0.160:8123. Yet its still making backups daily and I can access plex port no problem, http://192.168.0.160:33400. I can get to cmd line of the vm. I can see the snapshots and I have tried restoring snapshot using the command “snapshots restore 182fc2cb” It replies processing…done and Error below that with nothing else. If someone can point me into the right direction thank you kindly. Mark

Posts: 2

Participants: 2

Read full topic

HA Irrigation Automation

$
0
0

@Bashir_Jahed wrote:

Hi There smart people,

I am trying to get my first Automation up and running, any pointers or starter automations would be appreciated.

My set up is as follows:

HA running on dedicated server
Irrigation Solenoids connected to a Sonoff 4CH Pro R2
Wellpoint pump connected to a pressure sensing valve

I am able to manually trigger the solenoids using the HA interface and the Sonoff is set up in Interlocking mode so it successfully closed zone 1 if zone 2 is triggered etc. I have 4 zones in total.

My goal is to have an automation that runs at sunrise every Monday, Wednesday and Friday and each zone should run for a period of 15 minutes.

I will figure out the weather based bits once i have the base automation in place.

Thanks in advance

Posts: 3

Participants: 3

Read full topic


Last-changed in entities card different from timeline

$
0
0

@hhh wrote:

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Posts: 1

Participants: 1

Read full topic

Template sensor - Mixed numeric and text output! Possible?

$
0
0

@jim1977 wrote:

Hello!

I’ve got a sensor which I’d like to create a template sensor for.
When “sensor.battery_time_to_go” shows “0” I’d like to display the word “infinate” and any positive numerical value after that to display as normal. ie: 1.1, 10.2 etc

Template sensor:

  time_to_go:
    friendly_name: "Time to go"
    unit_of_measurement: 'Hrs'
    entity_id:
      - sensor.battery_time_to_go
    value_template: "{%if states.sensor.battery_time_to_go == '0' %}Infinate{% endif %}"

Is this possible?

Posts: 3

Participants: 2

Read full topic

Lovelace: Custom element doesn't exist

$
0
0

@jellelle wrote:

Hi all,

I can’t get the custom cards to work. Could somebody please tell what I am doing wrong?

I have restarted Home Assistant
.
Thanks,
Jelle

EDIT: Sorry, seems like other custom cards do work now, probably something to do with the ‘text-divider-row’-card.

Posts: 5

Participants: 3

Read full topic

How to make picture-elements grayscale based on light entity, but tapable

$
0
0

@bowesmana wrote:

I’m trying to do a picture-glance (or picture-elements) card for my rooms that behaves like the picture-entity card, which shows grayscale if the light in the room is off. I want to have the temperature state/value in the image and if I touch the image, I want the light to turn off.

I don’t seem to be able to make the image itself go grayscale based on the light entity.

This is my basic card

      - entity: light.bedroom
        image: /local/Bedroom.png
        tap_action:
          action: toggle
        show_name: false
        show_state: false
        type: picture-entity

but ideally I want the temperature value to be displayed in the image top/left (so requiring a picture-elements card) but the image to be grayscale and the light toggle on picture tap.

I just can’t figure it out after an hour of trial and error…

Posts: 1

Participants: 1

Read full topic

Local_boolean in timestamp_custom

$
0
0

@uphillbattle wrote:

I’m a little confused and haven’t really found anything that explains this to me:

I have a few input_datetime inputs, most of them as just times triggering automations daily. I’ve now defined an input_datetime with both date and time - the intention is to trigger an automation at a specific time on a specific date.

For the daily automations, I trigger them like this:

  trigger:
    platform: template
    value_template: "{{ states('sensor.time') == (state_attr('input_datetime.tid_for_slukk_lys_helgedager', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"

This works fine. If input_datetime.tid_for_slukk_lys_helgedager is set to 00:05, the automation triggers at 00:05. Checking the value of the input_datetime in the template checker with:

{{ (state_attr('input_datetime.tid_for_slukk_lys_helgedager', 'timestamp') | int | timestamp_custom('%H:%M',False)) }}

I get 00:05. All well so far.
If I change the local_boolean parameter (the second parameter in timestamp_custom) to True, I get 01:05, which is not what I want, so I stick with local_boolean set to False.

However, for both time and date, I’ve set input_datetime.tid_for_sla_pa_varme_i_hytta to 2019-11-08 07:00. If I check its value in the template checker with

{{ (state_attr('input_datetime.tid_for_sla_pa_varme_i_hytta', 'timestamp') | int | timestamp_custom('%H:%M, %Y-%m-%d', False)) }}

I get 06:00, 2019-11-08. If I change the local_boolean to True, I get 07:00, 2019-11-08.

I’m not getting why I have to use local_boolean set to False for just time, but True for time and date.

Any ideas or pointers?

Posts: 3

Participants: 2

Read full topic

Viewing all 95257 articles
Browse latest View live


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