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

Connect IP Camera to HA thought itd be easy but issues

$
0
0

Hello All,
I am a new Home Assistant User. I have a few cameras around my house and I would love to set them up in HA and add some features to them once I get them streaming and working. I currently have them working with ISpy and I have the IP and RTSP stream. I am able to view them on VLC and ISpy.
These are boavision ip cameras I also contacted them thinking I may be using the wrong address for home assistant but I tried all that they gave me so maybe its my config. I’m not to sure…
When I view the stream on VLC the username/password box pops up and I have to enter it for the stream to start. I was thinking maybe that’s my issue that HA is not using my user/pass in the config. Well anyways…
My rtsp addresses I can use according to boa is:
rtsp://10.0.0.24:554/11 or rtsp://10.0.0.24:554/12
In VLC I got it working with:
rtsp://10.0.0.24:554/1/h264major

Here is my config in HA.
Ive tried authentication basic and digest.

stream:

camera:
  - platform: generic
    name: "Backyard"
    still_image_url: none #"http://username:password@10.0.0.24/tmpfs/auto.jpg"
    stream_source: "rtsp://10.0.0.24:554/1/h264major" #"rtsp://10.0.0.24:554/12"
    username: "username"
    password: "password"
    verify_ssl: false
    authentication: basic

1 post - 1 participant

Read full topic


Temperature conversion from a 3 digit to 2 digit

$
0
0

Hello,

I have been using home assistant to monitor my home lab and a few other things. I am reading the temps from my pdu and it returns the temp as a 3 digit value. The value matches in developer tools.

This of course shows up as a ~470 F temp.

my sensor config. I tried a few things and it just caused the sensor to not show up anymore.

 - platform: snmp
    name: PDU temp
    host: 192.168.254.3
    baseoid: 1.3.6.1.4.1.1718.3.2.5.1.6.2.1
    accept_errors: true
    #unit_of_measurement: 'C'
    #value_template: '{{ value * 0.10 }}'
    unit_of_measurement: '°C'`

your help is appreciated.

3 posts - 2 participants

Read full topic

Split file config show friendly name of sensor that triggers

$
0
0

Im new to HA but trying to set it up in a proper way.
I have split my config in multiple file and folders to keep the configuration.yaml small.
SETUP:
I have 2 automation files: 1 to set the home alarm panel to triggered if one of the door sensors is opened and 1 for a notification to send an update to my mobile if the state of the panel turns to “triggered”
Works like a charm.

Now i try to push the actual door sensor’s name that triggered the home alarm panel to turn to triggered to the notification but of course that does not work as the panel caused the trigger for the notification.

Is there anyway to do this?

See the yams below:
notification_alarm.yaml

  • alias: Manual Send Notification
    description: ‘’
    trigger:
    • platform: state
      entity_id: alarm_control_panel.home_alarm
      to: triggered
      condition: []
      action:
    • service: notify.mobile_app_my_mobile
      data_template:
      message: ‘{{ trigger.to_state.attributes.friendly_name }}’
      mode: single

sound_alarm.yaml

  • alias: Manual Trigger alarm while armed away
    trigger:
    • platform: state
      entity_id:
      - binary_sensor.bijkeuken_door_sensor_aqara_on_off
      - binary_sensor.voordeur_door_sensor_aqara_on_off
      to: ‘on’
      condition:
    • condition: state
      entity_id: alarm_control_panel.home_alarm
      state: armed_away
      action:
    • service: alarm_control_panel.alarm_trigger
      data: {}
      target:
      entity_id: alarm_control_panel.home_alarm

Any help is appreciated.

1 post - 1 participant

Read full topic

Energy : Incorrect GAS usage value

$
0
0

For the 25th of Dec my gas usage was 11.589,76 m³ ->according to Home assistant.It seems that home assistant took the value of the actual meter

In the daily uoload to Mindergas.nl i can see my usage was 4,31 m3
25 dec 2021 11 585,45
24 dec 2021 11 581,14

Is there a way i can manually correct this statistic value?
All previous day’s and days after the 25th are showing correct values

Thanks for the help

1 post - 1 participant

Read full topic

"NSURLErrorDomain -1004" and "500 Internal Server Error"

$
0
0

Hi!

I am new to HA, and have had now two unfortunate cases of “NSURLErrorDomain -1004” on my iOS app.
When trying to access it from a browser on my PC, I get “500 Internal Server Error”.

This morning, the first error in the iOS app was “NSURLErrorDomain -1001”, and after relaunch of app it was “NSURLErrorDomain -1004”

I am running HA on a RPI4. It has a permanent leased IP from my router.

I know there are other threads about the topic, but it does not seem to be any clear resolution to this issue when it happens? First time it happened I flashed the SD card again and then it worked. I can do that also this time, but I need to find the root cause of this to be able to further build on this system.

1 post - 1 participant

Read full topic

Problem config automation & script

$
0
0

Hi,
when I go to do check of home assistant configuration I obtain this errors:


ERROR:homeassistant.config:Invalid config for [script]: Service  does not match format <domain>.<name> for dictionary value @ data['sequence'][3]['choose'][0]['sequence'][1]['choose'][0]['sequence'][2]['service']. Got None. (See ?, line ?). 
ERROR:homeassistant.config:Invalid config for [automation]: Unexpected value for condition: 'None'. Expected and, device, not, numeric_state, or, state, sun, template, time, trigger, zone @ data['condition'][0]. Got None. (See ?, line ?). 
ERROR:homeassistant.config:Invalid config for [automation]: expected str for dictionary value @ data['from']. Got None

but all seems to work fine!

Anyone can say if I need to change this code or what I have to change?

1 post - 1 participant

Read full topic

HY368 / Tuya TS0601 - can't set-up clock / time properly

Utility_meter and warning for water consumption

$
0
0

Hi everyone,
I have 3 utily_meter that count water consumption (quarter-hourly, daily, monthly)

I would like to receive a warning if more than 50L of water are used within a quarter of an hour.
I should then use the quarter-hourly utility_meter, but I don’t know how to set the triggers

Has someone already done it?

1 post - 1 participant

Read full topic


Spurious Sensor appeared from nowhere - No one will believe me

$
0
0

…and I wouldn’t blame them.

However, be that as it may perhaps someone can give me a clue as to what is going on?

I have a sensor that seems to have appeared out of no where and which is always ‘unknown’.

I cannot remove it because…

image


I have for some weeks now, had many template sensors set up for my gas (supplied from Octopus Energy) which have been (and still are) working perfectly.

However, yesterday this sensor seems to have appeared from nowhere (I told you that you wouldn’t believe me!).

I have no idea where it came from.

It doesn’t exist in my config:

image

image

And I have no integration that could have created it as there isn’t one for Octopus Energy.

How am I supposed to remove it?

4 posts - 3 participants

Read full topic

Opentherm Gateway integration time-out/disconnect

$
0
0

Hello,

I’m pretty new in Home Assistant. Before I used Domoticz but I’m very pleased with HA since 1 or 2 months I’m using it now. The only problem I have since the start is my Opentherm Gateway integration. The connection is gone sometimes and then my boiler stops heating my home.

There is no specific time frame when it stops working. Sometimes it is after a couple of hours and other days it is working fine and stops working after 2-3 days. When it stops working my thermostat in HA show the correct current temperature and the correct setpoint temperature but it stops heating. Sometimes I wake up and it is 12 degrees in my living room but it should be 17 degrees at night.

First I had my Opentherm gateway with an ESP connected over wifi. This setup always worked in my Domoticz setup for a couple of years. Now I see all this disconnects so I decided to connect my Opentherm Gateway by an FTDI cable direct to my HA raspberry. It is working but now after a day it also stops working this morning. I had to reboot my HA raspberry and then my boiler starts heating again.

It looks like it has something to do with the software integration because my hardware is fine. The Opentherm Gateway was working fine with Domoticz.

In the logging I see the following errors.
Logger: pyotgw.protocol
Source: /usr/local/lib/python3.9/site-packages/pyotgw/protocol.py:567
First occurred: 09:26:10 (2 occurrences)
Last logged: 10:43:03

  • Command PR failed with SE, retrying…
  • Command PR failed with R: A=OpenTherm Gateway 5.1, retrying…

Logger: pyotgw.protocol
Source: /usr/local/lib/python3.9/site-packages/pyotgw/protocol.py:607
First occurred: 10:43:03 (1 occurrences)
Last logged: 10:43:03
Unknown message in command queue: R: A=OpenTherm Gateway 5.1

Logger: pyotgw.protocol
Source: /usr/local/lib/python3.9/site-packages/pyotgw/protocol.py:64
First occurred: 09:47:02 (4 occurrences)
Last logged: 10:43:03
Disconnected: None

1 post - 1 participant

Read full topic

Energy Consumption Current Day

$
0
0

Trying to get a card to display the current energy consumption for an appliance to show the current day only like the bar chart under the Monitor individual devices under the energy section.

I’ve read the statistics page but can’t seem to see how to limit a basic text carr, it just shows the consumption since it was added.

I’ve created a new sensor in the configuration.yaml

  - sensor:
    - name: "Fridge Consumption (CONS)"
      unit_of_measurement: "kWh"
      state: "{{ states('sensor.consumption_39') | float / 1 }}"
      state_class: total_increasing
      device_class: energy
      

I’ve seen references to using templates, but I can’t find any clear examples or guides.

Pointers are greatly appreciated.

1 post - 1 participant

Read full topic

Zigbee smart light switch as router

$
0
0

Hey guys,

I installed some zigbee smart light switches, as I thought all switches/plugs with mains will act as repeaters (given that the switch always has power) but they don’t seem to do so.

I checked the visualizer, I can’t add devices from the switch node and all devices are connected to the coordinator.

Switch: https://www.amazon.ae/Winpossee-Switch-neutral-Button-Control/dp/B0951V1895?ref_=d6k_applink_bb_dls_failed

Am I doing something wrong or these switches don’t act as repeaters.
I’m using Nortec dongle + ZHA.

Appreciate your feedback guys.

2 posts - 2 participants

Read full topic

Energy Dashboard kicks in at 6:00am

$
0
0

Hi,


I am new to HA and figure my question is configuration related.
My energy dashboard (see picture) kicks in at 6:00 am. Where is my consumption (not much production during the night :slight_smile: ) between midnight and 6:00? Anyone having an idea?
I am using Slimmelezer on a P1 port externally powered.
HA runs on RPi4, latest versions.

1 post - 1 participant

Read full topic

Power consumption of Tuya smart plug not automatically updating

$
0
0

Hi everyone,

I’m rather new to home automation and to Home Assistant in particular. I’m doing my best to get things working by reading everything I can find, but I couldn’t find an answer to this problem I’m having.

What I would like to achieve
I have a video projector in my living room, and i would like my smart plug to detect when it is on just by monitoring it’s current voltage or the amount of W it consumes. When my defined threshold is hit, I have an automation that is designed to close my shutters during the daytime.
Quite easy you’ll say! And you know what: the automation in itself works! :smile:

So what is the problem?
My smart plug is a zigbee one, working with Tuya. The power consumption is correctly reported and updated in Tuya in real time. I have the Tuya v2 integration in Home Assistant, and I enabled the power and voltage sensors for my smart plug. BUT these sensors are not updated automatically when I turn my projector on and off. In fact, they can keep showing the wrong value for hours.

The only way I found to get the values updated in Home Assistant is either:

  • By opening the Tuya app and go my smart plug page,
  • Or by restaring the Tuya integration.

Not an elegant solution for home automation :sweat_smile: !

What is my best solution to get this values updated, either on a regular basis (e.g. every xx seconds) or in real time?

Thanks for your help and sorry if this question looks kinda “newbish”, I can assure you I did a lot of research before posting here.

1 post - 1 participant

Read full topic

Is it possible to condiontionally populate a card with the new button entity based on Hue Scenes?

$
0
0

I recently discovered that Hue Scenes are imported into Home Assistant, which is excellent.
But I have many rooms, and they all have different numbers of scenes attached to them.
So I was thinking it would be nice to conditionally populate a card with those scenes into the new Button Entity.
To top it all off, set the picture for each Button to a predefined picture (that depicts the scene)

But I don’t have a clue how to do it. I know the goal, but not how to get there.

Can it be done?

1 post - 1 participant

Read full topic


Strange work of Daikin integration

$
0
0

Hi there
I’m new, but made a lot things in HA :slight_smile: For now i faced with one problem with Daikin module.
I can’t figure out how the data update from the Daikin integration works. I have two wifi modules, both collect some data. If with one, more or less visible pattern, the other lives its own life.
The first one, temperature from sensor:

2022-01-03 14:46:20 -- 25
2022-01-03 14:52:00 -- 24
2022-01-03 14:52:20 -- 25
2022-01-03 14:53:00 -- 24
2022-01-03 15:14:40 -- 24
2022-01-03 15:15:40 -- 25
2022-01-03 15:16:40 -- 24
2022-01-03 15:18:40 -- 25
2022-01-03 15:20:40 -- 24
2022-01-03 15:22:40 -- 25
2022-01-03 15:23:40 -- 24
2022-01-03 15:28:20 -- 25

The second:

2022-01-03 14:03:40 -- 2
2022-01-03 14:30:00 -- 2
2022-01-03 14:34:00 -- 2
2022-01-03 14:51:40 -- 2
2022-01-03 15:14:20 -- 2

I enabled debug level for all daikin components:

    homeassistant.core: warn
    homeassistant.helpers.script: debug
    homeassistant.components.pydaikin: debug
    homeassistant.components.daikin: debug
    homeassistant.components.climate: debug
    pydaikin: debug

And saw two strange things:

  1. Periodiacally see message:
2022-01-03 15:31:23 DEBUG (MainThread) [homeassistant.components.daikin.config_flow] Zeroconf user_input: ZeroconfServiceInfo(host='192.168.2.201', port=80, hostname='DaikinAP06603.local.', type='_dkapi._tcp.local.', name='DkApi._dkapi._tcp.local.', properties={'_raw': {'reg': b'eu', 'type': b'aircon', 'ver': b'1_2_54', 'adp_kind': b'3'}, 'reg': 'eu', 'type': 'aircon', 'ver': '1_2_54', 'adp_kind': '3'}, _warning_logged=False)
2022-01-03 15:31:23 DEBUG (MainThread) [pydaikin.discovery] Discovered ('192.168.2.201', 49156), ret=OK,type=aircon,reg=eu,dst=1,ver=1_2_54,rev=203DE8C,pow=0,err=0,location=0,name=%64%65%74%73%6b%61%79%61,icon=0,method=home only,port=30050,id=,pw=,lpw_flag=0,adp_kind=3,pv=3.20,cpv=3,cpv_minor=20,led=1,en_setzone=1,mac=D0C5D3F1165C,adp_mode=run,en_hol=0,ssid1=USR,radio1=-44,grp_name=,en_grp=0

192.168.2.201 – ip belongs to first daikin
and didnt see similar messages with the second daikin (192.168.2.16)
2. Sometimes in log appears message:
2022-01-03 15:14:38 DEBUG (MainThread) [homeassistant.components.daikin] ClientConnectionError to 192.168.2.201

Could you lead me to way how to debug/fix/understand the situation?
Ps.

Home Assistant 2021.12.7

supervisor version

1 post - 1 participant

Read full topic

Custom sensor templating

$
0
0

Good morning all!

need a hand with a custom template that i frankensteined together, any help would be much appreciated

  DLI_PPFD:
    friendly_name: 'DLI / PPFD'
    value_template: >-
      {% set PPFD = ((states('sensor.tyebd241qeiagryjzu') | float %}
      {% set DLI = ((PPFD)) * (3600 * 12) / 1,000,000) %}
    unit_of_measurement: 'DLI'

i understand DLI isnt a unit of measure where its actually something like umols/2

basic idea use one value ,sensor.tyebd241qeiagryjzu, to create a new value using the converting equation

1 post - 1 participant

Read full topic

Customzing icons

$
0
0

I am trying to change color on icons depending on state.
I have this in customize.yaml

I got this working for a sensor for text:

sensor.tesla_charger:
  friendly_name: Tesla charger
  templates:
    icon_color: >
      if (state == 'Charging') return 'blue';
      if (state == 'Connected') return 'yellow';
      if (state == 'Available') return 'green';
      return 'normal';

But when I try to do the same thing with values, it does not work:

sensor.charger_current_p1:
  friendly_name: Phase 1
  templates:
    icon_color: >
      if (state < 20 ) return 'normal';
      if (state > 25) return 'red';
      if (state > 20) return 'yellow;
      return 'black';

Any ideas?

2 posts - 2 participants

Read full topic

Binary template trigger sensor not persistent after restart

$
0
0

Hello.

I have a template binary sensor that is triggered by a webhook.

template:
  - trigger:
    - platform: webhook
      webhook_id: xxx
    binary_sensor:
      - name: "Videocall"
        state: "{{ 'provider' in trigger.json }}"
        delay_on: 0:00:05

The webhook receives a JSON and if there is a certain key in it (‘provider’), it should render true if the webhook isn’t triggered again within 5 seconds. If the JSON doesn’t contain the key it should render false. The sensor works without a problem when HA is running.
If I restart HA while the sensor is true it always renders false after restart. There is no triggering in the meantime and also in the logbook the last event is that it was turned on. Why doesn’t the sensor store it’s state at restart? Shouldn’t it just change when it is triggered?

P.s.: I’m not looking for a workaround. I know that I can achieve what I want with an input boolean and an automation. I want to understand why this isn’t working.

1 post - 1 participant

Read full topic

Waze_travel_time any way to edit an existing integration?

$
0
0

The waze_travel_time integration doesn’t appear to offer any way to edit origin or destination once the integration is created.

I have 3 autocreated travel time entities after an upgrade that I can’t change and can’t edit. The only way to change them is to delete the whole integration. This seems needlessly user unfriendy.

Am I missing something? Is there a way to edit an existing integration (where edit means change the source or dest.)

1 post - 1 participant

Read full topic

Viewing all 108914 articles
Browse latest View live


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