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

FFMPEG Extra Args

$
0
0

@SupahNoob wrote:

I’ve got a few Wyze Cam v2s that are running the RTSP firmware. My config is below, but I can’t seem to get a few things working during stream or file record…

  • audio
  • scale / video size
camera:
  - platform: ffmpeg
    name: PeopleCam
    input: rtsp://hass:hass@192.168.1.186/live
    extra_arguments: -q:v 3 -r 15 -vf "scale=1280:720" -c:v libx264 -c:a copy

...

stream:

I’m actually not sure if any of the args are taking hold at this point.

Has anyone had any luck with this combination?

Posts: 1

Participants: 1

Read full topic


Clicking overview button shows deprecated overview

$
0
0

@Canedje wrote:

If i click on the overview button it shows the deprecated overview.
Even If i change the option at the info page.
how to get the lovelace UI as standard at the button overview click?

EDIT: This only happens in the chrome browser. In Edge it is showing the normal UI. But in Edge I can not check entities, because that page freezes

Posts: 1

Participants: 1

Read full topic

Home Assistant REST API - 404 not found

$
0
0

@mcqwerty wrote:

Followed instructions here:

When trying a simple GET to http://myIpAddress:8123/api I get a response of 404: Not Found

Incrementally added all of these to my configuration.yaml restarting the Home Assistant each time

api:
http:
frontend:
websocket_api:

Running HASS.IO in Docker on an Intel NUC
Version: Home Assistant 0.106.5

Any ideas what I’m missing?
Thanks

Posts: 1

Participants: 1

Read full topic

Hassio cli

$
0
0

@mwieting wrote:

Im running HomeAssistant on a raspberrypi4. I am trying to setup the Roomba integration. I’m following the documentation from the offical HA site. My underlying problem is I cannot run commands in a terminal within my HA setup. I see bash-5.0: but no matter what i type in the command, it errors out. Im trying to run the following command: pip install git+https://github.com/NickWaterton/Roomba980-Python.git

Posts: 2

Participants: 2

Read full topic

Nested IF statements in TTS messages

$
0
0

@jeroenjoosse wrote:

After upgrading from .102 to .106, some of my templated TTS messages stopped working.

I looked through the breaking changes and found this issue, possibly the reason why it broke. But I don’t know how to fix it.

For example, this one used to work:

  - service: notify.alexa_media
    data_template:
      target: '{{ states.sensor.last_alexa.state }}'
      data:
        type: tts
      message: >
        {% if trigger.entity_id == "input_boolean.alexa_tide_report" %}
          It is
          {% if states('sensor.waterstand') | float < -40 %}
            Low
          {% elif states('sensor.waterstand') | float > 50 %}
            High
          {% else %}
            Medium
          {% endif %}
          tide.
        {% endif %}

When I remove the second and second-last line inside the tts message (“It is”, “tide.”) it works again. So I’m guessing there’s something with nested IF statements, and parts of the message not allowed inside them.

Anybody has an idea how to recreate the original message that doesn’t break templating rules? I could include the second line later, but sometimes I need to make these kind of ‘composed’ tts messages - this is just one of the simpler examples.

– edit: changed It’s to It is, just to make the code formatting look better here –

Posts: 4

Participants: 2

Read full topic

Automations are not always executed

$
0
0

@broken.pipe wrote:

Hi all!

At the moment I often notice that HA does not always perform the tasks it is supposed to do at the correct time. Sometimes the times are shifted by a few minutes, sometimes they are not performed at all. I automate my thermostats and lamps with schedy and simple scheduler. in 80% of the cases the automation works, in 20% of the cases i have a cold bathroom in the morning. what could be the reason, how could i best find the error?

Posts: 2

Participants: 2

Read full topic

Create input entities programmatically/dynamically?

$
0
0

@FlyingSaucrDude wrote:

I’d like to be able to create (and delete!) new input entities (e.g. input_number, input_boolean, etc.) dynamically/programmatically. Here’s my goal:

I want to be able to allow users to create (and delete) an arbitrary number of alarms to wake them up (kind of like you can in most smartphone alarm clock apps). When a user hits the “new alarm” button, HA should create the corresponding set of input entities (the time for the alarm, whether or not it’s enabled, etc.), and display that via Lovelace.

I’m ambivalent about whether or not these new entities should persist across restarts of HA. (If they disappear when I restart HA, I’ll live with that for now.)

AFAICT, there’s no way to do this, even with AppDaemon. This post is the closest I’ve found, but it didn’t have a solution. It’s also over two years old, so maybe new features have been added to HA since then that I just can’t find?

Thanks in advance!

Posts: 1

Participants: 1

Read full topic

Automation depending on max temp of day

$
0
0

@Tom7320 wrote:

Hi

I would like to trigger certain actions depending on the maximum temperature of the day:

- alias: 'Weather Test'
  trigger:
    - platform: time
      at: '09:00:00'
  condition:
    - condition: numeric_state
      entity_id: sensor.dark_sky_daytime_high_temperature_0d
      above: 21.0
  action:
    - service: notify.ts
      data:
        message: "Gonna be hot today"

However, this does not work. Probably a simple question, but what am I doing wrong here?

THX a lot!

Thorsten

Posts: 4

Participants: 2

Read full topic


CPU 100% in a docker

$
0
0

@MarkR wrote:

Hello

I noticed my CPU was 100% due to HA and I have emptied my MYSQL database and still it persisits. Any idea what I can do to see what is causing it please? I stop the docker and cpu drops right off. So I know it is something in HA

Cheers
Mark

Posts: 9

Participants: 2

Read full topic

Python script - cannot call def from another def

$
0
0

@RandomHassUser wrote:

Hopefully an easy question to answer, I cannot seem to call a def from another def (possibly due to the way hass wraps script files?)

Example:

global gLogger
gLogger = logger

def one():
  gLogger.info("one")
  two()
  
def two():
  gLogger.info("two")

one()

Executing this python script gives me:

Error executing script: name 'two' is not defined

Does hass wrap these scripts in a way where I need to call a parent method to access the other defs? Could someone demonstrate the proper way to call two from the one definition in this scenario?

Posts: 2

Participants: 1

Read full topic

MariaDB growing to big.., Can't get it smaller

$
0
0

@TheStigh wrote:

Using MariaDB and the database has now grown passing 9 Gb.
I’ve added some exludes to recoder:

recorder:
  db_url: !secret urlMariaDB
  purge_keep_days: 14
  exclude:
    domains:
      - weblink
      - updater
      - input_boolean
      - input_number
      - input_select
      - input_text
      - light
      - media_player
      - sun
      - timer
      - weather
      - camera
    entities:
... a bunch of entities also...

Also, I’ve got an automation to purge the database, but still it doesn’t reduce it’s size.

- alias: Purge Database
  id: Purge Database
  trigger:
  - platform: time
    at: '03:00:00'
  action:
  - service: recorder.purge
    data:
      keep_days: 14

What am I missing?

Posts: 9

Participants: 7

Read full topic

Update parameter not working for Qubino Mini Dimmer Parameter #65

$
0
0

@hetOrakel wrote:

When I update this parameter (Qubino Mini Dimmer parameter #65) I receive the response that it is set to “1” instead of the value I’m sending… See my log below where I set the value to “25”.

I’m using the built in Z-wave Control Panel. Changing other parameters seem to work just fine…

2020-03-08 22:15:05.506 Info, Node003, Value::Set - COMMAND_CLASS_CONFIGURATION - Dimming time (soft on/off) - 65 - 1 - 25
2020-03-08 22:15:05.506 Info, Node003, Configuration::Set - Parameter=65, Value=25 Size=2
2020-03-08 22:15:05.506 Detail, Node003, Queuing (Send) ConfigurationCmd_Set (Node=3): 0x01, 0x0d, 0x00, 0x13, 0x03, 0x06, 0x70, 0x04, 0x41, 0x02, 0x00, 0x19, 0x25, 0x65, 0x8a
2020-03-08 22:15:05.506 Detail, Node003, Queuing (Send) ConfigurationCmd_Get (Node=3): 0x01, 0x0a, 0x00, 0x13, 0x03, 0x03, 0x70, 0x05, 0x41, 0x25, 0x66, 0x91
2020-03-08 22:15:05.507 Detail, 
2020-03-08 22:15:05.507 Info, Node003, Sending (Send) message (Callback ID=0x65, Expected Reply=0x13) - ConfigurationCmd_Set (Node=3): 0x01, 0x0d, 0x00, 0x13, 0x03, 0x06, 0x70, 0x04, 0x41, 0x02, 0x00, 0x19, 0x25, 0x65, 0x8a
2020-03-08 22:15:05.525 Detail, Node003,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2020-03-08 22:15:05.525 Detail, Node003,   ZW_SEND_DATA delivered to Z-Wave stack
2020-03-08 22:15:05.574 Detail, Node003,   Received: 0x01, 0x07, 0x00, 0x13, 0x65, 0x00, 0x00, 0x05, 0x8b
2020-03-08 22:15:05.574 Detail, Node003,   ZW_SEND_DATA Request with callback ID 0x65 received (expected 0x65)
2020-03-08 22:15:05.574 Info, Node003, Request RTT 67 Average Request RTT 71
2020-03-08 22:15:05.574 Detail,   Expected callbackId was received
2020-03-08 22:15:05.574 Detail,   Expected reply was received
2020-03-08 22:15:05.574 Detail,   Message transaction complete
2020-03-08 22:15:05.574 Detail, 
2020-03-08 22:15:05.574 Detail, Node003, Removing current message
2020-03-08 22:15:05.574 Detail, 
2020-03-08 22:15:05.574 Info, Node003, Sending (Send) message (Callback ID=0x66, Expected Reply=0x04) - ConfigurationCmd_Get (Node=3): 0x01, 0x0a, 0x00, 0x13, 0x03, 0x03, 0x70, 0x05, 0x41, 0x25, 0x66, 0x91
2020-03-08 22:15:05.587 Detail, Node003,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2020-03-08 22:15:05.587 Detail, Node003,   ZW_SEND_DATA delivered to Z-Wave stack
2020-03-08 22:15:05.641 Detail, Node003,   Received: 0x01, 0x07, 0x00, 0x13, 0x66, 0x00, 0x00, 0x06, 0x8b
2020-03-08 22:15:05.641 Detail, Node003,   ZW_SEND_DATA Request with callback ID 0x66 received (expected 0x66)
2020-03-08 22:15:05.641 Info, Node003, Request RTT 66 Average Request RTT 68
2020-03-08 22:15:05.641 Detail,   Expected callbackId was received
2020-03-08 22:15:05.777 Detail, Node003,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x03, 0x05, 0x70, 0x06, 0x41, 0x01, 0x01, 0xc1
2020-03-08 22:15:05.777 Detail, 
2020-03-08 22:15:05.777 Info, Node003, Response RTT 202 Average Response RTT 184
2020-03-08 22:15:05.777 Detail, Node003, Refreshed Value: old value=1, new value=1, type=short
2020-03-08 22:15:05.777 Detail, Node003, Changes to this value are not verified
2020-03-08 22:15:05.777 Info, Node003, Received Configuration report: Parameter=65, Value=1
2020-03-08 22:15:05.777 Detail, Node003,   Expected reply and command class was received
2020-03-08 22:15:05.777 Detail, Node003,   Message transaction complete
2020-03-08 22:15:05.777 Detail, 
2020-03-08 22:15:05.777 Detail, Node003, Removing current message
2020-03-08 22:15:05.777 Detail, Node003, Notification: ValueChanged

Posts: 3

Participants: 1

Read full topic

Template count device_tracker

$
0
0

@Mattie wrote:

I have two device trackers and I want a template sensor that counts the devices fetched by only one of them. I want to filter out all entities that have state=home AND scanner=NmapDeviceScanner

Today I have this and it counts ALL therefore I get dublicates
{{ states.device_tracker | selectattr(‘state’, ‘eq’, ‘home’) | list }}

I have tried this but it gives me nothing, anyone knows why?
{{ states.device_tracker | selectattr(‘scanner’, ‘eq’, ‘NmapDeviceScanner’) | list }}

Posts: 2

Participants: 2

Read full topic

Konnected sensors stopped changing colour on state change (after 0.106.0 update perhaps)

$
0
0

@chartrand22 wrote:

Hi @heythisisnate

Since the recent HA update and the new Konnected integration, my binary sensors have stopped going from blue (closed, no motion) to yellow (opened, motion).

It looks like this is the result of the new HA Konnected functionality. How can this be fixed ?

thanks !

Posts: 1

Participants: 1

Read full topic

Lovelace card size?

$
0
0

@henry8866 wrote:

I wonder if we can specific the size of the card? for example for historical graph card, I’d like to set it to span the whole width? or just triple of the default width?

Posts: 1

Participants: 1

Read full topic


How to add sensor for thermostat

$
0
0

@Astate wrote:

hi have sensi thermostat and i just have climate entity. How i can have or create sensor entity for my thermostat when its not auto generate ?

Posts: 1

Participants: 1

Read full topic

Binary sensor of wether a position is within 100m of another position?

$
0
0

@Halias wrote:

I have the gps-locations of two devices - I would like to know whether they are within a certain distance from each other. Or if one location is within a radius of the other…

Any tips on how to achieve it?

Since HA internally is able to determine whether a location is within a radius the functionality seems to be there, can that be used somehow?

Posts: 2

Participants: 2

Read full topic

Iphone device tracker shows as unknown in HA

$
0
0

@aravinds wrote:

I am testing the HA for which I have installed HA on RPI. I am trying to track the family members via their mobile phone to display whether they are in home or away. I have got a Android and iOS mobile.

Device_tracker_phone for iOS is constantly only on the unknown status, where for the Android phone is shows away or home based on the location. Also, I noticed geocoded location for android gets updated based but for iOS its in unknows status.

In the configuration.yaml I have tried including mobile_app: and ios: config alone with default_config , but it doesn’t have change. I have tried to monitor both while in home network and remotely, but no luck with iOS device.

Any suggestion on what could be the issue?

Posts: 1

Participants: 1

Read full topic

Met office (UK) - weather forecast

$
0
0

@PaulWebster wrote:

I have the Met Office Sensor and also the Met Office Weather component working - but neither is offering forecast data (at least when presented in Lovelace).
I added Meteo France with a location in France and I do see forecast data for that.

I see that the Met Office sensor.py includes the following:
forecast = self._datapoint.get_forecast_for_site(self._site.id, "3hourly")

So it looks like it is trying to get it.

Posts: 1

Participants: 1

Read full topic

Reverse Proxy - Homeassistant Cast not working properly

$
0
0

@ishockwave wrote:

So I just got around setting up a reverse proxy for my Raspberry Pi running HomeAssistant and UniFi as Docker containers using Apache.
At first glance everything seemed to work fine.
But as I tried setting up Home Assistant Cast again today I noticed that all my Custom Components did not load on my Nest Hub.
I could see default Lovelace components but got the red error for anything custom.
All other devices (PCs, smartphone, tablets) work absolutely fine.

Here is my apache config file

<VirtualHost *:443>
  ServerName home.xxxx.org

  SSLProxyEngine on
  SSLCertificateFile /etc/letsencrypt/live/home.reisacher.org/fullchain.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/home.reisacher.org/privkey.pem
  Include /etc/letsencrypt/options-ssl-apache.conf

  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>

Has anyone done reverse proxy + Cast before and could point me in the right direction?

Posts: 1

Participants: 1

Read full topic

Viewing all 109599 articles
Browse latest View live


Latest Images

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