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

Tasmota/MQTT configuration?

$
0
0

@jimford wrote:

I’m trying to setup a Sonoff Basic relay on Home Assistant.

I’ve flashed the Sonoff with Tasmota and configured it. I’ve also installed and configured Mosquito Broker on HA, but am getting the following message on the Tasmota Console:

“14:38:36 MQT: Attempting connection…
14:38:36 MQT: Connect failed to 192.168.1.39:8123, rc -1. Retry in 10 sec”

I suspect that the Tasmota config is OK, but it’s the Mosquito config that is in error. The Mosquito log doesn’t show any attempt at connection. I’m not sure where to look next.

(I’ve got the user name and passwords setup to be the same on Tasmota and HA.)

I’m very new to HA and totally new to MQTT , and would be very grateful for any help in getting it working.
Jim

Posts: 2

Participants: 2

Read full topic


Modbus TCP sensor configuration help

$
0
0

@Dehumanizer wrote:

Hello,
I am trying to add modbus sensors from my home heating control unit but I’m failing so far, although it works from a PHP script, so the modbus itself is ok and working, I’m just lost about how to configure it in HA so that it would display (correct) data.
The modbus device does have temperature data for each room in two bytes, the final value is constructed like this: <high byte> * 256 +<low byte>/10
the php function for reading and converting values which works for me goes like this:

<?
$modbus = new ModbusMaster("<device_ip>", "TCP");

$a=$modbus->readMultipleRegisters(0, 2033, 1);
$temperature=($a[0]*256+$a[1])/10;

?>

Actually I’m reading more than 1 register, there is some more data in the real code, that’s why I’m using readMultipleRegisters, but for the sake of simplicity here, let’s say I just read one register with the temperature, this code works and $temperature contains correct temperature value.

So my question is, how to read the same value from Home Assistant and what parameters to use?

Thanks!

Posts: 1

Participants: 1

Read full topic

REST switch not showing up

$
0
0

@Rafael_Couto wrote:

Hi there,

As you might guess from this post I’m an absolute beginner with HA. I’m trying to add one Shelly 1 to Home Assistant and to do so I’m trying to set up a RESTfull switch.

The thing is that the configuration seems to be correct however the switch does not show up anywhere (entities and dev tools). I’ve already restarted HA several times.

Below is my configuration.yaml


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

# Text to speech
tts:
  - platform: google_translate

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

switch:
  - platform: rest
    name: "Shelly 1 Control"
    scan_interval: 5
    resource: http://192.168.5.151/relay/0
    body_on: 'turn=on'
    body_off: 'turn=off'
    is_on_template: '{{ value_json.ison == true }}'
    headers:
      content-type: application/x-www-form-urlencoded
    username: MY_USERNAME
    password: MY_PASSWORD

Am I doing something wrong?

Thanks in advance for any help :slight_smile:

Posts: 1

Participants: 1

Read full topic

Invalid Config after update

$
0
0

@cfuess wrote:

So now its says that the following integrations and platorms could not be set up:

  • script
  • default_config
    image

When I run Check Home ASsistant Config below is what I get.

All my scripts will no longer work as buttons in my dashboard, any help would be greatly appreciated.

Posts: 1

Participants: 1

Read full topic

Sensor - display last known value instead of 'unavailable'

$
0
0

@ros wrote:

Hi!

I have created an ultrasonic sensor which is mounted into a sewer cover and measures the amount of capacity left in the sewer tank. This sensor is based on ESPhome. This sensor gets power supply only a couple hours a day and is offline for the rest of the day. When offline, it shows up as ‘unavailable’ and displays no data on the history graph. Is there a way to make HA display the last know value instead of ‘unavailable’ (e.g. the measurement value from when the sensor has been online for the last time)?

Thank you!
Ros

Posts: 2

Participants: 2

Read full topic

Constant Admin login to Unifi

$
0
0

@billmans wrote:

I am using the latest HASS, and running the Ubiqity integration. Everything works well except every once and a while I start to get hundreds of emails that there has been a login to the unifi system. Typically I get this when I restart HASS, but for what ever reason about once every week for two it goes nuts! Anyone else seen this, know how to stop it?

Thanks
Bill

Posts: 1

Participants: 1

Read full topic

Getting false gradient on trend sensor

$
0
0

@argykaraz wrote:

I have 2 trend sensors to know whether the water in the water heater is getting hot or cold.
Here is my config for it:

- platform: trend
  sensors:
    water_temp_falling:
      entity_id: sensor.water_temperature
      sample_duration: 7200
      min_gradient: -0.001
      device_class: cold

    water_temp_rising:
      entity_id: sensor.water_temperature
      sample_duration: 7200
      min_gradient: 0.0030
      device_class: heat

I just noticed that pretty often the gradient is showing an invalid number.

Where normally I should get gradients like this:

Instead sometimes, I am getting gradients like this:

This is resulting in the binary sensor showing as “off” and automations I have created based on it, dont work. What is going on here?

Posts: 1

Participants: 1

Read full topic

ZWave Stick with Synology Docker

$
0
0

@jhein wrote:

Hi,

I can’t get my Z-Wave Stick to run (again) on the latest DSM and HA:

jhein@xxx:~$ ls -la /dev/ttyACM0 
crw------- 1 root root 166, 0 May 28 19:15 /dev/ttyACM0

Command to create the container (multiple lines for readability):

sudo docker run --name="13-home-assistant-zwave" 
  -v /volume1/docker/home-assistant/slave-zwave:/config 
  --device /dev/ttyACM0 -e TZ=Europe/Berlin --net=host 
  --privileged -itd homeassistant/home-assistant:stable`

ZWave Config:

zwave:
  usb_path: /dev/ttyACM0
  polling_interval: 60000

Any help is highly appreciated.

Thank you,
Julian

Posts: 1

Participants: 1

Read full topic


Update hassOS 3.13 to 4.7 Release-4 build 7 (Stable)

$
0
0

@Denny_d wrote:

Hi everyone today I looked at the system panel and I realized that an update for HassOS hadn’t been out for a long time, so I went to see the site with the releases and I realized that for my RPI4 there is currently a 4.7 Release -4 build 7 (Stable) but unfortunately I don’t see the usual update from the system tab … how can I update? Has anyone else had this problem?

Posts: 1

Participants: 1

Read full topic

Various components not loading in the UI when connecting from outside home network

$
0
0

@Aephir wrote:

I have noticed certain parts of Home Assistant no longer working, but only when accessing externally. I’ve noticed this after upgrading hardware, and (at the same time) upgrading Home Assistant from 0.109.X to 0.110.X.

I am running Ubuntu Server LTS 20.04, with Home Assistant in Docker. I am also running the linuxserver DuckDNS and letsencrypt/nginx containers.

The setup is just copied to the new hardware, and the UI loads. However, I’ve noticed that a few things are only present when accessing the HASS UI via the local IP. What I’ve noticed (until now, there may be more things) is:

  • History/Recorder
  • Home assistant log (developer-tools/logs)
  • Integrations page (config/integrations, the HACS->integrations seems to work)

And everything else seems to work. I can control stuff, I can get the state of sensors (their corresponding custom:mini-graph-cards are blank, and when trying to load history, it stalls at Loading state history... ).

I’ve tested with several different browsers, as well as the Android app.

Posts: 1

Participants: 1

Read full topic

Simple open door - turn on light not working

$
0
0

@pirogj wrote:

I’ve run into this now with a few different items, either I’m not using the right verbiage or past/present tense. Not super user friendly with guessing what it has to be…

This is a very basic automation, open the door > turn light on. Can someone tell me what I’m doing wrong?

- id: '1590694301917'
  alias: Toilet Lights - Day
  description: ''
  trigger:
  - entity_id: binary_sensor.doorsensor_toilet_contact
    platform: state
    to: 'Opened'
  condition:
  - after: sunrise
    before: sunset
    condition: sun
  action:
  - scene: scene.bathroom_lights_on_day

Posts: 2

Participants: 2

Read full topic

Cloudflare IP updater always stops itself, how to fix?

Remove unit from json formatted value?

$
0
0

@Blueman2 wrote:

I have a z-wave device that has an attribute value which includes unit of measure embedded in the value. I use the following to extract the value into an entity:

sensor:
  - platform: template
    sensors:
       pool_solar_temp:
         friendly_name: "Solar Temperature" 
         value_template: '{{ states.sensor.zw_044_21_solar_temperature.attributes.temperature }}'
         unit_of_measurement: '°F'

I get a result of 109°f°F

I know I can just remove my °F and get 109°f, but I want to have all my temperatures in °F format.

I want to strip the “°f” from the value. How do I do that?

Posts: 2

Participants: 2

Read full topic

How to view directory of images in lovelace UI?

$
0
0

@droidblast wrote:

Running hassio on a PI which has ffmpeg streams from a external DVR/CCTV. Added Sighthound which adds timestamped images with face recon into config/www/sighthound_images/. Have nofity alerting when a new file is created, all of the above works well.

Q. How can I view the contents of the folder config/www/sighthound_images/ or the last 4 images which are time stamped as followed sighthound_front_cctv_2020-05-22_17:52:17.jpg

Posts: 1

Participants: 1

Read full topic

Ffmpeg camera not working

$
0
0

@RWatterson wrote:

I have 2 Yi home cameras with the hack updates. A week or so one stopped showing the video feed in HA. I have reordered them and tweaked the config every way I can think of, it does not solve the problem. It seems to be a problem between stream and ffmpeg where the “patio” camera video is throwing log errors. The “garage” camera works fine. Even if I comment out the garage camera the patio camera video can not be viewed. The wird thing is they both work as ffmpeg binary sensors

Configuration.yaml info:

stream:

ffmpeg:
  ffmpeg_bin: /usr/bin/ffmpeg

camera:
  - platform: ffmpeg
    name: Patio
    input: 'rtsp://uname:pword@192.168.x.80:554/ch0_0.h264'
    extra_arguments: -pred 1 -q:v 2
  - platform: ffmpeg
    name: Garage
    input: 'rtsp://uname:pword@192.168.x.23:554/ch0_0.h264'
    extra_arguments: -pred 1 -q:v 2

Error Log info:
Error demuxing stream: No dts in packet

5:26:06 PM – Stream (ERROR)
Uncaught exception

5:25:58 PM – components/stream/worker.py (ERROR)
'FFmpeg isn’t running!

5:25:49 PM – components/ffmpeg/init.py (WARNING)

Posts: 1

Participants: 1

Read full topic


Ring doorbell "Remote end closed connection without response"

$
0
0

@henry8866 wrote:

I am getting many of “Remote end closed connection without response” in ring components recently. I’m on HA 0.110.2

1780:2020-05-28 16:52:45 WARNING (MainThread) [homeassistant.components.ring] Error fetching Ring device data: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

Posts: 2

Participants: 2

Read full topic

Help with condition template

$
0
0

@denis.besir wrote:

Hi,

I need some help with this condition template. I need it to return when { task_old.task_title == ‘task’}.

- id: '5166189215216854'      
  alias: DALS vacuum bedroom done
  description: ''
  trigger:
  - entity_id: sensor.gtasks_dagpass
    platform: state
  condition:
    condition: template
    value_template: >
        {% for task_old in trigger.from_state.attributes['tasks'] %}
          {% if task_old not in trigger.to_state.attributes['tasks'] %}
            { task_old.task_title == 'task'}
          {% endif %}
        {% endfor %}
  action:
  - service: notify.pushbullet
    data_template:
      message: >
        {% for task_old in trigger.from_state.attributes['tasks'] %}
          {% if task_old not in trigger.to_state.attributes['tasks'] %}
            {{ task_old.task_title }}
          {% endif %}
        {% endfor %}
      title: Hass.io

Posts: 1

Participants: 1

Read full topic

How to remove a node

$
0
0

@ZombiEd wrote:

Any idea how to remove a node in the Z-Wave integration? There doesn’t seem to have that option.zwave

I need to remove all my devices and start over as I can’t find a way to get what security key was generated automatically by the integration.

Posts: 1

Participants: 1

Read full topic

Add heater to Z-Wave TRV

$
0
0

@typhoon2099 wrote:

Is it possible to control a boiler switch using a TRV in Home Assistant? I’ve tried adding one through customisations but the boiler switch is never turned on/off. I have 5 Danfoss TRVs on radiators in my house that control the radiators, butthey don’t turn the boiler on, so I only get heat into rooms when they are too cold and my hallway is too cold (the hallway is controlled by a Horstmann HRT4-ZW, which is linked to the ASR-ZW on the boiler).

I’d like any room to be able to call for heat but so far the only thing I can come up with involves adding generic thermostats to shadow the TRVs and then add automations to sync target temperatures, which is super messy and unmaintainable.

Posts: 1

Participants: 1

Read full topic

Home Assistant on FreeNAS-11.3-U3.1 default_config not working

$
0
0

@pinecone wrote:

I installed Home Assistant as a plugin recently and I love what I am able to do with it. I wanted to link it to the mobile app and I had one issue with doing so. default_config was showing up as invalid in the GUI. I did some diagnostics in the shell, but when I ran a check_config, it yielded:

Failed config
General Errors:
    - Component error: mobile_app - /srv/homeassistant/lib/python3.7/sitepackages/cryptography/hazmat/bindings/_openssl.abi3.so: Undefined symbol "OPENSSL_no_config"

Successful config (partial)

I am running the newest version of everything, so I have no idea what I can do at this point to resolve this issue. Any and all advice would be greatly appreciated! Thanks!

Posts: 2

Participants: 2

Read full topic

Viewing all 106179 articles
Browse latest View live