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

Media Content ID without URL (IP-address)


Conditional Card Entity show Different Value

$
0
0

@Markus99 wrote:

With the cold weather having arrived in TX, I’d like to have a conditional card show if my pool pump freeze protection is activated. I’d also like to see the underlying temperature from the pool pump triggering it. Both of these values are coming from individual sensors already created by the iAqualink integration.

I am able to display both entities in two lines, but trying to see if instead of the freeze_protection sensor showing ‘Cold’ having it show the air_temp temperature. Not a huge deal, but would prefer this on one line instead of two.

Current card:
image

Current code:

      - type: conditional
        conditions:
          - entity: binary_sensor.freeze_protection
            state_not: 'off'
        card:
          type: entities
          entities:
            - entity: binary_sensor.freeze_protection
              name: Pool Freeze Protection
              secondary_info: last-changed
            - entity: sensor.air_temp
              name: Air Temp
              icon: mdi:thermometer
              secondary_info: last-changed

What I’d like it to look like:
image

Guessing I can create a new sensor combining these values, but also guessing this new sensor might use the last-changed property of the temperature vs. the freeze_protection sensor value. Anyhow, thanks in advance!

Posts: 1

Participants: 1

Read full topic

Generic thermostat, thermostat card and away_temp

$
0
0

@Misiu wrote:

I have a generic thermostat that has very basic settings:

  - platform: generic_thermostat
    name: Bathroom
    heater: switch.floor_bathroom
    target_sensor: sensor.temp_mathroom
    hot_tolerance: 0
    away_temp: 18

I’m displaying it in lovelace using thermostat card

entity: climate.bathroom
type: thermostat

but I don’t get the ability to activate away preset.
I get this view:

If I visit Home Assistant demo website (https://demo.home-assistant.io/#/lovelace/0) I can see that there is an option to enable away mode and even other modes:

Can I display an additional icon in the thermostat card for away_mode? Should this work by default? Is this a bug, or it this unsupported by generic thermostat?
I know that I can use automation to set away as preset_mode, but why this isn’t available in the thermostat card? The demo shows that it works.
I use Home Assistant 0.100.3 if that matters.

Posts: 3

Participants: 2

Read full topic

Template Sensor troubleshooting

$
0
0

@nau wrote:

Hello

Looking for help with my gates sensor. I have PLC (Wago 750) connected to HA by Modbus TCP. I have a few inputs connected which have few states from a single sensor (Modbus_sensor): 252 (gates opened), 253 (gates closed), 254 (gates malfunction), 255 (gates in progress). Those statuses i’m able to read in sensor.gates. If I put code into http://localhost:8123/developer-tools/template, then statuses will be displayed as well correctly (Opened, closed and etc):

          {% if is_state('sensor.gates', '252') %}
            Opened
          {% elif is_state('sensor.gates', '253') %}
            Closed
          {% elif is_state('sensor.gates', '254') %}
            Malfunction
          {% elif is_state('sensor.gates', '255') %}
            Progress
          {% else %}
            failed
          {% endif %}

But if I put final code to configuration.yaml file:

sensor:
  - platform: template
    sensors:
      gates:
        value_template: >-
          {% if is_state('sensor.gates', '252') %}
            Opened
          {% elif is_state('sensor.gates', '253') %}
            Closed
          {% elif is_state('sensor.gates', '254') %}
            Malfunction
          {% elif is_state('sensor.gates', '255') %}
            Progress
          {% else %}
            failed
          {% endif %}

I’l get only “failed”

What I’m doing wrong?

Posts: 6

Participants: 2

Read full topic

Apache Proxy to HA instance while serving other sites

$
0
0

@roms wrote:

Is it possible to use apache to serve other sites and also act as a proxy for homeassistant?

I want to serve content from /srv/http to mysite.com and also have homeassistant (mysite.com:8123) proxied to be accessible at mysite.com/ha

From this thread (Apache reverse proxy with path) it seems like this is not possible, that using a proxy also requires using a subdomain (ha.mysite.com).

My attempts to implement this (using the method here: https://www.home-assistant.io/docs/ecosystem/apache/, and from the suggestions provided by @rishatik92 in this thread: Apache proxy with SSL) have gotten me either name resolution errors (using a subdomain: ha.mysite.com), or object not found errors (using a virtual directory: mysite.com/ha).

I use a dynamic dns service with a port forward on my router, and I don’t think I can get a subdomain to work within this setup, so I’d really like to be able to use a virtual directory.

Does anyone have a virtual directory setup working and can share apache conf files? Or can anyone confirm a subdomain is required?

Posts: 1

Participants: 1

Read full topic

Extract City from Address Returned by Google Maps

$
0
0

@mouthpiec wrote:

I have the following sensors which return the address among other attributes

# Travel time from Dist Location to Home
  - platform: google_travel_time
    name: Dist To Home
    api_key: abcdefghijklmnopqrstuvwxyz
    origin:  device_tracker.life360_mobile
    destination: zone.home

The above returns a string with the address in the attribute origin_addresses.
Now I am using the following sensor to extract the address, but I would like to extract only the Town/City, which is the string between commas, e.g. [‘8 Big Street, Valletta, Malta’] .
Is there a way to extract only the string Valletta instead of the whole string?

# Mobile Current Location
  - platform: template
    sensors:
      mobile_current_location:
        value_template: '{{ states.sensor.dist_to_home.attributes.origin_addresses|default(0) }}'
        friendly_name: Mobile Current Location
        icon_template: mdi:crosshairs-gps

thanks in advance

Posts: 3

Participants: 3

Read full topic

Deluge Monitoring

$
0
0

@MDLefevere wrote:

Hi There,

Can anyone help me with my configuration?. I’m trying to monitor my deluge instance on my nas but can’t get it to work.

sensor:
#Deluge
  - platform: deluge
    host: 192.168.*.*
    port: 58846
    username: username
    password: pass
    monitored_variables:
      - current_status
      - download_speed
      - upload_speed

Were do i find a username?

Posts: 4

Participants: 2

Read full topic

Advice to heating control

$
0
0

@Jiran wrote:

Hello. I would like to ask you for your advice. I have pretty old HA and I was not in this forum for quite long time. So please someone who is more focused in todays HA could help me?

I´m very interested in heating control. I have temperature sensors (Philips Hue motion sensor) in rooms and I would like to set min/max temp on every room. Based on this HA should give command to switches (sonoff) which will turn on/off floor heating in every room.

Also some of the rooms would have right to TURN ON/OFF the heater (central electric heater) based on their temperature. Not all, only selected.

Do you think I can do it with new HA automation cappabilities ot is better to use Schedy or some other automation plugin?

It would be nice to have such nice heating control as is here in this demo: https://demo.home-assistant.io/#/lovelace/0 - just to set min/max temperature for every room (or just single wanted temperature with some hysteresis), maybe programable for day time periods, and let HA do the switching.

THANK YOU.

Posts: 5

Participants: 2

Read full topic


[Fibaro Wall Plug FGWPE/F] Switch entity doesn't exist

$
0
0

@Rigobert wrote:

Hi,

Since few months my Home Assistant installation is off. Today, I decide to install a new HA instance with the last Hass.io facility. My Raspberry Pi3 gets the Zwave.Me extension.

Nice, HA involves in a nice way. I’m very enthusiast.

I have four Fibaro Wall Plug GFWPE/F-102. I want to create an automation where the action will be switch on/off the Fibaro instances. In me previous HA installation, the action part was like that :

  action:
    - service: switch.turn_on
      entity_id: switch.fibaro_system_fgwpef_wall_plug_gen5_switch

Unfortunately, in the dev tools panel and state tab, the entities linked to the Fibaro device is in the sensor domain:

 sensor.fibaro_system_fgwpe_f_wall_plug_gen5_power

I can see an entity “switch” linked to the Fibaro Wall Plug. There’s something wrong, how can I switch on / off the switch?

Thanks in advance

Posts: 1

Participants: 1

Read full topic

SecurityError for History Push

$
0
0

@GaryK wrote:

This error clears from the log following an HA restart and has only appeared occasionally, but when it shows up it logs dozens per second. Anyone seen this before, or have a guess on its origin?

2019-10-31 08:08:02 ERROR (MainThread) [frontend.js.latest.201910022] http://my.url/frontend_latest/app.37dcadb7.js:724:266382 SecurityError: Attempt to use history.pushState() more than 100 times per 30 seconds

Posts: 1

Participants: 1

Read full topic

Which Alexa did request come from?

$
0
0

@bakerbug wrote:

Is there a way for HA to know which Alexa a request originated from? I’m using the Alexa Media Player to generate responses for certain requests, but I’m having to broadcast those response all through my house. Is there a way to capture the data from the request, and if so, would it contain some sort of source ID of the Echo that sent the request?

Posts: 2

Participants: 2

Read full topic

Nest account question - should I associate with my Google account

$
0
0

@DKrics wrote:

I have my Nest Smoke/Carbon monoxide Alarms integrated with my HA.
I somehow got logged out of the Nest app on my phone, so when I re-logged in, it asked if I want to associate my account with my Google account.
If I do this, will it ruin my current HA integration / configurations?

DK

Posts: 1

Participants: 1

Read full topic

Issue with emulated_hue not being discoverable

$
0
0

@sanmane wrote:

Hi,

I’m trying to set up emulated Hue to allow control of HA though Alexa devices. I’ve set up emulated_hue in my config.yaml with the following code:

emulated_hue:
    host_ip: 192.168.1.178
    listen_port: 80
    advertise_ip: 192.168.1.178
    advertise_port: 1901
    upnp_bind_multicast: false
    expose_by_default: true

In the Hue app, Hue Alexa skill, and the regular discover devices in the Alexa app, they are all unable to find a Hue Hub on my network. I’m running on a full UniFi network and my Hassio server is running on a desktop PC hardwired through a VM running Ubuntu Server in a Docker container. Everything has static IPs. UPnP is enabled. If anyone could help point me in the right direction, that would be much appreciated.

Posts: 1

Participants: 1

Read full topic

Motion Automation, Video Repository, but not in WWW and directly linkable?

$
0
0

@mikekay wrote:

Hello all,

Current flow:

  1. Wyze camera w/ MQTT
  2. MQTT Motion Triggered Automation
  3. Automation runs shell_script and saves file
  4. Uploads to my Nextcloud server as 10-31-19_12-55-00.mp4 (’%y-%m-%d_%H-%M-%S’)
  5. File is then deleted, from .homeassistant/ffmpeg/front_ent/ directory
  6. Sends VAP notification to android phone with picture, and link to nextcloud shared folder.

Question: In step 6 how do I make it so that I am am to click and directly view the video. But! Without making the file externally available to the world. Or does everyone have all their videos and front door snapshots available for anyone to view externally?

Any ideas?

Posts: 1

Participants: 1

Read full topic

How to install the essential python libs on hass.io for ATV?

$
0
0

@cpo wrote:

Hi everyone,

perhaps i am seeing things not clearly, but how the heck am i supposed to to the “@ sudo” essential install mentioned here: https://www.home-assistant.io/integrations/apple_tv

Do i even have to do this? With the normal integrations provided by HA i can find my ATV 3, but the ATV4k is nowhere to be seen. So i thought, i do it as described above but since i’m managing my HA solely through the UI i don’t know how to do this.

Could someone be so kind and shed some light for me?
Thanks!

Posts: 1

Participants: 1

Read full topic


Best way to achieve speech interaction for issuing commands?

$
0
0

@Ricardo_Franco wrote:

Hi guys,

Have been searching for a way to implement speech interaction that will allow me to trigger actions based on questions and conditions .

So far haven’t strangely really found a lot of info on the subject and my searches led me to snips .

Here’s an example of what I would like to accomplish :

1 ) Google speaker greeting after entering Home
2) Temperature is below xx degrees so speaker says : The temperature is xx degrees, would you like to turn on the heating ?
3) I answer yes and get asked : Where would you like to turn on the heater ?
4) Hassio runs script for turning on heater according to my answer

Anyone has some suggestions for implementing a chain of actions based on speech interaction like this ?

Thanks !

Posts: 1

Participants: 1

Read full topic

MQTT to Kodi Automation stopped working

$
0
0

@lordslash wrote:

Hello, my automations that i configured in order to control my Kodi via Infrared through MQTT suddenly stopped working.
I have a Tasmotized Sonoff Basic with an InfraRed receiver connected to the GPIO port 14. The IR codes are sent via MQTT to my Mosquitto Broker running on my Hassbian. The MQTT commands are supposed to trigger an automation on my Hassbian which calls a Kodi Method.
It worked perfectly until I updated my Tasmota to the last version (6.7.1) and Home Assistant to the last version (0.101.0), then it suddenly doesn’t work anymore and I don’t understand why.
MQTT logs from Tasmota:

21:42:40 MQT: Attempting connection...
21:42:40 MQT: Connected
21:42:40 MQT: tele/RedStars/LWT = Online (retained)
21:42:40 MQT: cmnd/RedStars/POWER = 
21:42:40 MQT: tele/RedStars/INFO1 = {"Module":"Sonoff Basic","Version":"6.7.1(sonoff)","FallbackTopic":"cmnd/DVES_65CCF5_fb/","GroupTopic":"sonoffs"}
22:13:44 MQT: tele/RedStars/RESULT = {"Time":"2019-10-31T22:13:44","IrReceived":{"Protocol":"PANASONIC","Bits":48,"Data":"0x40040100ACAD"}}

Automations.yaml


- id: '1566813139052'
  alias: IR Channel Down
  trigger:
  - payload: '{"IrReceived":{"Protocol":"PANASONIC","Bits":48,"Data":"0x40040100ACAD"}}'
    platform: mqtt
    topic: tele/RedStars/RESULT
  condition: []
  action:
  - data:
      action: channeldown
      entity_id: media_player.kodi
      method: Input.ExecuteAction
    service: kodi.call_method

I tried to trigger just the Kodi method and it works perfectly (PVR Channel Down)

What else can i do to debug and solve the problem?

Posts: 4

Participants: 2

Read full topic

Error parsing AU headers in the logs

$
0
0

@ptdalen wrote:

I have recently gotten a new doorbell camera and it works well, but I have a ton of these errors in my logs

Error parsing AU headers in the logs
components/stream/worker.py (ERROR) - message first occured at 5:24 PM and shows up 4 times

Like 1000’s of messages. I looked but did not seem to be able to find this error at all in any other posts.

Posts: 1

Participants: 1

Read full topic

BLT presence monitor.sh in docker environment - "no such device"

$
0
0

@stef97 wrote:

Hi,
Is anyone able and willing to share their configuration for getting Andrew (https://github.com/andrewjfreyer/monitor) program running on the laptop that hassio docker is using ?
with embedded MQTT ?

Just to clarify further, I have a laptop running Ubuntu xenial
On it I deployed HASSIO
MQTT is running as an add-on

I have installed monitor on the laptop , configured mqtt_preferances to use the correct username / password from mqtt addon but all I get is “no such device”

/monitor.sh -c A8:2B:B9:02:E0:27
> starting monitor.sh (v. 0.2.197)...
> removing previous pairings to A8:2B:B9:02:E0:27
^C> creating connection to A8:2B:B9:02:E0:27...
> witihin 5 seconds, please set A8:2B:B9:02:E0:27 to discoverable...
> connection created to A8:2B:B9:02:E0:27
root@ha:/home/steven/monitor# ./monitor.sh -b
> starting monitor.sh (v. 0.2.197)...
> warning: variable mqtt_publisher_identity does not appear in: mqtt_preferences. using hostname: ha.
Can't get device info: No such device

Posts: 1

Participants: 1

Read full topic

Force Bluetooth Scan

$
0
0

@ianadd wrote:

The docs say that HA scans for new bluetooth devices on start-up.
I want it to find new bluetooth devices without a reboot.
Is this possible?

Posts: 4

Participants: 2

Read full topic

Viewing all 95273 articles
Browse latest View live