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

LG WebOS TV not playing Media

$
0
0

Hi Community,

I am very new to Home Assistant platform, I am hoping if someone can please help me out.

All i am trying to do is to get my LG WebOS TV to play local media, I am able to control via Home Assistant in every other way, its fully paird and I can turn it off/on, control volume and change source etc but I can’t get it to play local or any media via automation.

I am trying it via “Service Call” using “Play media” service, I can play media on Chromecast but not on LG TV.

On’y difference I can see is that when I select Chromecast its under “devices” but LG TV is under “entities”

Running latest version of HA OS. trying below script

service: media_player.play_media
data:
media_content_type: video
media_content_id: ‘media-source://media_source/local/bluey.mp4’
target:
entity_id: media_player.living_room_tv

1 post - 1 participant

Read full topic


Dual Thermostat Card issue

$
0
0

Hey there I am new to this so if this isnt the right place I am sorry, but I currently have a card setup to use my phillips hue temp sensor and tells my smart plug to turn my window ac on or off, but now I wanna do a dual card so I can have a smart plug connected to a heater as well for cold days.

This is what I have so far
cards:

  • type: custom:dual-thermostat
    name: Downstairs
    entities:
    • entity: climate.air_conditioner
      type: cool
    • entity: climate.downstairs_heat
      type: heat
      fan_control: true
      min_slider: 60
      max_slider: 80

It says No card type found

1 post - 1 participant

Read full topic

Card idea for IR Remote Color

$
0
0

Hi all,

I am using a Broadlink IR blaster to control the LED colours of my aquarium, PC etc.

Instead of having a list of entities for each colour like on the picture below I wonder if there is a card or something already existing to link to my scripts.

Worst case I will use a Picture Elements Card of a remote and place the script icons on it.

Thanks!

1 post - 1 participant

Read full topic

Can't figure out how to create an association in zwavejs

$
0
0

I’d like to create to create a group association between a remote dimmer switch and a bulb. How is this done in HA?
I’m quite new to it all, thanks.

2 posts - 2 participants

Read full topic

REST API: Empty Response

$
0
0

Hi there,

I am currently switching a relay attached to an ESP8266 via a REST Post Call:

curl --location --request POST 'http://192.168.1.71:8123/api/services/switch/turn_on' \

--header 'Authorization: Bearer xxxlongTokenxxx' \

--header 'Content-Type: text/plain' \

--data-raw '{"entity_id" : "switch.garage_links_test"}'

The POST command works flawlessly, however the response is always empty. So I actually have no idea if the ESP actually changed, if its power is off or if there are any other problems with it.

Does anybode know, why? According to the API doc

there should be a list of all state changes…

Thanks,
Wolf

1 post - 1 participant

Read full topic

Z-Wave JS Configuration Issues

$
0
0

Good Morning, I am a long time user of HA, but recently rebuilt my rig using Homeassistant OS on a PI 4 en lieu of my old hassbian build. I am running into a basic issue that I would have been able to quickly resolve on earlier versions: Getting Z-wave devices online. I used this guide:

But when I go to add the Zwave JS2 MQTT integration and paste the following url I get:

ws://a0d7b954-zwavejs2mqtt:3000

Failed to Connect

Anyone had the same issue and can share the resolution. This is a fresh install:

core-2021.4.5

I speak fluent Docker if this has been identified as a port issue with one of the underlying containers.

Any help would be greatly appreciated.

1 post - 1 participant

Read full topic

SSO with Vouch Proxy

$
0
0

Hi,
I‘m using vouch proxy for authenticating 3rd party apps. Auth provider is homeassistant. But when I try to access those apps, a has login prompt appears, regardles if there‘s already a valid logon session to has frontend itself.
Is there an option to recognize the already authenticated session to signin transparently?

1 post - 1 participant

Read full topic

iPhone Tracking no longer working

$
0
0

I recently re-created my entire HA installation from scratch as this was easier than finding and deleting the lines of redundant scripts/code. Long story short, all is good except my iPhone integration. The iPhone location never changes from Home to Away (or vice versa) anymore nor are the automations I had been using in the old install triggered when I leave/return home. However, both automations will trigger when I execute the “Reload” menu option under Configuration/Integration/Mobile App. After such “reload” the device history will show “home and/or Away”

iPhone tracking under my old iHA nstall was superior to any other platform. It was the most reliable device tracking I have ever had and really want to get it going again

I suspect I missed a step during this re-create but cant find or determine what/which. My Home/Zone seems fine. Is there anywhere else I should be looking?

1 post - 1 participant

Read full topic


Receiver not changing source

$
0
0

Hi, I’m quite new to HA and doing my (almost) first steps.

I stream audio to a Chromecast attached to the receiver. I have configured my Yamaha receiver in the config file so that I can control ist with HA. The receiver turns on when the stream is startet and turns off when the stream is being stopped.

The problem I have is that the source is not changed (in my case to HDMI4 named ChromeCast) when e.g. AV3 was configured for watching TV.

I’m quite sure the bug is sitting in front of the screen :slight_smile: but I would be happy if somebody could help me.

This is the code I used:

Yamaha Receiver

media_player:

  • platform: yamaha
    host: 192.168.192.34
    source_ignore:
    • “AUX”
    • “HDMI6”
      source_names:
      HDMI4: “ChromeCast”
      zone_ignore:
    • “Zone_2”
      zone_names:
      Main_Zone: “Wohnzimmer”

automation yamaha_receiver:
- alias: “Toggle Yamaha-receiver on off when casting to Wohnzimmer”
trigger:
- platform: state
entity_id: media_player.wohnzimmer
action:
- service_template: >
{% if is_state(‘media_player.wohnzimmer’ , ‘off’) %}
media_player.turn_off
{% else %}
media_player.turn_on
{% endif %}
entity_id: media_player.Yamaha_Receiver_Wohnzimmer
- condition: state
entity_id: media_player.wohnzimmer
state: ‘on’
- service: media_player.select_source
data:
entity_id: media_player.Yamaha_Receiver_Wohnzimmer
source: ‘ChromeCast’

1 post - 1 participant

Read full topic

Template Switch not holding State in UI

$
0
0

Hello Members,

I hope you all are doing well in this difficult time.

I am now to HA so if I ask for some common issue please let me know.

I want a switch that can run a script when it is on and when it is off. (Individual script)

I set up the switch using a template but not able to get success. I think I am missing something very silly :frowning:

configuration.yaml (Showing the part on which i am facing issue)

- platform: template
    switches:
      study_b:
        friendly_name: study b
        turn_on:
          - service: switch.turn_on
            target:
              entity_id: switch.study_b
          - service: script.bon
        turn_off:
          - service: switch.turn_off
            target:
              entity_id: switch.study_b
          - service: script.boff
        value_template: "{{ states('switch.study_b') }}"

What I am getting as result is when I turn on the switch it turns on GUI for few second and come back to off. But it only triggers the on script.

When I see on developer tools → state it wont change when we press the switch.

Looking for your help.

Thanks
Bhavik

1 post - 1 participant

Read full topic

I can't figure out this error

$
0
0

I got this error in my HA os.

Login attempt or request with invalid authentication from localhost (127.0.0.1). (Mozilla/5.0 (iPhone; CPU iPhone OS 14_4_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Home Assistant/2021.4.1 (io.robbie.HomeAssistant; build:2021.115; iOS 14.4.2) Mobile/HomeAssistant, like Safari)

What am i supposed to do?

1 post - 1 participant

Read full topic

Zigbee climate control with TRV, external temperature sensor and window sensor

$
0
0

Hi, Home Assistant community!
I’m using the ZigBee TRV connected via zigbee2mqtt TuYa TS0601_thermostat control via MQTT | zigbee2mqtt.io
And I can’t figure out how to properly configure it with the external temperature sensor
Xiaomi WSDCGQ11LM control via MQTT | zigbee2mqtt.io
and the window sensor
Xiaomi MCCGQ01LM control via MQTT | zigbee2mqtt.io

I’ve got a rough idea of what I want.
If the temperature more than 21C then close the valve
If the temperature less than 21C set heat mode
If the window is open - keep the valve closed.

But the TRV seems too smart there are a lot of modes and presets of which I’ve no idea how to use.


If anybody can share some experience configuring similar TRVs?

1 post - 1 participant

Read full topic

Is it possible to override on-off display text for the ping binary_sensor?

$
0
0

Hi Everyone,

Haven’t had much luck searching for an answer to this. Basically, I have these two ping sensors:

  - platform: ping
    host: 8.8.8.8
    name: ping_google_dns1
    scan_interval: 60

  - platform: ping
    host: 8.8.4.4
    name: ping_google_dns2
    scan_interval: 60

I have a basic entity card that looks like this:

type: entities
entities:
  - entity: binary_sensor.ping_google_dns1
  - entity: binary_sensor.ping_google_dns2

Based on the Binary Sensor Docs, the actual state of the sensor is either on or off, which ends up being displayed as Connected or Disconnected. Is is possible to override the Connected or Disconnected to something like Up or Down?

One some other cards, I’m using the multiple-entity-row plugin, and the Connected or Disconnected text is a bit too long, I’d love to be able to shorten it a bit.

Thanks!

1 post - 1 participant

Read full topic

Trigger TTS on motion and tell me how long since last (previous) motion was detected

$
0
0

Hi Guys,

I’m a total newbie. I’m trying to get the time since last motion was detected. The tricky part is… I want this to be triggered by that motion sensor.
In other words when the motion will be activated I would like to get TTS saying how long ago the previous motion was detected, something like: ‘last motion was detected 4 hours ago’.

My current code is:

- id: '16185643614'
  alias: czujka1
  description: ''
  trigger:
  - type: motion
    platform: device
    device_id: 21dfc4fdc4ff89de968023ef36dc28
    entity_id: binary_sensor.czujka1_ruch
    domain: binary_sensor
  condition: []
  action:
  - service: tts.google_translate_say
    data:
      entity_id: media_player.sypialnia_speaker
      message:  Last motion detected {{ relative_time(states.binary_sensor.czujka1_ruch.last_changed) }}  ago
  mode: single

but that automation returns ‘Last motion detected 0 seconds ago’ since the trigger… changes the last_changed to current timestamp. How can I get the time between now and previous state change?

1 post - 1 participant

Read full topic

Automation setup with Three conditions not working

$
0
0

Hi all,
I am trying to build an automation that must start when three conditions occur at the same time.
The three conditions are:
Device tracker 1: not home
Device tracker 2: not home
Sun: below_horizon
The goal is to switch on a light for my pets when we are away and the sun is below horizon

This is the code but it doesn’t work

- id: luce_test
  alias: Luce test
  trigger:
  - platform: state
    entity_id: device_tracker.mi_9t_pro, device_tracker.mi_9_pro, sun.sun
  condition:
  - condition: state
    entity_id: sun.sun
    state: 'below_horizon'
  action:
  - service: >
      {% if is_state ('device_tracker.mi_9t_pro', 'home') and is_state ('device_tracker.mi_9_pro', 'home') %}
      light.turn_on
      {% else %}
      light.turn_off
      {% endif %}
    target:
      entity_id: light.comodino

I have verified the code spaces/indentation in Visual Studio Code and is ok
Where is the error ?
Thank You for help and sorry for my bad eng

1 post - 1 participant

Read full topic


Play Scene via UI Issue

$
0
0

Maybe it’s just me but after upgrade to 2021.4.4 I noticed a strange behavior when activating a scene via Configuration > Scenes > Play Button (on the left side).

After click a play button the scene does not start. Sometimes the scene starts immediately and other times after the sixth or seventh click. But if I click on the info button (Show info about scene) then on Activate, the scene is activated immediately and reliably. I had no problems with that in previous versions.

Tested browsers: Firefox, Chrome, Edge (with cleared cache).

Someone else has a problem with that or just me?

1 post - 1 participant

Read full topic

Consumption reset?

$
0
0

Hello,
does anyone know how I can reset the total electricity consumption ?
If I reset the status as shown in the second picture, it takes over briefly, but jumps back to the original value after a few seconds.
1
2

1 post - 1 participant

Read full topic

Cannot log in to the frontend when behind a reverse proxy

$
0
0

Ok, this is a weird one. I’ve got a Pi that has been running Home Assistant in Docker (homeassistant/raspberrypi4-homeassistant:stable) for a while now and it’s always worked fine, up until this week. I had some unrelated network issues because of Pi-hole crashing and once I got that back up and running, my problems with Home Assistant somehow started.

My problem is that I can’t log in anymore, but only when using the externally available domain I have for it. When using the internal hostname and post 8123 it works just fine, so it’s really something reverse proxy related. When I try to log in using the domain name I pointed to it I get the login screen, but after entering my username and password I get a “Unable to connect to Home Assistant.” message with a retry button below it. The URL in the browser at that point is something like https://my.domain.name/lovelace?auth_callback=1&code=base64_data_here. If I look at my browser’s dev toolbar during that request I can see that there is a POST request to https://my.domain.name/auth/token that’s resulting in an error 400, Bad Request.

This is the relevant configuration I have set up in Home Assistant:

http:
  server_host: 192.168.1.203
  use_x_forwarded_for: true
  trusted_proxies:
    - 10.0.0.0/24
    - 192.168.0.0/16
    - 172.17.0.0/16
    - 127.0.0.1
  base_url: https://my.domain.name

Up until the point the issue started I was only using the base_url part, I added the rest in to try and resolve the issue, without any luck sadly.

Just in case it’s relevant (though I don’t think it is), I’m also using emulated_hue so my Logitech Harmony can control my non-Hue lamps:

emulated_hue:
  listen_port: 80
  advertise_ip: 192.168.1.203

Relevant netstat output:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 192.168.1.203:80        0.0.0.0:*               LISTEN      -
tcp        0      0 192.168.1.203:8123      0.0.0.0:*               LISTEN      -

Just to reiterate, nothing seems to be wrong with Home Assistant itself. All my automations are working, all relevant ports are open and even the web UI is working, just not externally. Can any of you see something that I’m missing here?

1 post - 1 participant

Read full topic

Has anyone made a card that has a menu for views within a dashboard?

$
0
0

I have 9 views and am tired of having to scroll left and right on the view menu on my mobile phone and I just realized that instead of having to swipe left or right on the view menu to get to the view I want to I should have a card that pops up with a list of views that aren’t in the view I am currently in. I am not entirely sure how it should look and so on so I was hoping I can see if anyone else has done something similar that I can copy. Has anyone done anything like that?

1 post - 1 participant

Read full topic

Restarting Home Assistant Host Causes Some Zigbee Devices to go Offline

$
0
0

Whenever I restart my Home Assistant host via “Supervisor” —> “System” → “Host” —> “Shutdown Host” (or “Reboot Host”) some of my Zigbee devices stay offline until I remove the and re-insert batteries from each of them. Some devices are the exact same model and one will be offline while another is online.

I’m using the ZHA integration with the husbzb-1 stick and when I do shut down the host I’ve tried powering off the PI completely so that the stick itself powers off and back on. No luck and same results. Is this expected behavior?

Most of these devices are SmartThings branded (CentraLite) motion and open/close sensors of various models (3326-L, 3325-S, etc.).

1 post - 1 participant

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>