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

Part of automation will not be executed

$
0
0

@AdmiralRaccoon wrote:

Hello,
I have 2 automations set up, and these should trigger 2 actions by now: Depending on who´s leaving earlier (me or my girlfriend), all lights should be turned off and a camera should be activated.
This is my code:

- id: '42'
  alias: Leaving-home-weekday-01
  trigger:
  - entity_id: person.rebecca
    event: leave
    platform: zone
    zone: zone.home
  condition:
    condition: and
    conditions:
    - condition: state
      state: not_home
      entity_id: person.philipp
    - condition: time
      after: '05:30:00'
      before: '08:30:00'
    - condition: time
      weekday:
        - mon
        - tue
        - wed
        - thu
        - fri
  action:
  - service: light.turn_off
    entity_id: group.all_lights
  - service: switch.turn_on
    entity_id: switch.foscam_wohnen 

- id: '43'
  alias: Leaving-home-weekday-02
  trigger:
  - entity_id: person.philipp
    event: leave
    platform: zone
    zone: zone.home
  condition:
    condition: and
    conditions:
    - condition: state
      state: not_home
      entity_id: person.rebecca
    - condition: time
      after: '05:30:00'
      before: '08:30:00'
    - condition: time
      weekday:
        - mon
        - tue
        - wed
        - thu
        - fri
  action:
  - service: light.turn_off
    entity_id: group.all_lights
  - service: switch.turn_on
    entity_id: switch.foscam_wohnen

I tested it an hour ago, and the strange thing is that the camera turned on, but the lights havn´t turned off.
I think it´s no big deal to turn all lights off, but there seems to be a mistake in my automation?

image

Posts: 3

Participants: 2

Read full topic


Setting a default brightness for lights... when turned on via Alexa

$
0
0

@mikeage wrote:

Hi,

I’m looking to be able to set a default brightness (and color temperature) for my lights when they’re turned on based on the time of day. This is easy enough to do in pure HA using an input_number and syncing the status between the bulb and the state, and always calling light.turn_on with the value, but how do I do this if I also want it to apply when I turn on the lights via Alexa (I’m using haaska)? It seems like that connects the Alexa intent directly to a service light.turn_on call; is there any way to intercept that and inject some custom parameters?

Posts: 1

Participants: 1

Read full topic

Automation trigger with continual check

$
0
0

@Narfel wrote:

I want a sensor that only conditionally runs a shell_command when the criteria device_tracker.pc is “home” and does nothing when it is “not_home”. I thought an automation that checks the device_tracker and then calls shell_command would work:

- id: '<id created by automation editor>'
  alias: Run PC Uptime Sensor
  description: ''
  trigger:
  - entity_id: device_tracker.pc
    platform: state
    to: "home"
  condition: []
  action:
    service: shell_command.get_pc_uptime

But it does never fire at all. Is it because i’m looking for a state change? If yes, how can i have it just periodically check if the state is “home”? Or do i have to check for the state change initially and use a condition checking something like last_run for periodic runs? I’m guess i’m just not clear on the logic behind that.

Posts: 4

Participants: 3

Read full topic

Theme primary-color Media player

$
0
0

@coen17st wrote:

Hi, I wondered if the top bar color can be set separately from the media player color. Or is it only possible to have the same color both at the same time i have now set primary-color: “#252B36” but want to keep the top bar white.

Is there a way to give the top bar and media play a different color?

Posts: 2

Participants: 2

Read full topic

Templating - jinja syntax question

$
0
0

@klogg wrote:

I would like to take the average of a series of sensors, so long as they are reporting a valid number as their state (which they do under ‘normal’ circumstances).

I know how to do this but it would take me a lot of lines and I feel sure there is simple (possibly even one line) way to do this that I just don’t know because my jinja/python skills are not good enough.

Anyone care to help?


e.g.

sensor.sensor1 = 2
sensor.sensor2 = 3
sensor.sensor3 = 4
sensor.sensor4 = ‘unknown’

would return 3


sensor.sensor1 = 3
sensor.sensor2 = 4
sensor.sensor3 = 5
sensor.sensor4 = 6

would return 4.5

Posts: 3

Participants: 2

Read full topic

Zooz Zen26 S2 - State issues

$
0
0

@ryantrip wrote:

Hello community,

Does anyone else have the Zooz Zen26 S2 switch? I’m having an issue where the switch does not correctly report its state back to Home Assistant after being toggled in Home Assistant. The switch is literally 5 feet in the same room from the USB stick. The only work around I have is to increase the polling rate, which is not preferable. I don’t want to have to return all these switches. Assistance is appreciated.

Posts: 1

Participants: 1

Read full topic

Time Calculation - here Sensor Template , need help

$
0
0

@TheCrey wrote:

Hi,

i hope you are all fine.
Today i am seeking help for an automation i have in mind for very long time but was not able to build.

I would like to show the point with a led stripe and color, when i have to have to start drive to work in the morning.
So if there is more traffic, i have to drive a bit more earlier.

Wih the new here sensor, this seems to be realizable.

So here is what i have so far (pretty the same from the example).

Automaton:

- id: weekdays check traffic every minute
  initial_state: 'on'
  trigger: 
  - platform: time_pattern
      minutes: '/1'
  condition:
    - condition: time
      after: '06:00:00'
      before: '07:30:00'
    - condition: time
      weekday:
        - mon
        - tue
        - wed
        - thu
        - fri
  action:
    - service: homeassistant.update_entity
      entity_id: sensor.work_tro

sensor:

  - platform: here_travel_time
    name: work_tro
    traffic_mode: true
    app_id: "xxxx"
    app_code: "xxx"
    origin_latitude: "xxxx"
    origin_longitude: "xxxx"
    destination_latitude: "xxxx"
    destination_longitude: "xxxx"

i think and im not sure about this, i need then a template sensor, which checks the work_tro sensor.

I need to be at work at 8 AM, so check the current time plus the travel time, if it is then 7.45 AM make the string green, will it be 7.55 AM orange and everything after 8 AM make it red

The rest i could with normal automations, like turn off the string if it is after 8 AM etc etc.
But i have an issue on how to realise the calculöation.

then i would need an automation like this:

Automation:

- id: traveltime work_to
  initial_state: 'on'
  trigger:
  	platform: numeric_state
    entity_id: sensor.xxxx
    above: 45
  action: 
  	service: light.turn_on
  	entity_id: light.xxx

I hope what i am tryining to reach and someone can help me here

Posts: 1

Participants: 1

Read full topic

Proxmox 6 - Debian 10 HASSIO - RFXCOM

$
0
0

@Sim7b wrote:

Hello !
I’m trying to switch from Jeedom to HASSIO but I stuck on rfxcom.
I tried everything : ‘/dev/ttyUSB0’ ‘/dev/ttyUSB1’ and ‘/dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1Y0NJGR-if00-port0’

My config works with my ZWAVE USB stick.

Thanks !

Posts: 1

Participants: 1

Read full topic


Help with timers

$
0
0

@DZMM wrote:

I’m embarrassed to ask this, but I can’t get this to work. I have a timer timer.office_lights and I want the lights to turn off when the timer finishes. When the lights go on the timer starts, but when the timer finishes nothing happens.

Help please (set to 10s for testing):

Thanks in advance for any help

timer:
  office_lights:
    duration: '00:00:10'

- alias: Lights - Office Lights Timer
  trigger:
        platform: state
        entity_id: light.office
        to: 'on'        
  action:
      - service: timer.start
        data:
            entity_id: timer.office_lights
        
- alias: Lights - Office Lights Off
  trigger: 
        platform: event
        event_type: timer.finished
        event_data:
          entity_id: timer.office_lights 
  action:
        service: light.turn_off
        entity_id: light.office

Posts: 10

Participants: 4

Read full topic

Sample&hold sensor state at a specific time of day

$
0
0

@bitsflew wrote:

How can I sample&hold a sensor state at a specific time of day?
None of the build-in components seems to offers that feature.

Any ideas?

Posts: 2

Participants: 2

Read full topic

Devolo Thermostat does not send/update target temperature

$
0
0

@leoc wrote:

I have set up Deveolo Z-Wave Thermostats (see LC-13) and the reporting of the room temperature works out of the box. I can change the target temperature on the device and it is updated in the HA UI accordingly.

But when I try to set a new target via the Home Assistant UI the value always jumps back to the value set at the device before.

Is there a configuration that needs to be done for OZW?

My config is here: https://gist.github.com/leoc/0aa3a96507c92f451ec5f6aa4a92c1bc

Cheerio!

Posts: 3

Participants: 2

Read full topic

More elegant way for triggering switch with an input_boolean?

$
0
0

@ursus_polaris wrote:

Hi.

I’ve started to setup my home automation with home assistant and I’m amazed by the maturity of the project and the available integrations. Great job!

For my question:

I’m changing via some buttons the state of an input_boolean (via REST-call) and have an automation working that turns a switch on and off, according to the state of this input_boolean:

- id: itb100_to_sonoff_1
  alias: "IT-B-100 to sonoff mapper on"
  initial_state: on
  trigger:
  - platform: state
    entity_id: input_boolean.intertechno_button_it_b_100_left
    to: 'on'
  action:
    - service: switch.turn_on
      entity_id: switch.sonoff

    
- id: itb100_to_sonoff_2
  alias: "IT-B-100 to sonoff mapper off"
  initial_state: on
  trigger:
  - platform: state
    entity_id: input_boolean.intertechno_button_it_b_100_left
    to: 'off'
  action:
    - service: switch.turn_off
      entity_id: switch.sonoff
      

The reason I’m doing it a bit complicated is to have the ability to configure the whole house this way through HA - which is why I’m using it.

The code is working great - but I was wondering, if there isn’t a way to do the same with less code - meaning, if I can’t take the state of the ‘input_boolean’ as the new value of the switch, as this would result in about half the code… .

Posts: 3

Participants: 2

Read full topic

Ifttt, webhook, script.turn_on, automation.trigger .... nothing want to work!

$
0
0

@JB_Marchetti wrote:

Hello all !

like others I couldn’t launch a script from ifttt via webhook…
it’s starting to drive me crazy…

would I have missed a step ?

I have another ifttt/webhook call that works, I don’t understand why the script.turn_on service is not running.

my script works when I run it manually.
I tried too with an automation >> works in manual triggering, programmed, but not via ifttt call

ifttt:
url : https://xxx.duckdns.org/api/webhook/myapikeywebhookwichisok

post / json

body : {“action”: “call_service”, “service”: “script.turn_on”, “entity_id”: “script.myscript”}

automation:

- id: '00'
  alias: IFTTT Trigger
  hide_entity: false
  initial_state: 'true'
  trigger:
    platform: event
    event_type: ifttt_webhook_received
    event_data:
      action: call_service
  action:
    service_template: '{{ trigger.event.data.service }}'
    data_template:
      name: '{{ trigger.event.data.name }}'

help !!!

Posts: 6

Participants: 3

Read full topic

PicoTTS Errors

$
0
0

@rlongfield wrote:

In my hunt for a more natural sounding TTS service I installed PicoTTS yesterday afternoon.

I noticed 2 errors in my logs,

Error setting up platform: picotts
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 137, in async_setup_platform
    tts.async_register_engine(p_type, provider, p_config)
  File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 275, in async_register_engine
    provider.hass = self.hass
AttributeError: 'bool' object has no attribute 'hass'

and

'pico2wave' was not found

I am running Home Assistant .100.3 in a docker container, which I think is the source of the log errors.

I have no idea however on how to correct this.

Posts: 1

Participants: 1

Read full topic

Zigbee and networkmap issue - no non-router devices attached to routers

$
0
0

@michel72 wrote:

The image explains best. The non-router (battery) devices like xiaomi, philips hue switches etc. are not attached to any router of coordinator in de drawing. All devices work, there is just no lines.

I am running zigbee2mqtt edge and the latest CC2530 + CC2591 firmware 1.2

Posts: 1

Participants: 1

Read full topic


Home Assistant Conversation component

$
0
0

@DeadEnd wrote:

Hello HA community!

I a while ago I was looking at the different non-cloud voice assistant options.
I have played around with Rhasspy, but don’t have a mic/speaker in my system yet, so it was just toying around.

Today I noticed that there is a built in component called “Conversation” that uses conversation and intent scripts.

Has anyone used this? Can they compare and contrast it to an external system like Rhasspy or Snips? Does the Home Assistant Conversation component use a cloud service?

Thanks!
DeadEnd

Posts: 1

Participants: 1

Read full topic

Button using a photo and how to call a source?

$
0
0

@Matt_Barnes wrote:

Hello.

Can I get a small button with a photo as the full button?

I want to set up a remote for SkyQ and want to add images like these as buttons to select specific channels.

The custom mini button seems to use MDI icons
I think the picture entity card is what I want but not entirely sure
There is a picture card too

As I want the button to call a source from the below code I am not sure an entity is what I want? I am also not entirely sure how to “call” a source using a button press

  
  
  - platform: skyq
    host: 192.168.1.106
    name: SkyQ
    room: Lounge
    config_directory: '/config/'
    generate_switches_for_channels: true
    sources: 
      SkyOne: '1,0,6'
      SkyNews: '5,0,1'
  
  

Posts: 1

Participants: 1

Read full topic

Connect Arlo cameras to Synology Surveillance Station through HA?

$
0
0

@_Mike wrote:

I know this is probably a long shot, but I’ll ask anyway… Arlo cameras are not natively compatible with Synology Surveillance Station. However, HA has an Arlo integration. I’m wondering if there is any way to use HA’s integration to connect Arlo cameras to Synology Surveillance Station. Thoughts?

Posts: 1

Participants: 1

Read full topic

Horizontal-stack

$
0
0

@jan.mob wrote:

Maybe iam missing something but i cant get this to work any more.
what do i do wrong?

title: Coimbra
views:
  - badges:
      - binary_sensor.updater
      - person.makkeleon
      - device_tracker.devicename
      - device_tracker.makkeleon
      - device_tracker.cristine
      - device_tracker.lenovo
      - device_tracker.b8_27_eb_b4_30_05
      - device_tracker.24_0a_c4_ba_f2_f4
      - device_tracker.ee_94_f6_0d_b8_9d
      - device_tracker.ec_fa_bc_38_e2_c4
      - device_tracker.ec_fa_bc_39_69_c8
      - device_tracker.ac_9e_17_8e_4a_48
      - device_tracker.30_b5_c2_12_af_3f
      - device_tracker.84_f3_eb_e0_7b_a9
      - device_tracker.cc_50_e3_27_1e_89
      - device_tracker.ec_fa_bc_38_f0_66
      - device_tracker.84_f3_eb_e0_77_a0
      - device_tracker.30_ae_a4_d8_04_18
      - sensor.yr_symbol
      - sun.sun
    cards:
      - entities:
          - entity: switch.garage_light
          - entity: light.keuken_cam_light
          - entity: switch.printer_switch
          - entity: switch.kachel_aan
          - entity: switch.kachel_uit
          - entity: binary_sensor.pir_sensor
          - entity: switch.keuken_cam_restart
          - entity: sensor.tempwater
          - entity: sensor.tempkachel
          - entity: sensor.tempkamer
          - entity: sensor.temprook
        show_header_toggle: false
        title: Garagem
        type: entities
      - entity: camera.keuken_cam
        type: picture-entity
      - entities:
          - switch.slaapkamer_light
          - switch.slaapkamer_ventilator
        show_header_toggle: false
        title: Quarto
        type: entities
      - entities:
          - entity: switch.sala_light
          - entity: switch.woonkamer_camera_restart
          - entity: light.voordeur_cam_light
          - entity: switch.voordeur_cam_restart
          - entity: binary_sensor.interruptor_ao_lado_da_porta_da_frente
          - entity: binary_sensor.luz_sala_on
          - entity: binary_sensor.woonkamer_camera_button
          - entity: binary_sensor.woonkamer_camera_pir
        show_header_toggle: false
        title: Sala
        type: entities
      - entity: camera.woonkamer_camera
        type: picture-entity
      - entity: camera.voordeur_cam
        type: picture-entity
      - entities:
          - entity: automation.turn_on_garage_licht_when_there_is_movement
          - entity: automation.turn_off_garage_licht_10_minutes_after_last_movement
          - entity: automation.turn_on_woonkamer_licht_when_there_is_movement
          - entity: automation.turn_off_woonkamer_licht_10_minutes_after_last_movement
          - entity: automation.makkeleon_home
          - entity: automation.makkeleon_weg
          - entity: automation.cris_home
          - entity: automation.cris_weg
          - entity: automation.notification_garage
          - entity: automation.automatic_theme_change
          - entity: automation.ha_boot
          - entity: automation.ha_boot_2
        show_header_toggle: false
        title: Automation
        type: entities
      - entity: camera.combined
        type: picture-entity
      - entity: media_player.mpd
        type: media-control
      - entity: media_player.3119a1c2_af86a9a5
        type: media-control
      - entity: weather.casa_salgueirosa
        type: weather-forecast

  - type: horizontal-stack         :blush: 
    cards:
      - type: gauge
        entity: sensor.tempwater
        min: 0
        max: 100
        theme: Backend-selected
        severity: null
        green: 0
        yellow: 0
        red: 0
      - type: gauge
        entity: sensor.tempkachel
        min: 0
        max: 100
        theme: default
      - type: gauge
        entity: sensor.tempkamer
        min: 0
        max: 100
        theme: default
      - type: gauge
        entity: sensor.temprook
        min: 0
        max: 100
        theme: default
        path: default_view
        title: Home

Posts: 1

Participants: 1

Read full topic

Evohome and Homekit create switch

$
0
0

@Dinges28 wrote:

I got Evohome working in fine order, and also it shows in Apple-Home.
But from there, it is not possible to put Evohome manual on “Away”

I want to create a switch in home-assistant that represents and changes the setting of attribute “preset_mode” (away/Custom/eco/home/none)

Anybody know a way to accomplish this.

I tried creating a sensor, but than you cannot find it in homekit and not change any settings…

Posts: 1

Participants: 1

Read full topic

Viewing all 95295 articles
Browse latest View live


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