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

Formatted file name from automation to script in action

$
0
0

@RAUS wrote:

Hi, title may be confusing. Very sorry for that. Let me to explain what I want to solve.

I am working on, taking camera snapshot and sending snapshot photo file to notify on mobile/telegram with message. It is working well after going thru many other post on this forum, Thanks to all for this.

I have 3 automations on 3 contact sensors. And having only one script. Automation sends message and camera-entity-id to the script. Script take snapshot on camera id that automation has sent and notify to mobile app/telegram with the snapshot and message received from automation.

Now, issue is new snapshot file overwrites previous snapshot file.

I am looking to generate file name in automation, e.g., backyard_2019_11_06_20_07_57_088904.jpg in automation and pass it to script like currently passing camera entity id and message.

I know in python, this can be achieved by datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S_%f"). But I don’t know how to write in automation yaml file.

Appreciate your help. Thanks

Posts: 3

Participants: 2

Read full topic


Certificate verify failed: self signed certificate

$
0
0

@KaylFr wrote:

Hello,

I started with home assistant I managed to configure a lot of my components but I can not integrate rtorrent a server (or I use Quickbox.io)

in my configuration.yaml file

  - platform: rtorrent
    url: 'https://www:yyy@mydomaine.com:443/rutorrent/plugins/httprpc/action.php'
    monitored_variables:
      - 'current_status'
      - 'download_speed'
      - 'upload_speed'

when I go to the address I’m not wrong it just displays ‘false’

But I have this error message and the sensor displays unavailable

Connection to rtorrent failed ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1076))

does anyone have a solution?

Sorry for my english … google

Kayl

Posts: 1

Participants: 1

Read full topic

Spotify API

Referencing other pages within home-assistant

$
0
0

@xrapidx wrote:

If someone could point me in the right direction.

I’m running home-assistant in a docker container, and accessing it via reverse proxy using the Letsencrypt docker container. (https://(subdomainname).(dyndnsservice).com)

I’d like to add various internal services, such as Pihole, Grafana, etc via iFrames - but without exposing these services directly to the internet - if I add an iframe and point it to , e,g pihole at http://10.0.02/admin.

I get either a blank page, externally (https), or resource not found internally (http) when clicking on the link in the sidebar.

Posts: 7

Participants: 3

Read full topic

Is there a better way to do this?

$
0
0

@maurizio53 wrote:

I have an automation to stop the radio playing in one of my media players that says:

- alias: Nessuno a Casa Spengo Radio
  initial_state: on
  trigger:
    - platform: template
      value_template: "{{ not is_state('device_tracker.life360_maurizio_fabiani', 'home') }}"
  condition:
    condition: or
    conditions:
      - condition: state
        entity_id: media_player.salotto_audio
        state: 'playing'
      - condition: state
        entity_id: media_player.home
        state: 'playing'
      - condition: state
        entity_id: media_player.googlehome5670
        state: 'playing'
      - condition: state
        entity_id: media_player.googlehome0461
        state: 'playing'
      - condition: state
        entity_id: media_player.sonos_stereo
        state: 'playing'
      - condition: state
        entity_id: media_player.studio
        state: 'playing'
      - condition: state
        entity_id: media_player.echo_show
        state: 'playing'
      - condition: state
        entity_id: media_player.echo_spot
        state: 'playing'
      - condition: state
        entity_id: media_player.echo_plus
        state: 'playing' 
 action:
    - service: media_player.turn_off
      entity_id: media_player.salotto_audio, media_player.googlehome5670, media_player.googlehome0461, media_player.home, media_player.sonos_stereo, media_player.studio, media_player.echo_show, media_player.echo_spot, media_player.echo_plus
    - service: input_boolean.turn_off
      entity_id: input_boolean.radio_play
    - service: notify.telegram
      data:
        message: Spengo la Radio.

Is there a better way to decide which player is playing and turn it off?

Posts: 6

Participants: 3

Read full topic

Create a countdown timer

$
0
0

@crazytok wrote:

Can someone help me createing a countdown timer?

I want, when a switch is turned on, a timer appear with countdown 3hours.

Best regards

Posts: 3

Participants: 2

Read full topic

Auth provider with non configurable source

$
0
0

@liollury wrote:

Hello,

time is comed, home assistant v0.101 not allow any more the “trusted_network” configuration.
Problem is that i’ve two devices (ipx800 and other one with custom component) which is not configurable with a http header for long lived token.
I can only make GET with query params but there is no solution for POST or Authorization header.

Someone there have any solution for me ?

Thanks

Posts: 1

Participants: 1

Read full topic

Automation spotify when light is on

$
0
0

@henaa wrote:

Hi
why its not work for me ? what wrong ?

- id: '1573038110403'
  alias: test2
  description: ''
  trigger:
  - entity_id: light.slvn
    for: 00:00:05
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      entity_id: media_player.kitchen_speaker
      media_content_id: spotify:user:spotify:playlist:0ztMQWTqq8pM1ej5sf4lMn
      media_content_type: playlist
      random_song: true
    service: spotify.play_playlist

Posts: 8

Participants: 3

Read full topic


MQTT Sensor and value_template

$
0
0

@poudenes wrote:

Hi All,

I have my ITHO fan now also controlled Ising ESP board.
Hey creates some sensors, and fan configurations. But maybe they’re old because when I add them I get errors:

---
platform: mqtt
name: "ITHO Speed"
state_topic: "ITHO/Fan/State"
value_template: >-
  {% if value|float==0 %}Standby{% endif %}
  {% if value|float==1 %}Laag{% endif %}
  {% if value|float==2 %}Medium{% endif %}
  {% if value|float==3 %}Hoog{% endif %}
  {% if value|float==4 %}Full{% endif %}
  {% if value|float>=11 %}Hoog(T){% endif %}
Error loading /config/configuration.yaml: while scanning a simple key
  in "/config/package/compontents/sensors/mqtt/itho/itho_speed.yaml", line 6, column 1
could not find expected ':'
  in "/config/package/compontents/sensors/mqtt/itho/itho_speed.yaml", line 7, column 1

Can someone assist me with this?

Posts: 3

Participants: 2

Read full topic

Unable to Connect, I dont know why

$
0
0

@dudester wrote:

Hi,

Something has happened and my home assistant now just says Unable to Connect…?

I use duckdns and now browsing to my normal url https://philwashere.duckdns.org:8123 does not work

I am running a virtual install on windows and have reset modem and pc.

Looking at router its still on the same ip and I can access the files from windows explorer by browsing \ip addrerss… I just can view front end…

How can I debug this?

Posts: 1

Participants: 1

Read full topic

SMTP with SSL only

$
0
0

@arc2v wrote:

I’m working on getting smtp notifications working. I have a mail provider that has ssl only on its basic e-mail accounts.

I got test notifications to work with encryption set to “none” but TLS and StartTLS didn’t seem to work although it was late and I probably didn’t try everything yet.

Just wondering if this is possible before I dig into it any further.

Thanks.

Posts: 1

Participants: 1

Read full topic

Smartthings access token error

$
0
0

@maddoxb25 wrote:

I’m super new this to this i recently installed hassio i have integrated the givens (hue, lifx). i’m running version 0.101.2 and i just cannot get smartthings to accept my access token. any words of wisdom would be great and also if i didn’t post this in the right category i do apologize. I’m using home assistant cloud as well to access home assistant out of home. Again please bare with me as i’m new and just want to learn. Thanks for any help.

errors i’m getting range from:
uid/guid format
unknown error

Posts: 3

Participants: 2

Read full topic

Can't backup and restore?

$
0
0

@jriker1 wrote:

I have been trying to get HA working and the mobile app part is proving a bit troublesome. I am running a virtual machine and wanted to clear some things in the .ios.conf file so made a snapshot. What I tried didn’t work so restored. My ecobee sensors now do not work complaining about bad tokens. Tried restoring my HA snapshot same deal. Is there a way to back up the system and restore so this doesn’t happen? Taking a VMware snapshot, trying something, then restoring within 5 minutes wouldn’t think you would have these issues.

JR

Posts: 7

Participants: 3

Read full topic

Update multiple entities in one API call?

$
0
0

@flemmingss wrote:

Ref rest api.

If I have two entities i want to update with the API, can I do this in just ONE api call, or do I have to make two calls?

example:
I want to set light.outside to on
and also set light.inside to off

Is it possible? If so how should the JSON be formated?

Posts: 4

Participants: 2

Read full topic

Credstash in configuration.yaml

$
0
0

@claudiosala80 wrote:

Hello all

I have did all the steps for AWS and I have the DB with key and password
I am able to use that password in some nodejs scritp, but it seems not working when I use in configuration.yaml

Do you know how to use credstash in that file?
I am not able to make it works following the official documentation

Regards
Claudio

Posts: 1

Participants: 1

Read full topic


LimitlessLed don't work

$
0
0

@Sem_Ridder wrote:

Hi everybody,
I’m new with HA so i don’t know everything. I have a question about my LimitlessLed bulbs.

I use the WiFi Ibox2 and a RGBWW bulb. With the Mi-Light 3 app does this works fine but i can’t get it working with Home Assistant. This is my configuration.yaml:

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

light:
  platform: limitlessled
  bridges:
    - host: 192.168.178.10
      groups:
      - number: 1
        name: Bedroom
        type: rgbww

I can’t see the bulb in my UI.

I hope you can help me.

Posts: 2

Participants: 2

Read full topic

Configuration issue - sensor command line not working

$
0
0

@Hyppy wrote:

Hello all,

I’m a new guy to the Home Automation world, and with my second foray I’ve got an issue with sensor command line not running as expected. I’m running a hassio docker instance patched to current, and is running on a CentOS instance on an old NUC.

The basics have been working as expect, and I have integrated my garage doors so far - many more device to come. The problem comes when I try to run some command line calls. I have weather data being collected in a file inside the homeassistant directory called “weather.data”. I copied a sensor config from another poster, and both the command lines return values when I run it within the hassio shell, but doesn’t appear to be working as a sensor call (config and log entries below). Both sensor calls aren’t working as I believe they should.

It’s something basic I’m sure. I’ve searched the forums, the interwebs, and now I am coming to you all. Any ideas what I’m missing? Your help is appreciated.

from configuration.yaml

sensor:
  - platform: command_line
    name: Outdoor Temperature
    command: 'grep "933" /usr/share/hassio/homeassistant/weather.data  |tail -n1'
    json_attributes:
      - temperature_C
    value_template: '{{ value_json.temperature_C }}'
  - platform: command_line
    name: badlogin
    command: "grep -c 'Login attempt' /usr/share/hassio/homeassistant/home-assistant.log"

From my log file:

2019-11-06 09:37:46 DEBUG (SyncWorker_11) [homeassistant.components.command_line.sensor] Running command: grep -c 'Login attempt' /usr/share/hassio/homeassistant/home-assistant.log
2019-11-06 09:37:46 ERROR (SyncWorker_11) [homeassistant.components.command_line.sensor] Command failed: grep -c 'Login attempt' /usr/share/hassio/homeassistant/home-assistant.log
2019-11-06 09:37:46 DEBUG (SyncWorker_8) [homeassistant.components.command_line.sensor] Running command: grep "933" /usr/share/hassio/homeassistant/weather.data  |tail -n1
2019-11-06 09:37:46 WARNING (SyncWorker_8) [homeassistant.components.command_line.sensor] Empty reply found when expecting JSON data

Posts: 2

Participants: 1

Read full topic

How to toggle state diffrent than switch

$
0
0

@j2k300 wrote:

Hi there this is my first post and also my first project.

I purchased a sonoff 4ch r2 pro. I flashed the device with tasmoto and have the device in inching modus. I want to use the device to control my garden sprinklers (hunter). The pump valves run on 24v ac and switch with a pulse. So when I toggle the switch in HA it go’s to on for one sec and switches back to off. In this case the sprinklers are still working. If I press the switch again the state of the switch goes on for a sec and back off. Now the sprinklers are off. Is there a way to keep the state in the HA to on even if the state of the switch is off? I know that this way there is a possibility of running out of sync. But I still would like this to work. Can somebody point me in the right direction?

Posts: 2

Participants: 2

Read full topic

Scene whit history status

$
0
0

@Blaz_Komat wrote:

How you have set up scene like this:

I have door sensor and radiator valve.

I want that when door sensor send open signal that set radiator temperature to 4 degrece. I can make scene like this. But next step is hard.

When door/windows sensor send signal “close” set temperature like it was before singnal to set to 4 degrese?

Posts: 2

Participants: 2

Read full topic

Integration API peripheral

$
0
0

@Gce wrote:

Hello world !
I’m trying to integrate a peripheral that have it’s own API commands (it’s an IO card). So I can switch outputs with a simple http request. I’m sure that it’s possible to integrate it on Home Assistant but I didn’t find how … !
Can somebody help me ?

Posts: 2

Participants: 2

Read full topic

Viewing all 97557 articles
Browse latest View live


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