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

Automation with multiple template conditions

$
0
0

@Valiceemo wrote:

I’m trying to have an automation trigger at a specific time, if one of 2 conditions are met…and I’m failing

- id: '1582138911675'
  alias: Bin reminder
  description: ''
  trigger:
  - at: '19:51'
    platform: time
  condition:
  - condition: template
    value_template: '{{ (state_attr(''sensor.grey_bin'', ''days'')|int) == 1}}'
  - condition: template
    value_template: '{{ (state_attr(''sensor.green_bin'', ''days'')|int) == 1}}'
  action:
  - data:
      message: Bins
      title: Home Assistant
    service: notify.pushbullet

I’ve been away from HA for a while so I’m very rusty!
I’d also like to have the pushbullet notification message read either grey or green bin, based on which condition triggered it?
I canake it work using 2 separate automations, but feel like it can be achieved in 1?
Any help much appreciated

Posts: 6

Participants: 2

Read full topic


MQTT Dimmer using state_value_template works in the template tester but not in config

$
0
0

@BurntTech wrote:

Any one have any ideas on getting a dimmer to work states? I tried using single quotes around numbers and not but doesn’t change anything. I have debug logging turned on but nothing appears to be an issue.

Export of the json used in homeassistant/light/dimmer-3f91181/config

{
    "name": "Master Bed Light Switch",
    "command_topic": "homie/dimmer-3f91181/dimmer/dimmer/set",
    "brightness_command_topic": "homie/dimmer-3f91181/dimmer/dimmer/set",
    "brightness_state_topic": "homie/dimmer-3f91181/dimmer/dimmer",
    "state_topic": "homie/dimmer-3f91181/dimmer/dimmer",
    "state_value_template": "{ '0' if value == '0' else '100' }",
    "on_command_type": "brightness",
    "brightness_scale": 100,
    "payload_on": 100,
    "payload_off": 0
}

Posts: 4

Participants: 2

Read full topic

Need help setting up remote access with SSL with my own domain

$
0
0

@invinciberry wrote:

First of all, I am very new to home assistant and have limited knowledge about networking.

I am in the process of setting up my remote access to HA with SSL.
Currently, I have remote access since I forward 8123 to my public IP and have my router set up with duckdns. So I can access my HA without SSL. But from what I understand Google Assistant only works with a domain with SSL and self-signed duckdns certificate only last 3 months (?).

So I bought a domain and plan to use it to remote access HA (and maybe more in the future). I already looked through the configuration guide, but it says my home router needs to support custom DNS entries which mine does not (I am using a Ubiquiti UDM pro).

So what should I do? Can I still set up remote access with my own domain? Any guide that might help me thought the process?

Posts: 1

Participants: 1

Read full topic

From HA to SmartThings

$
0
0

@sd_dracula wrote:

So I have the Smartthings integration configured in HA and that works fine, all my ST devices show up and work as expected in HA.
Can I somehow go the other way around? Get a few devices to show up from HA into SmartThings (the way you can add HA devices to Alexa)
I need to get a gate switch from HA to show up in SmartThings so I can open it from my Galaxy watch (from the SmartThings app on that)

Posts: 1

Participants: 1

Read full topic

Philips hue controling temperature of 2 spotlights together

$
0
0

@tom_el_camino wrote:

Hi all,

in developer Tools i see my entity “spotjes” which is a combination of 2 spotlights.

‘’’
[light.spotjes]
on
min_mireds: 153
max_mireds: 500
effect_list: colorloop,random brightness: 252
color_temp: 373
is_hue_group: true friendly_name: spotjes
supported_features: 63

‘’’
in Developer Tools when I click the “i” I can change the color temperature,
but when I create a card and use that entity, I can only control the color_temp of each spotlight separately. Am i missing how I can control color temp of both together through lovelace ui or do I have to start diving in the config file?

thanks !

Tom

Posts: 4

Participants: 2

Read full topic

Trådfri open/close remote dosnt appear in deCONZ

$
0
0

@Smus wrote:

So the Trådfri open/close remote, dosnt appear in the deCONZ interface when paired… I can see it in HA with the default name of ‘tradfri_open_close_remote’. When i add a second open/close remote, it will get the same name.
I can change the ID of the remote, because i cant see it on the list in deCONZ.
Anyone have some suggestions? or tried similar?

Posts: 1

Participants: 1

Read full topic

Service call_method squeezebox with data_template

$
0
0

@axgio wrote:

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Posts: 1

Participants: 1

Read full topic

Cannot install pyozw

$
0
0

@ArkansasAutomator wrote:

I am trying to install the z-wave integration but its not working. I’m on a RP3+ running Raspbian buster. Since I could not install it via the browser app, I tried to install it directly, again, without success. Here are the error messages:

(homeassistant) pi@PrtSrvr:/srv/homeassistant $ sudo pip install homeassistant-pyozw
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting homeassistant-pyozw
  Using cached https://files.pythonhosted.org/packages/10/19/e0d934ab6b7f02d1bb7a2e6aa8c9d311357050c669264ecf598c8ea9b9bc/homeassistant_pyozw-0.1.8.zip
Collecting Louie>=1.1 (from homeassistant-pyozw)
  Using cached https://files.pythonhosted.org/packages/f2/f8/f9dfd97003f1c120dca1ed4dc9e3e16b74b583ce5bcb2d9b013142b6bee2/Louie-2.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-4NGwUu/Louie/setup.py", line 3, in <module>
        from louie import version
      File "louie/__init__.py", line 1, in <module>
        from . import dispatcher, error, plugin, robustapply, saferef, sender, signal, version
      File "louie/dispatcher.py", line 44
        f"Louie connects: {connects}\n"
        ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-4NGwUu/Louie/

Any suggestions to correct this will be greatly appreciated.

Posts: 2

Participants: 2

Read full topic


Input_select clash with Alexa

$
0
0

@Jon_Miles wrote:

I am looking to use input_select for a couple of settings, but I have a problem as I am also using Alexa integration which also uses input_slect which means although I have set it up in the config yaml file, it is only picking up the Alexa ones.

is there a way to have aa second instance of input select?

Many thanks

Posts: 1

Participants: 1

Read full topic

Spotify integration via nabu casa

$
0
0

@craigy wrote:

i am trying to make the new Spotify integration to work via the nabu case url. Following the instructions, I set the Spotify dev app call back to the nabu casa
url (replaced the actual with x’s https://xxxxxxxxxxxxxxxx.ui.nabu.casa/auth/external/callback

When I check the integration url callback, it has the local IP address sent in the authentication request. How can I force the integration to send the nabu casa url? I don’t use the HTTP integration mentioned in the configuration example for the integration.

Is this possible via nabu casa or do I need to directly expose the HA install to the internet to get this to work?

Posts: 1

Participants: 1

Read full topic

Error when adding new Danfoss Devolo Home Control Radiator Thermostat

$
0
0

@puzzlewolf wrote:

Hi everyone,

I am a new user of home assistant, so I am starting from a new home-assistant installation.
I am using the current stable docker image, 0.105.5, and a Z-Wave (Sigma Designs) USB stick.
The USB stick seems to work fine, as far as I can tell.

When adding a first z-wave device, a Devolo Home Control Radiator Thermostat, the following errors are logged:

2020-02-20 00:28:55 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_add_entity
    capabilities=entity.capability_attributes,
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 181, in capability_attributes
    self.hass, self.min_temp, self.temperature_unit, self.precision
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 490, in min_temp
    DEFAULT_MIN_TEMP, TEMP_CELSIUS, self.temperature_unit
  File "/usr/src/homeassistant/homeassistant/util/temperature.py", line 31, in convert
    raise ValueError(UNIT_NOT_RECOGNIZED_TEMPLATE.format(to_unit, TEMPERATURE))
ValueError:  is not a recognized temperature unit.

and multiple times:

2020-02-20 00:28:55 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 273, in async_update_ha_state
    f"No entity id specified for entity {self.name}"
homeassistant.exceptions.NoEntitySpecifiedError: No entity id specified for entity Danfoss Devolo Home Control Radiator Thermostat Heating 1

Also, in Z-Wave Control Panel / Z-Wave Node Management for the new node, only the entities
sensor.danfoss_devolo_home_control_radiator_thermostat_battery_level and sensor.danfoss_devolo_home_control_radiator_thermostat_temperature show up.
I tried heal network and heal node a couple of times.

I think a climate.* entity should also be there. There is a github issue (https://github.com/home-assistant/home-assistant/issues/29844) with the same symptom, but it is closed, so something else must be amiss here :thinking:

FWIW, the configuration.yaml is

# 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

the included files empty.

Any ideas what’s going on here?

Posts: 1

Participants: 1

Read full topic

Integrate command line tool to control a receiver

$
0
0

@gui wrote:

Hello
I’m running home assistant on a raspberry pi 3b+.
I want to control my onkyo receiver next to the raspi. There is this command line tool for raspberry pi which does exactly that.
It’s python code which outputs the data on a GPIO pin that connects to the receiver.

How would I go about running this tool in home assistant?

Maybe this is interesting to other people too, because this tool allows you to control RI (Remote Interactive) compatible devices.

Posts: 5

Participants: 3

Read full topic

Motion Sensor controlled by a webhook camera

$
0
0

@Cavekeeper wrote:

My goal is a motion sensor that is controlled via a webhook. The following scenario: a camera sends a webhook, e.g. “Motion Detected” at HA. Here I have a motion sensor with which I can create further automation.
I have solved it so far that a webhook triggers automation directly and thus my switch, which is turned off after 5s.
Now I want to solve it a little more elegantly and simulate the movement switch using webhook. In principle, this will probably be a binary sensor. I just don’t know how to link it to a webhook.
How could I do that? I would be grateful for a few ideas.

Posts: 10

Participants: 3

Read full topic

Solax integration - specifying network device in config.yaml

$
0
0

@wvw wrote:

Hello all,
Apologies if I don’t make much sense here - I am new to Linux, home assistant and yaml files!

I am trying to get my solax inverter data into HA, via the pocket WiFi on the unit and the solax integration. I have connected the WiFi of my hardware directly to the inverter WiFi network (5.8.8.8), and have tested via a curl command to see if I get the correct response, which I do, so I know that provided I point HA at the inverter WiFi, I should get the data the integration needs. The lan connection of my intel nuc which runs HA is connected to my home network, therefore I can only get the data from the WiFi connection.

So, if I put the 5.8.8.8 ip address into the solax integration, I get a discovery error and timeout, which suggests it’s trying to connect via the lan (noting that I do also have the solax connected to the lan, for feeding data to the solax cloud). Is there a way to tell the integration to use the wlan connection rather than the lan connection? Is there a prefix I could use which will force it to use the WiFi connection?

Thanks in advance for any help you can give.

Posts: 1

Participants: 1

Read full topic

Trying to sanitize configuration.yaml and have a question about !secret replacement

$
0
0

@mattlward wrote:

How would I take the following username and password out and replace it with a !secret value? It should take 4 entries in the secrets.yaml file.

command_on: echo 'sudo docker exec addon_40817795_nut upscmd -u AAAA -p BBBB,sa drups test.battery.start.deep' | sshpass -p XXXXXXX ssh YYYYYY@192.168.1.6

Thanks Matt

Posts: 7

Participants: 3

Read full topic


MDI Icon not turning yellow when light is on

$
0
0

@Caswell1000 wrote:

Hi,

I just updated my Hass to the latest release and also updated the Operating system to the latest (3.11), after the update, my icons are no longer turning yellow when on, they stay gray as below:

My device tracker icons have also formed into a group within the body of the UI instead of being on top: :frowning:

image

What can I adjust to return to the previous setup.

Regards
CN

Posts: 9

Participants: 4

Read full topic

Automate sleeptime in weekend with set_datetime

$
0
0

@Gaijin66 wrote:

Hello everyone,

I have an issue i can’t resolve. Also I did not find any solution in the community. I try to put the lights out at a time that the user puts in via a input_datetime. I have a seperate time in the weekend. I use the following components in configuration.yaml:

sleeptime:
  name: Bedtijd
  has_time: true
  icon: mdi:sleep
  initial: '02:00'

sleeptime_weekend:
  name: Bedtijd weekend
  has_time: true
  icon: mdi:sleep
  initial: '04:00'

I use the following code in automations:

- id: '1579458127123'
  alias: Test
  description: ''
  trigger:
  - entity_id: input_datetime.sleeptime
    platform: state
  condition:
  - condition: template
    value_template: '{{ trigger.to_state.state != trigger.from_state.state }}'
  action:
  - data_template:
      time: {{ states('input_datetime.sleeptime') | timestamp_custom('%H:%M:%S', false) }}
    entity_id: input_datetime.sleeptime_weekend
    service: input_datetime.set_datetime

{{ states(‘input_datetime.sleeptime’) | timestamp_custom(’%H:%M:%S’, false) }} gives the correct time in the template editor. However it is not accepted in the time argument of input_datetime.set_datetime.

I hope anyone can help. Thanks in advance.

Posts: 10

Participants: 4

Read full topic

No effects list in wled info

$
0
0

@elle2 wrote:

After an update to Home Assistant Core 0.105.4 I have no more the list of effects into the info pop-up for a wled light.

I have the sliders for brightness and color temp, and also the colors selector but there isn’t the list to choose light effects as I had until previous release 0.104

Is there anyone with the same issue?

Posts: 1

Participants: 1

Read full topic

Stream to Google Nest Hub / Lenovo Smart Clock not working

$
0
0

@leofuscaldi wrote:

Hi Friends,

Have a problem and didn`t find a way to solve it, so, I’d like to ask for some help.

I Have a setup with a Gigabyte Brix as server, Ubiquiti Amplifi HD as router, a Google Nest Hub, a Lenovo Smart Clock and a RTSP camera.

I’m trying to stream from the camera to the Screens but it doesn’t work. It takes lots of seconds to play somethig. Then, when it works (it’s not always), it plays one second, sometimes two… and then starts to try buffering something, black screen. Buffering, black screen… and never shows anything!

If I try to open the stream directly on lovelace, it has some delay, but it opens (if I choose the SD feed, it plays. When I choose the HD feed, it doesn’t).

If I try to open the stream directly on VLC on the same computer, it plays without prolbems.

My camera config block goes as following. Have tried many different ways already…

camera:
  - platform: generic
    name: "Entrada do Predio"
    still_image_url: https://imagefrominternet.jpg
    stream_source: rtsp://login:pass@192.168.1.3:554/cam/realmonitor?channel=1&subtype=1
    framerate: 7
    verify_ssl: false
    

Thanks in advance!

Posts: 1

Participants: 1

Read full topic

Statistics water usage for the day, since 00:00:00 in the morning to midnight

$
0
0

@Jack_Kitley wrote:

Hello all

Im battling to record how much water i use in a day. my current state is the current volume of water as an int value.

The water meter works on a pulse and is defined in tasmota as a counter. My state in home assistant is the counter value…

Does anyone know how i can display what ive used for the current day.

Thanks


- platform: mqtt
state_topic: "tele/water_meter/SENSOR"
name: water_total
value_template: "{{ value_json.COUNTER.C1 }}"
- platform: template
sensors:
water_meter_litre:
friendly_name: "Water Meter in Lt"
unit_of_measurement: 'lt'
value_template: "{{ (states('sensor.water_total')|int * 5) | round(2) }}"
water_meter_kilolitre:
friendly_name: "Water Meter in kL"
unit_of_measurement: 'kL'
value_template: "{{ ((states('sensor.water_total')|int * 5) / 1000) | round(3) }}"

Screenshot 2020-02-20 at 16.21.04

hf7tkz48x1i41 8z3pbjy7x1i41

From the above i would like to get a daily usage.

Posts: 2

Participants: 2

Read full topic

Viewing all 105515 articles
Browse latest View live


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