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

Hide Map Card when person's not home?

$
0
0

@jono wrote:

I’ve added a Map Card to show a person in my family’s location, but I’d like to hide that card when the person is home. I’m guessing it could be done with Entity Filter or Auto Entities but I’m not sure how.

Here is my code for the Map Card used in ui-lovelace.yaml

  - type: map
    aspect_ratio: 16:9
    default_zoom: 15
    entities:
      - device_tracker.persons_iphone

Just to be clear I want to hide the whole map when the person is home, not just hide the person from the map. Does anyone have any idea how to do this?

Posts: 3

Participants: 2

Read full topic


Problem with Conbee II stick on Ubuntu (VMware)

$
0
0

@RalfP wrote:

Hi everybody,

I’m a total newbee to Home assistant but I think it’s an absolutely awesome product.

I just ran into trouble with two USB sticks (ConBee II + EnOcean) on my installation.
The Conbee was found and working before I added the EnOcean stick to the VMware.
The hardware page shows both sticks

/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2121450-if00
/dev/serial/by-id/usb-EnOcean_GmbH_EnOcean_USB_300_DB_FT3P7WY9-if00-port0

but the Deconz Addin logs this
FATAL: No device /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2121450-if00 found!

Any help highly appreciated and again, newbee :slight_smile:

Thanks upfront
RalfP

Posts: 1

Participants: 1

Read full topic

Trigger adb command when Harmony Activity runs

$
0
0

@Ricardo_Franco wrote:

Hey guys ,

Trying to setup an automation for Harmony and my AndroidTV Box (Mibox 3) that works following way :

  1. Start an Harmony Activity
  2. Launch an App on my Android TV after that activity starts

So far I have the following code :

- alias: "Netflix Mode"
  trigger:
    platform: state
    entity_id: remote.living_room~
  condition:
    condition: template
    value_template: '{{ trigger.to_state.attributes.current_activity == "Watch Netflix" }}'
  action:
    service: androidtv.adb_command
    data:
      entity_id: media_player.mibox3_android_tv
      command: am start -n com.netflix.ninja/.MainActivity

However, I want it to work so that even if my Netflix activity is already active it will still execute the adb action .

Possible scenarios :

  • Current activity is poweroff or any other activity and it starts netflix activity
  • Current activity is already netflix activity but it will still run the action when I try to run netflix activity on harmony hub .

Just started messing around with Homeassistant / Hassio a couple of days ago so not really sure how to tackle this , what kind of aditional conditions do I need to add in order to achieve my goal ?

Edit : Just realized there is a huge delay before the netflix app is actually launched ! When I call the service directly through Hassio it launches the app instantly, but with this automation it takes a good 15 to 20seconds before netflix is opened ! Any clues ?

Thanks !

Posts: 7

Participants: 2

Read full topic

Combine 2 actions into 1

$
0
0

@poudenes wrote:

Hi All,

Im struggling with Presence. Sometimes geofence or Locative are not sending the URL to turn tracker at ‘home’ or ‘away’.
So I created a input_boolean and a binary_sensor.

Binary_sensor look to state of input_boolean.

Here is the 2 scripts. When geofence tracker state home then input_boolean get state ‘on’ same for locative tracker. Individual they turn on or off the input_boolean. So when 1 of both fails to send the URL then still I have a correct ‘Presence’
Now I want combine them into 1 action based on trigger entity_id. but tried lot of things without success:

- alias: 'System - Peter Left or Arrive GeoFency Manual'
  trigger:
  - entity_id: device_tracker.geofency_peter
    platform: state

  action:
    - service_template: >-
        {% if is_state('device_tracker.geofency_peter', 'home') %} input_boolean.turn_on
        {% else %} input_boolean.turn_off
        {% endif %}
      data:
        entity_id: input_boolean.peter_home_manual

- alias: 'System - Peter Left or Arrive Locative Manual'
  trigger:
  - entity_id: device_tracker.1717fe36_3c70_4599_963c_b70b6ee95eba
    platform: state

  action:
    - service_template: >-
        {% if is_state('device_tracker.1717fe36_3c70_4599_963c_b70b6ee95eba', 'home') %} input_boolean.turn_on
        {% else %} input_boolean.turn_off
        {% endif %}
      data:
        entity_id: input_boolean.peter_home_manual

a OR statement is not the correct one, because it will check then both trackers.

Posts: 5

Participants: 2

Read full topic

HA resources are ignored in iOS automations

$
0
0

@erad2018 wrote:

Has anyone run into this? I’m running iOS 13.2 beta 4 and for some reason automations that use any HomeKit switches/lights have stopped functioning. For example, an automation that triggers at say 8pm with a scene that has a HomeKit light and and a HA switch will only turn on the HomeKit light but ignore the HA resource. Manually running the scene will work fine but not as an automation. This was not the behavior previously.

Any thoughts on this?

Posts: 1

Participants: 1

Read full topic

Roomba e5 leds

$
0
0

@edwardhadders wrote:

Hello everyone,

At first sorry for my bad spelling :slight_smile:
i recently started with ha and i’m verry happy with this forum its helping me alot.
but after i added my roomba e5 to ha the leds on my roomba are always on, i have searched for this problem but no one seems to have this problem.
can someone help me with this problem?

Gr Edward

Posts: 1

Participants: 1

Read full topic

Somfy RTS states unknown

$
0
0

@silver323 wrote:

Well I started with the HA and added my somfy RTS blinds with the RFX. Thats working.
But why the state is always unknow. Can I change that when clicking on the up/down options?
Maybe someone can help?

Posts: 1

Participants: 1

Read full topic

Aeotec DSA22 keyfob configuration in HA

$
0
0

@chris669 wrote:

Hi, trying to configure this small Aeotec Keyfob.

image

Was able to include it in the network. Set parameter 250 to 1 to be in scene mode like I did for Minimote successfully. I’ve seen that there is a dsa22.xml file for openzwave.

Is there a way to integrate this in HA? Same way as Minimote? Does someone successfully did it? Thanks.

This is the code I tried to execute in automations:

- id: '100000010'
  alias: Minimote Button 1 Pressed
  trigger:
    platform: event
    event_type: zwave.scene_activated
    event_data:
      entity_id: zwave.zwave.aeondsa22_key_fob
      scene_id: 1
  action:
    service: cover.toggle
    entity_id: cover.fibfgrm222_chambreparents_storesud_level

Posts: 2

Participants: 2

Read full topic


Issue with Device Tracker

$
0
0

@James1 wrote:

Hi, I am new to HA, I am just getting to grips with how it works.

The first thing I have tried to do is to setup Device tracking, I have one of the approved routers (a Technicolor) which HA says should be setup as a Thomson.

I have the following in my configuration.yaml file

device_tracker:
  - platform: thomson
    host: 192.168.1.1
    username: admin
    password: Password

The issue is that HA is not automatically creating the known_devices.yaml file. Is there a way to see if HA is talking to the router?

Regards
James

Posts: 1

Participants: 1

Read full topic

Swedish Chracters in name or TTS

$
0
0

@flyerboy737 wrote:

Hi
Having a bit of a problem using swedish letters “ÅÄÖ” in names and the most pressing problem is to get home assistant to accept it in TTS. I like my Google Home say “Välkommen Hem” but it refuses, It works fine with English, but using the swedish letters results in error code:
‘utf-8’ codec can’t decode byte 0xe4 in position 7482: invalid continuation byte
I tried to find a salution but no luck. Any of you fine people that can help me? ot at least point me in the right direction.

Many Thanx

Posts: 1

Participants: 1

Read full topic

Are there pre-made (or shared) system templates that I can download to experiment with?

$
0
0

@ghurty wrote:

I am just starting to fool around with Home Assistant. I do have experience with home automation in general as I have played with CQC for a few years.

I find it easier for me to learn how to program things by starting with something made already and spend time playing with the coding, etc…

With Home Assistant, is there a way for me to download someone’s premade “system” with multiple tabs, etc… I understand it wont work with my house straight off the bat as the devices will be different, but that I can use as my basis?

Thank you

Posts: 3

Participants: 2

Read full topic

Automation for Climate Thermostat

$
0
0

@grangemd wrote:

I had an automation that worked however now that the hvac_mode is used it seems to be broken.

I had a condition statement that was a template and is as follows:

- condition: template
       # value_template: "{{ is_state_attr('climate.thermostat', 'hvac_mode', 'heat') }}"

This seems to always be false now and can’t figure out why. Any help would be awesome

Posts: 4

Participants: 2

Read full topic

First Automation Help with Sun

$
0
0

@ChicagoMark wrote:

Just trying to get the porch light to turn on when the sun sets. Here is the error that I get in the log:

Error while executing automation automation.porchonatdusk. Invalid data for call_service at pos 1: extra keys not allowed @ data[‘entry_id’]

8:26 PM helpers/script.py (ERROR) - message first occured at 5:56 PM and shows up 4 times

Thanks in advanced,
Mark

- id: '1572126024991'
  alias: PorchOnAtDusk
  description: ''
  trigger:
  - event: sunset
    platform: sun
  condition: []
  action:
    service: light.turn_on
    entry_id: light.hue_white_light_1

Posts: 2

Participants: 2

Read full topic

How do I put information from a sensor into the UI?

$
0
0

@ghurty wrote:

I added integration to my configuration.yaml file, and it loaded, the configuration says it has lots of sensors. But how do I get individual sensors to display on my interface? I copy-pasted what was listed on the bottom of the integration page, and then I created a new sensor card. For the entity how do I tell it what info I want to put over there?

Thank you

Posts: 10

Participants: 2

Read full topic

Lutron Radio RA2 lights status are not being reflected in the cards

$
0
0

@ghurty wrote:

Hi,
So I have Radio RA2 lights. As a test, I created two cards. One is a Glance card the other a regular one for the lights. A few issues I noticed:

If I adjust the brightness using that glance card, it does not reflect by the other card
If I adjust the light manually, it does not reflect by either card
The glance card says the light is off, even if I move the slider and the light turns on.

Any suggestions?

Thank you

Posts: 1

Participants: 1

Read full topic


How do I skip a light in a script if it's already off?

$
0
0

@jmiheve wrote:

My google-fu has failed me, so I’m hoping someone here can point me in the right direction.

I have a script for bedtime (“sunset”) that slowly dims the lights before turning them off. I also have an input_boolean that controls a “reading mode” setting for my lights (toggling between an ‘on’ and ‘off’ script to change the lights). Right now I have the sunset script set up to turn reading mode off, but if it’s not already on then that flashes one of the lights that’s only on as part of the reading mode as it resets the brightness. Is there a way to make my sunset script skip turning off reading mode if it’s not already on? So far, I have:

'1560502398295':
  alias: Sunset
  sequence:
  - data:
      entity_id: input_boolean.reading_mode
    service_template: >
      {% if is_state('input_boolean.reading_mode', 'on') %}
        input_boolean.turn_off
      {% else %}{% endif %}
  - data:
      entity_id: [continues on to dimming the lights]

Unfortunately, with this it only works when reading mode is on. Otherwise, it seems to stop when the ‘if’ condition returns false. Is there a way to tell it to continue if the state is ‘off’? I can’t find anything in the documentation to figure this out.

Posts: 7

Participants: 3

Read full topic

Planning towards a last, final build...what to run on?

$
0
0

@ltoolio wrote:

Hi,
Long time Home Assistant user. Originally via Docker on Unraid, then Hassio on a couple of RPis (both of which got corrupted SD Cards) and currently running in a Docker on a dedicated laptop with Ubuntu 16.04.

I have a bit of everything in my current config - ZWave, Hue, Xiaomi, IP Cams, MQTT, ESP8266, and a bunch of integrations.

I want to get to a point of having things as clean as possible…get rid of as much cloud dependency as possible, simplify my integrations, and make it so that if something breaks - it’s easy to get back up and running.

I’ll have a i5 NUC coming available soon, have ample RPis and a rock-solid Unraid environment to choose from. I’m leaning towards the NUC for purposes of isolation, with the RPis being for some of the ancillary functions (PiHole, MotionEyeOS, etc), but I have a feeling doing something virtualized on the Unraid might be the best for the long term.

Anyone have personal experience on this they’d be willing to share? In some ways, I feel paralyzed by all the potential options, along with their respective pros & cons, that lie in front of me.

Thanks much.

Posts: 3

Participants: 3

Read full topic

How to control multiple Thermostats via MQTT - but with one thermostat card?

$
0
0

@jascdk wrote:

Hi fellas :slight_smile:

I have a MQTT controlled floor heating system in the whole house. Each room is controlled by a sensor, that reports back to the unit, which reports to the MQTT broker.

The code for example one room looks like this:

climate:
  - platform: mqtt
    name: Værksted
    modes:
      - 'off'
      - 'heat'
    current_temperature_topic: 'heat/floorB4E62D292F41/0/current'
    temperature_command_topic: 'heat/floorB4E62D292F41/0/target_set'
    temperature_state_topic: 'heat/floorB4E62D292F41/0/target'
    availability_topic: 'heat/floorB4E62D292F41/online'
    payload_available: 'True'
    payload_not_available: 'False'
    mode_state_topic: 'heat/floorB4E62D292F41/0/output'
    mode_state_template: >-
      {{ 'heat' if value == 'on' else 'off' }}
    qos: 0

I have multiple of these entities, but is there a way to control all with just one thermostat card or how do I do it best?

Best regards

Jacob

Posts: 1

Participants: 1

Read full topic

Discord Direct Messages

$
0
0

@jamgood96 wrote:

Hello all! First off, HA is amazing so far!

My question is around the Discord notification component. I have it all setup and working fine, posting to a #general in my server. What I’d really like is to the bot just DM me directly instead of posting in the channel ant [@] mentioning me so I get notified. I’ve tried all sorts of different channel IDs that I thought would work, including the channel ID for a DM between me and the bot, but no go. Anyone know if this is or isn’t possible, or have any suggestions on what else to try?

Thanks!

Posts: 1

Participants: 1

Read full topic

Monitoring 2 Pi-Hole Servers in 0.99+

$
0
0

@obrien.craig wrote:

HI All

I have upgraded from 0.98.5 to 100.3 and as part of that there is a breaking change where the pi_hole monitor moves from been a sensor to its own component.
I have been using 2 Pi-Holes as primary and secondary DNS and this worked quiet well
Below is my old sensor config

sensor:
 - platform: pi_hole
   host: 192.168.1.20
   monitored_conditions:
      - xxx
 - platform: pi_hole
   host: localhost:4865
   monitored_conditions:
    - xxx

Anyway as I migrated up to 0.100 i adjusted my settings to the new config.

pi_hole:
  host: 'localhost:4865'

I was able to get this working however whenever I add the second server to monitor like below:

pi_hole:
  host: 'localhost:4865'
  host: 192.168.1.20

It doesn’t like it.
So my question is, Is it possible to monitor more than one pi-hole with the new component.

As I said, I have been using two pi-hole sensors for quiet a while and have not had any issues.
Cheers

Posts: 1

Participants: 1

Read full topic

Viewing all 95312 articles
Browse latest View live


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