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

Lights off when I leave home

$
0
0

@GerritJanMondria wrote:

Dear forum members,

First, what a great system is home assistant.

Now my question, I want the lights to go out when I leave the house, now I have googled and tried different options, unfortunately it does not work. I don’t get an error message and the automation is neat on the homepage when I go to / states.

I will put the code below:

automation 19:
  alias: Turn All Lights off When We Leave
  trigger:
    entity_id: device_tracker.gerritjan
    from: home
    platform: state
    to: away
  action:
     entity_id: group.switches
     service: switch.turn_off

Posts: 25

Participants: 7

Read full topic


Turn Hue RGB led strip on for 10 minutes and fade thereafter

$
0
0

@HansHassio wrote:

A Philips Hue RGB ledstrip works with Home Assistant and the code below turns it on with RGB color 0,0,255. I’ve tried to build an automation without success so far. These are my intentions:

1) switch on the strip and stays on (0,0,255) for 10 minutes
2) after above 10 minutes fade out from 0,0,255 to 0,0,0 (30 minutes)

Would be great if someone is willing to help me to solve this!

- alias: Switch on and fade out
  trigger:
  - platform: state
    entity_id: binary_sensor.remote
    to: 'on'
  action:
    service: light.turn_on
    data:
      entity_id: light.room_2
      rgb_color: [0,0,255]

Posts: 5

Participants: 2

Read full topic

SQL-sensor not updating

$
0
0

@Tibertsmits wrote:

I’m trying to set up a sql sensor that comes from the database phpmyadmin. In phpmyadmin these are my sensors that are logged:

For displaying the humidity I have written the following SQL code:

SELECT * FROM states WHERE entity_id = 'sensor.humidity_2' ORDER BY last_changed DESC LIMIT 1

In phpmyadmin this code works fine and I get the latest updated humidity. In my configuration.yaml file, I placed the following to display the SQL sensor:

When I now request the value of the sensor, I get the following:

image

This all seems to be good, but when I request the value in phpmyadmin, I get a different value:

Also the sql sensor is not updated anymore and remains 76, even when I restart the hass.

What am I doing wrong here? Or how could I get it working?

Posts: 2

Participants: 1

Read full topic

Setting up Dark sky

$
0
0

@denver wrote:

Im a little confused on setting up dark sky:

I have the weather platform for dark sky set up and working, I now need dark sky sensors set up.

When setting these up it seems they both require the api_key. Would this result in me polling twice i.e. doubling my requests each day?

Posts: 4

Participants: 2

Read full topic

Identifying unknown discovered device

$
0
0

@Phade wrote:

Hey Everyone!

I’m starting out on my Home Assistant journey this weekend and finding it exciting and fascinating! I’ve been able to install and discover most of my devices. However, HA has discovered “HomeKit Accessory: Home”, but I have no idea what it is.

Is there a way to get more HA details about this discovered device, such as its IP address or MAC address?

Thanks in advance for your help!

Phade.

Posts: 1

Participants: 1

Read full topic

Dynamic, personal bedtime/wakeup sensors and alarm clock/bedtime notification, ideas/tips needed

$
0
0

@forschi wrote:

I need some help to start off my latest idea in my quest for a automated (not remote controlled) house :slight_smile:
Right now I’m unable to wrap my head around how I will do this exactly, so I’m thinking that maybe by sharing my idea and writing it down I will either figure it out myself and can share the result.
Or that this community has some great tips or already working solutions to help me on the way

Goal:
The idea is that I will never need to worry about setting an alarm clock and to have events trigger when I “should be awake, but is asleep” or “should be asleep, but is awake”.

I have working input_booleans and sensors to set our “states” currently that I will be comparing to this new sensor that will be the suggested “awake/asleep”-sensor.

Existing and working:

  • input_number.person_x_sleep_wanted
    • Preset amout of hours I want to sleep
  • input_number.person_x_morning_routine
    • time to add to sleep hours before a calendar event or office hours start
  • input_boolean.person_x_awake
    • controlled by google routine, bedside button - this will tell if I’m actually awake or not, automation takes care of it if I forget it (if it is night and no movements in the house, no chromecast playing, computer is idle etc it will switch this one to off )

Need to create:

  • binary_sensor.person_x_awake_recommended
    • Template from below sensors: if after bedtime and before wakeup -> asleep, else -> awake
  • sensor.person_x_next_bedtime (template sensor)
    • timestamp of next recommended bedtime, if still awake negative values until next wakeup time is within 1 hour (for example)
    • first to occur from:
      • calendar event start time - morning routines - sleep wanted
      • if workday: office hour start time - morning_routine - sleep wanted
      • latest time to wake up if no event/workday - sleep wanted
  • sensor.person_x_next_wakeup (template sensor)
    • negative values if person is asleep and time for next bedtime has not passed
    • first to occur from:
      • first calendar event+morning routine
      • if workday: office hour start time + morning_routine
      • time when input_boolean.person_x_awake was switched off + sleep_wanted
      • latest time to wake up if no events (preset time)

Posts: 1

Participants: 1

Read full topic

Help to filter entities in data_template

$
0
0

@Oligarch wrote:

I get two variables (room and appliance) from DialogFlow. They are specified in template only for testing. Template works fine, but I wonder if there is any other way of filtering. I don’t like the output of {{entities}} is string, not an array. But I do not know how to do otherwise.

data_template:
  entity_id: >
    {% set room = ['kitchen','bedroom'] %}
    {% set appliance = 'livolo' %}
    {% set type = { 'livolo':'switch', 'neoclimaartvogue': 'climate', 'broadlinksp3sboiler':'switch' } %}
    {% set entities = type[appliance]+'.'+appliance+'_' +room | join(type[appliance]+'.'+appliance+'_')  %}
    {{ states | selectattr('entity_id', 'in', entities)
              | map(attribute='entity_id')
              | join(', ') }}

Posts: 1

Participants: 1

Read full topic

Home assistant Life360 error

$
0
0

@easwaran83 wrote:

Platform error sensor.life360 - No module named 'homeassistant.components.life360.sensor'

My Life360 works fine but whenever I do config check, my home assistant throws this error.
Please help to resolve it.
Thanks in advance.

Posts: 1

Participants: 1

Read full topic


Configuration with api

$
0
0

@Rokayah wrote:

Hi everyone, I am pretty new to home assistant.
Hopefully I was able to add integrations to home assistants and control them by APIs.
Now what i am trying to do is to access core configuration with api instead of using the web interface.
Any idea how can i do this ?

Posts: 1

Participants: 1

Read full topic

Lovelace animated weather card issue

$
0
0

@vic wrote:

Hello,

I am having issues with the Lovelace animated weather card.

If I use the standard configuration with “show current = true” the plugin is not showing anything.
If I switch “show current” to “false” then I see the details and the forecast, but indeed not the current weather.
I have installed through HACS and the icons are all there.
What can the issue be? Thanks.

Posts: 1

Participants: 1

Read full topic

Monitoring Dell IDRAC6 in Home Assistant?

$
0
0

@Dayve67 wrote:

Has anyone been able to monitor there dell r710 with Home Assistant? Just setting up my R710 server and would like to monitor temps and any critical notifications from the IDRAC6 interface.

Posts: 2

Participants: 2

Read full topic

Using value_template and regex_search on mqtt 'text' payload

$
0
0

@mykp wrote:

Hi
I am a hassio beginner and have managed to solve most of my basic system challenges with google and the generous advice given by this amazing community (thanks). I am struggling with a mqtt server message coming from an alarm panel where the payload is a text field of variable length: e.g. one or more Zones (ZXX) in every message e.g.

Topic: alarm/problem_report
Payload: Living room (Z15) low batt,
Fire (Z23) low batt,
Upstairs (Z24) low batt

(Each payload line is separated with \r\n).

I am attempting to either write automations triggered by each zone detected (these messages are always low battery), or create binary (battery) sensors to highlight the low battery status for each zone. I only need to find the zone code e.g. Z23.

I have tried many permutations of regex etc. but just can’t seem to get a trigger e.g. (created with the automation tool but copied from automations.yaml).

- id: AlarmPanelTest
  alias: Alarm Panel Test
  trigger:
  - platform: mqtt
    topic: alarm/problem_report
  condition:
  - condition: template
    value_template: '{{value|regex_search("Z15",ignorecase=FALSE) }}'
  action:
  - data:
      message: Living Room PIR - Low Battery
      notification_id: Alarm Panel Problem Z15
      title: Alarm low battery
      service: persistent_notification.create

I have tried single quotes and double single quotes surrounding the Z15 but nothing triggers.

I have also tried: value_template: ‘{{“Z15” in value}}’

The binary sensor looks like this:

  - platform: mqtt
    name: "Living room PIR"
    state_topic: "alarm/problem_report"
    device_class: battery
    value_template: '{{ value|regex_search(''Z15'', ignorecase=FALSE)}}'

It doesn’t change the battery status when the problem report.

I am wondering if I am misunderstanding the use of value_template or whether regex_search is the right tool and if so, what is returned when there is a match and whether it can be used as a condition?

I am also wondering whether I can have multiple automations triggering off the same message (one per zone)?

All thoughts and guidance gratefully appreciated…

Posts: 1

Participants: 1

Read full topic

Temperature conversion from F to C with sensor with Value_template not working

$
0
0

@toofewacres wrote:

I am trying to convert a F temperature sensor value to a new C temperature sensor. I have the following code that I am trying, but it only sets the sensor value to the F temperature comes from the original sensor.

  - platform: template
    sensors:
      octoprint_bed_temp_celsius:
        friendly_name: 'Bed Temperature'
        unit_of_measurement: "°C"
        value_template: "{{ ((states('sensor.octoprint_actual_bed_temp')|float-32)* 5 / 9)|round(1) }}"

If I take the template string to the template developer, it converts the F value to the correct C value. For some reason the sensor code does not put the correct value in the new sensor.

Posts: 5

Participants: 2

Read full topic

Icon color change

$
0
0

@poudenes wrote:

Hi All,

Im using custom_ui and lot of icons get right color. Now I want add 1 based on temperature.

sensor.dark_sky_temperature:
  friendly_name: Current Temperature
  templates:
    icon_color: >-
      if (state < '-23') return 'rgba(255,0,255,1)';
      if (state < '-18') return 'rgba(139,0,139,1)';
      if (state < '-12') return 'rgba(128,0,128,1)';
      if (state < '-7') return 'rgba(0,0,255,1)';
      if (state < '-1') return 'rgba(135,206,236,1)';
      if (state < '4') return 'rgba(0,128,0,1)';
      if (state < '10') return 'rgba(144,238,144,1)';
      if (state < '16') return 'rgba(255,2255,0,1)';
      if (state < '21') return 'rgba(255,165,0,1)';
      if (state < '27') return 'rgba(255,69,0,1)';
      if (state < '32') return 'rgba(255,0,0,1)';
      if (state < '38') return 'rgba(139,0,0,1)';

Only color is see is green "if (state < ‘4’) return ‘rgba(0,128,0,1)’; "
When I change the temp using development tool there is nothing happen on the color.
16 degrees must give " if (state < ‘-18’) return ‘rgba(139,0,139,1)’; " Pink Purple but still green.

Can someone see the fault in this part?

Try this scheme to add colours to temp:

Posts: 1

Participants: 1

Read full topic

Shoppinf List and Automation

$
0
0

@ZenTachi wrote:

Hi everyone,

I am trying to create an automation such that when I add/complete an item on my shopping list in HomeAssistant it will POST to nodered using rest_command.

When I manually test my automation in in Developer Tools/Events by using Event Type call_service, it works fine and I can see the message in my nodered.

However, when I click the “+” and adding an item on the shopping list card, then it looks that the automation is not being triggered.

Is my assumption correct that most probably when clicking “+” to add an item in the shopping list card, it doesn’t actually call the shopping_list.add_item service but does something else?
Does anyone know what happens when “+” is being used?

#Shoppinglist to NodeRed
- alias: 'Shopping List Add Item'
  trigger:
    - platform: event
      event_type: call_service
      event_data:   
        domain: shopping_list
        service: add_item
  action:
    - service: rest_command.shopping_list
      data_template:
        name: "{{ trigger.event.data }}"

Posts: 1

Participants: 1

Read full topic


Automation condition not accepted

Waze travel time - Interval Update

$
0
0

@henaa wrote:

Hi
I try to create evrey 1 minute update the waze vis sensore
its not work to me.
Somone know how do it ?

  - platform: waze_travel_time
    origin: device_tracker.mi9
    destination: zone.home
    region: 'IL'
    name: Travel Back Home
    scan_interval: 1

Posts: 1

Participants: 1

Read full topic

Yeelight - Component not found

$
0
0

@nst197 wrote:

I’m trying to add some Yeelight bulbs to my home assistant but can’t get it to work. They weren’t automatically discovered so I tried adding them manually as per the guide:

yeelight:
  devices:
    192.168.0.10:
      name: test bulb 1

I get this error in the log “Unable to find component yeelight” and “Setup failed for yeelight: component not found”

pip list of homeassistant venv shows yeelight (0.5.0) installed.

Anyone got any suggestions what I should try? Sorry if this is noob

Posts: 5

Participants: 2

Read full topic

Pushing data to RF Bridge

$
0
0

@Malcolm_Smart wrote:

Hi - my daily cry for help- i am trying to accelerate my learning so posting more than I usually do on forums. I almost have things where i need them to start ‘automating’ - but a few things remain. One of them is sending i signal to an RF device via RF bridge. I have the opposite working - can intercept RF buttons / motion sensors and do ‘stuff’ - but i have an RF doorbell ( Mrs S rings it to get me in from the workshop ). I’ve captured the RF Code from the push button, RFKey1 on the TAsmota firmware screen / has ‘learned’ this code, so when i hit ‘1’ on the tasmota page - the bell rings - but I can’t work out what MQTT message to send to the RF bridge to simulate this - ie - ring the bell with an MQTT command. Dont need the full answer - just some pointers - i have MQTT box and can see the message when press the RF button and when i press ‘1’ on tasmota, i see the following MQTT message

{"RfKey1":"Learned sent"}

**qos**  : 0,  **retain**  : false,  **cmd**  : publish,  **dup**  : false,  **topic**  : stat/bridge/RESULT,  **messageId**  : ,  **length**  : 45,  **Raw payload**  : 1233482102751011214934583476101971141101011003211510111011634125

BUt i don’t know what to send frmo an MQTT publisher to do the same thing . Thanks folks!

Posts: 1

Participants: 1

Read full topic

Create user with limited access

$
0
0

@wolf3 wrote:

Hi,
I would create an user with limited access.
I would select the entity that he can see and manage.
Is it possible?
If yes, how?
Thanks

Posts: 1

Participants: 1

Read full topic

Viewing all 107720 articles
Browse latest View live


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