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

Please help with automation and input datetime

$
0
0

@kolossboss wrote:

Hi,
I’m triying to made a realtiv complex automation for a sprinker system.

One goal was to select the start and stop time in the UI with an input_datetime helper. I’m having a pretty hard time to get this to work. (why is thats so incredible complicated with template etc…?)

Now I need to compare input_datetime with < and >. Is that even possbile without template? I’m pretty bad at templating…

It should look something like this. (Sorry I’m REALY bad :slight_smile: )

{% if states('sensor.time') > (states.input_datetime.start_bewaesserung_erd.attributes.timestamp) and
{% if states('sensor.time') < (states.input_datetime.start_bewaesserung_erd.attributes.timestamp)
Then = TRUE
{% endif %}

And this should be a condition in this automation

- id: auto_steuerung_erd
  alias: Erdbeeren Auto Steuerung
  description: ''
  trigger:
  - entity_id: input_boolean.auto_steuerung_erd_1
    platform: state
    to: 'on'
  condition: []
  action:
  - data: {}
    entity_id: input_boolean.manuelle_steuerung_erd_1
    service: input_boolean.turn_off

Please help.

Posts: 1

Participants: 1

Read full topic


Xiaomi Magic cube deconz input_select

$
0
0

@webms wrote:

Hello, i’ve got a problem with the xiaomi magic cube and deconz. I’am fine with listening to the deconz_event and i get all the events, when i flip, rotate and shake the button.

For easy use, i want a sensor, which indicates the upper side of the cube. I made an input_select, which the following options and a sensor. For example, when deconz_event fire 6002,6003,6004 i want, that the sensor option is seite6. When deconz_event fire 3002,3003,3004,3005 than option should be seite 3. Could anybody give me an advice. Thank you

input_select:
  cube2_seite_oben:
    name: Cube2 Seite oben
    options:
      - seite1
      - seite2
      - seite3
      - seite4
      - seite5
      - seite6
    initial: seite1

sensor:
  cube2_seite_oben:
      entity_id:
        - input_select.cube2_seite_oben
      value_template: '{{ states.input_select.cube2_seite_oben.state}}'
      friendly_name: 'Cube2 Seite oben'

Posts: 1

Participants: 1

Read full topic

SSID and Password as variables

$
0
0

@ralunagithub wrote:

Hi. I´ve tons of devices configured introducing in code the SSID name and password. I´m going to move and I´m afraid thinking on having to configure again all the devices with the new SSID & pw of the new router.
Is there a way to give SSID and password a variable name in the code (wifi: variable_name password:variable_pw)?
Then, in secrets.yaml or wherever you wil give values to both variables so if you need to change any of them you change it just there and the devices will know the new values without having to go one by one changing all of them. Thank you in advance

Posts: 1

Participants: 1

Read full topic

How do you add all developer tools as icons in left nav?

$
0
0

@CentralCommand wrote:

I’ve seen screenshots of people’s HA a few times where in their left side nav instead of just saying “developer tools” it shows icons for each tab in the developer tools view. It looks like this:

How do you do that? I haven’t managed to figure it out. Is there a setting you can change to make it do that?

Posts: 2

Participants: 2

Read full topic

How to make tileboard default view

$
0
0

@Twours wrote:

Hi guys,

I’m quite new to tileboard but have managed to get it going.

I was just wondering is it possible to make tileboard the default view on home assistant? Including your mobile device?

Thanks in advance!

Posts: 1

Participants: 1

Read full topic

Lost network connection

$
0
0

@JJ462 wrote:

I opened up my home assistant this morning and found I had a “lost network connection” error. I could still get into the settings but could not get into any other screens. My network is up and running at a good speed. The settings have still got the correct URL set. I tried a stop on home assistant and then a restart. This removed the error message but did not fix the problem.

Do I need to go back and go through the manual install process again.

Posts: 1

Participants: 1

Read full topic

Setup MQTT Add-On within Hassio Docker

$
0
0

@dreamzboy wrote:

I know there are plenty of threads relating to MQTT setup but most are outdated or doesn’t apply to my case. I use Hassio Docker Container with Mosquitto MQTT Broker add-on installed within the Home Assistant Interface.

My default MQTT configuration with nothing’s changed:

logins: []
anonymous: false
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false

My configuration.yaml under /usr/share/hassio/homeassistant/:

# 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
scene: !include scenes.yaml

homeassistant:
  customize: !include customize.yaml

mqtt:
  broker: 192.168.10.10
  username: !secret mqtt_user
  password: !secret mqtt_password

I get the following error under Mosquitto logs:

1589686818: Socket error on client <unknown>, disconnecting.
1589686829: New connection from <ip_address> on port 1883.
1589686829: Socket error on client <unknown>, disconnecting.
1589686840: New connection from <ip_address> on port 1883.
1589686840: Socket error on client <unknown>, disconnecting.

However, if I add the username and password Mosquitto configuration UI, it started working.

logins:
  - username: mqtt_username
    password: mqtt_password
anonymous: false
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false

Why can’t I specified the mqtt username and password under configuration.yaml file? This used to work when I was running off the Raspberry Pi.

Posts: 1

Participants: 1

Read full topic

Event for button press in lovelace UI

$
0
0

@raccettura wrote:

Currently working with the manual alarm control panel. I’d like to trigger an event whenever a key on the alarm pad ui is pressed

So far as I can see tell events are focused around the alarm being triggered or not, or activated or deactivated. I haven’t found anything in the docs about detecting attempts to activate or deactivate.

So I’m curious if anyone has attempted something similar. Could be useful for example to trigger a camera.

Posts: 1

Participants: 1

Read full topic


Help with sensor calculation with SNMP sensors of Synology Diskstation

$
0
0

@Polarlys wrote:

Hi,
I want to calculate the Free Disk Space in percentage for Volume 1 from a Synology Diskstation. Therefor I created 3 SNMP-sensors:

# Berechnungen fuer Volume 1
# Volume 1 Groesse der Bloecke in Bytes:
  - platform: snmp
    host: 192.168.178.99
    community: public
    name: supernova_volume1_block_size
    baseoid: 1.3.6.1.2.1.25.2.3.1.4.1
    unit_of_measurement: "Bytes"
# Volume 1 Anzahl der Bloecke in Bytes insgesamt:
  - platform: snmp
    host: 192.168.178.99
    community: public
    name: supernova_volume1_blocks
    baseoid: 1.3.6.1.2.1.25.2.3.1.5.1
    unit_of_measurement: "Bytes"
# Volume 1 Anzahl der belegten Bloecke in Bytes:
  - platform: snmp
    host: 192.168.178.99
    community: public
    name: supernova_volume1_blocks_used
    baseoid: 1.3.6.1.2.1.25.2.3.1.6.1
    unit_of_measurement: "Bytes"

All three sensors get valid values. But the calculation of the Percentage seems to be wrong and get a “non numeric” error.

# Benutzter Platz Volume 1
  - platform: template
    sensors:
      supernova_volume1_used_space_percent:
        friendly_name: "SuperNova Volume 1 Used Space"
        value_template: >
          {% set usedspace = (states('supernova_volume1_block_size')| float) * (states('supernova_volume_1_blocks_used')| float) %}
          {% set maxspace = (states('supernova_volume1_block_size')| float) * (states('supernova_volume_1_blocks')| float) %}
          {{ (((usedspace / maxspace) | float) | round(0)) }}
        unit_of_measurement: "%"

I am not a Pro in YAML so I can’t see the error. Can someone help me?

Posts: 1

Participants: 1

Read full topic

Lovelace Cards for Sonoff POW

$
0
0

@Jeandre wrote:

Hi - How can I see my power usage in lovelace? I can see it when logging directly into the web interface of tasmota - but I would prefer seeing it in lovelace?

Do anyone also use Hasskit app? Can I see power usage in that app as well?

Posts: 8

Participants: 2

Read full topic

Willweather API - weather or weather station?

Chromecast unavailable state sense

$
0
0

@Robb0 wrote:

Hi all, I have been lurking for a while for some solutions to things I have been trying to accomplish. I’m pretty new to home assistant and Linux etc but I am an automation engineer by trade and I was fed up with the very basic options in Hue and lack of integration with other manufacturers as well as endless bloody boxes. That’s when I stumbled upon this project and it’s sort of gone on from there learning from posts from this community so Thankyou!

I’m struggling with an automation for a fairly basic light presence routine. Background is I have set a light to come on in detection of a PIR after sunset. I want to turn this off when I’m going to bed, I turn the tv off and after time the light will go off. My issue is chromecast is powered by usb I’m unwilling to change this so is there a way to check for states other that idle pause etc?

Ideally I want to keep it within the UI, I’m sure I could work this out in YAML but given the intent to move away from this.

Trigger
PIR stops detecting motion for a set time.

Condition

Chromecast state is unavailable Or off

Action

turn off light after time.

Could somebody help me with the condition please, I have tried device then editing as yaml changed to unavailable from off and also tried state to unavailable but that doesn’t seem to work either. Anybody got a solution to this?

Thanks

Posts: 1

Participants: 1

Read full topic

Xiaomi remote not playing with others

$
0
0

@wzwick wrote:

Hi everyone.
I had one of these xiaomi universal remote devices and it worked great so I got a second one.

Got the token and settings needed for it and then copied the installation of the current one.
Nothing
System doesn’t throw out an error and as far as HA thinks it sent the signal, but the device does not transmit anything, LED doesn’t even blink.

Troubleshooting:
From the mi home app I tested device and device is working correctly.
Hashed out config from the previous unit to make sure there wasn’t some sort of conflict.
Double-checked IP address and token are correct

Same results
Debug logs of working unit is the same as not working unit.

Any thoughts or suggestions for me to try?

Posts: 1

Participants: 1

Read full topic

MariaDB yes or not?

$
0
0

@maurizio53 wrote:

Running Hassio on a raspberry Pi4 with 4GB memory, which are the pros and cons using MariaDB database in place of the default one?

Posts: 1

Participants: 1

Read full topic

Reverse status of binary sensor from Sonoff SV power2

$
0
0

@rcruikshank wrote:

Hi
I used to use the following yaml to reverse the status of power2 from a sonoff SV to indicate a gate being open of closed.

#binary_sensor:
#
#  #Front Gate Sensor
#  - platform: mqtt
#    name: Front Gate
#    state_topic: cmnd/front_gate/POWER2
#    payload_on: 'OFF'
#    payload_off: 'ON'
#    qos: 0

Note the payload_on:is off and off is on as the read switch I’ve set up on the gate is closed when the gate is closed causing POWER2 payload on when is should be off.

Now I’ve reconfigured Tasmota devices on the network to auto discover with setoption19 to 1 and have commented out this configuration. But now the system thinks the gate is closed when its open etc.

Whats the best way to revers the payload of power2 to indicate the correct status of my gate?

Thanks in advance
Rob

Posts: 1

Participants: 1

Read full topic


SSH commands with shell command

$
0
0

@Nicolo_Passera wrote:

I have read all the posts / guides that I have found, but I cannot get the shell commands to work with hassio.

Objective:
Using hassio shell command, control several linux machines via ssh.

I tried to generate the keys on both linux and hassio machines, but I never manage to make the commands work. I am always given the error 255. There are many guides but they have confused me.
Can anyone explain, step by step, how to do it?

Posts: 1

Participants: 1

Read full topic

Icon Color >:(

$
0
0

@tescophil wrote:

So, the latest beta version of HA (0.110.0b3) breaks the icon_color customisation provided in the widely used custom-ui modification https://github.com/andrey-git/home-assistant-custom-ui This repo is no longer maintained, so these issues will only get worse over time.

Is it just me that thinks very basic customisation options like this should be provided in the HA core functionality ?

I have a very basic UI for my HA install, but the one thing I do everywhere is change the icon color/type for a device based on state. This might be something simple like changing the icon color of a group of lights from blue to yellow when the group is turned on to mimic the functionality provided in the HA core (i.e. Turn a light entity on and the icon color changes from blue to yellow), or changing the icon for a person entity based on their location.

It’s even more frustrating that this cannot be done because its done automatically from some entity types like lights.

Isn’t it time this basic customisation was added to the HA core…?

Posts: 2

Participants: 2

Read full topic

Help configure Xiaomi MJDPL01YL Smart RGB Bulb

$
0
0

@galgamo wrote:

Hi!!

I am new with Home assistant. I have managed to install it and configure it with some magic home leds without problems reading the tutorials and help here.

Now I am trying to integrate a xiaomi smart bulb model MJDPL01YL. I have read this bulb is a Yeelight Color Bulb V2. I have configured it without problem with Xiaomi Home and it works great.

I have also read that other models need to be configured with the yeelight app and must be enabled LAN Control.

I didn’t managed to get it working with the yeelight app. I have resetted the bulb several times without success. So, no show in Home Assistant. I have also tried configuration in configuration.yaml as shown in the tutorials without succeed.

Help will be fully appreciated.

Thanks!

Posts: 1

Participants: 1

Read full topic

Alexa actionable notifications

$
0
0

@ashscott wrote:

I’ve been following this guide to set up Amazon Alexa actionable notifications and it’s really straightforward to configure and test.

However, where I’m stuck is that when including in automations, the script calls for the alexa_device to be specified (for the notification and response).

########### Alexa Scripts ###########
  activate_alexa_actionable_notification:
    description: 'Activates an actionable notification on a specific echo device'
    fields:
      text:
        description: 'The text you would like alexa to speak.'
      event_id:
        description: 'Correlation ID for event responses'
      alexa_device: 
        description: 'Alexa device you want to trigger'
    sequence:
      - service: input_text.set_value
        data_template:
          entity_id: input_text.alexa_actionable_notification
          value: '{"text": "{{ text }}", "event": "{{ event_id }}"}'
      - service: media_player.play_media
        data_template:
          entity_id: "{{ alexa_device }}"
          media_content_type: skill
          media_content_id: <amzn1.ask.skill.xxxxxxxxxxxxxxxxxxxxxx>

I have just one Echo Flex at the moment, for evaluating, and it’s not currently showing in HA, like my Google Homes do.

How do I add it to HA as a device?

Posts: 3

Participants: 2

Read full topic

Unable to downgrade

$
0
0

@tescophil wrote:

On the beta channel, updated to the latest versio 0.110.0b3, lots of stuff is broken, so left the beta channel and the UI prompted to update to version 0.109.6. All good so far…, only problem is that this did nothing…, the system rebooted after 10 mins or so, and I’m still on version 0.110.0b3.

So tried this on the command line

ha core update

then

ha core update --version 0.109.6

then

ha core update --version=0.109.6

then tried the last two with version 0.109.0…, they all spin the little progress wheel for 10 mins or so, rebooted, and yes…, you guessed it…, still on 0.111.03b

Any ideas ? (about to restore from a previous snapshot, as that’s the only thing I can think of…)

Posts: 1

Participants: 1

Read full topic

Viewing all 108504 articles
Browse latest View live


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