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

Is this Zigbee power strip faulty or does it require further setup?

$
0
0

I recently purchased one of these Zigbee Power Strips. I assumed it would work out of the box once connected with HA.

However only one of the sockets can be controlled by HA. All the others report their state fine but flicking the switch in HA has no effect.

I’m new to Zigbee, is there something extra i need to / can do to get full control of this device or is it faulty?

I tried to have a play around with the Clusters but I don’t know what i’m doing and could only get the switch that already works to do anything.

Here is a video: https://youtu.be/hXI1SIQixBk

1 post - 1 participant

Read full topic


Sonoff zigbee bridge lost devices when in ZHA mode

$
0
0

Dear all,

I’ve flashed my sonoff zigbee bridge following instruction here:

I’ve added it to HA and paired with devices. After around two days all devices became unavailable. I’ve re-added them, but after another one or two days I lost them again and now bridge is not visible by HA. Any ideas? I’m using firmware 9.0.2. When I was using original firmware, it was stable and was working for few weeks without any issues.

Thanks
Bartek

1 post - 1 participant

Read full topic

HTTPS Secure Connection - Dehydrated

Tesla summon with Home Assistant automation, anyone did it?

$
0
0

Is this possible?

Basically now from a smartphone you can move your Tesla from a parking lot (without beeing inside the car), so if the API are there this could be integrated into Home Assistant.

Anyone knows?

https://www.tesla.com/it_IT/blog/summon-your-tesla-your-phone?redirect=no

What I would do with an automation

at 8:00am (for example), set a internal temperature of the Tesla, open the garage door, moves the Tesla out of the garage, opens the front gate moves the car outside of the house.

Anyone did something similar? API available for Summon?

1 post - 1 participant

Read full topic

Multiple MQTT discovery prefixes

$
0
0

Hi All,

I have been wondering if it possible for the home assistant to have multiple discovery prefixes. This is to ensure that I can develop several devices with appropriate naming for the prefix. Just to have better readability. However, I wonder if there is a possibility to do so in the configuration.yaml.

The current idea that I have in my is to have a node-red function to modify the published discovery message from my device lineup, then re-publish them with the topic that home assistant does the discovery.

I am all ears to have an input on this matter. Thanks in advance.

1 post - 1 participant

Read full topic

One Integration, Multiple HA Installs

$
0
0

I have Smartthings (ST) integration working (under HA v116.4) mostly without issues. I now want to create a copy of my HA install and run it on a separate RaspPI and use it as a test environment. The 2nd install is a mirror of my main install with the exception of the IP address. Here is the problem:

When my test install started up I lost my ST integration on my main install. Even after shutting down the test and restarting the main could I reconnect to ST. I had to delete ST Integration and start over.

My question is: Is it even possible to have one ST integration (same ST Account) running on more than one RaspPi at the same time?

1 post - 1 participant

Read full topic

Brightness issue with int in automation

$
0
0

Hello, I want to set brightness (and colors, but the issue is the same) from variables. For example I have variable configured: bedroom_lights_color_bright.

I’m doing this:

data:
  brightness: '{{ states(''input_number.bedroom_lights_color_bright'') | int }}'
  rgb_color:
    - 0
    - 0
    - 255
entity_id: light.bedroom
service: light.turn_on

It will fail with message:

BedroomWallSwitchToggle: Error executing script. Invalid data for call_service at pos 1: expected int for dictionary value @ data['brightness']

state is correct. For instance this (to test) sends correct value (eg: “test 123”):

data:
  message: 'test {{states(''input_number.bedroom_lights_color_bright'') | string}}'
service: telegram_bot.send_message

I’ve read most a lot of threads and examples. Besides in https://www.home-assistant.io/integrations/input_number/
example says:

data:
          entity_id: light.bedroom
          brightness: "{{ states('input_number.bedroom_brightness') | int }}"

I’ve tried different quotes, with and whiteout them.

Eg: doing like this

data:
  brightness: {{ states(''input_number.bedroom_lights_color_bright'') | int }}

will be saved as:

brightness:
  '[object Object]': null

What am I missing? Obviously something simple.

1 post - 1 participant

Read full topic

Using Input_select in automation - action

$
0
0

I am trying to use input select to choose which camera i pan…cant figure this out…

without the input_select, for individual camera, this works. it will pan ‘camone’ accordingly ;

panright:
  sequence:
  - service: onvif.ptz
    entity_id: camera.camone
    data:
      pan: RIGHT
      zoom: ZOOM_IN
      distance: 0.1
      speed: 0.5
      continuous_duration: 0.5
      preset: 1
      move_mode: ContinuousMove

So i wanna be able to select which camera that i pan (either camone or camtwo). input_select.cctvlist is either ‘camone’ or ‘camtwo’.
But the one below doesnt work. How can i achieve this?

cctvlist:
  name: CCTV List
  options:
    - camera.camone
    - camera.camtwo
  initial: camera.camone
panright:
  sequence:
  - service: onvif.ptz
    entity_id: input_select.cctvlist
    data:
      pan: RIGHT
      zoom: ZOOM_IN
      distance: 0.1
      speed: 0.5
      continuous_duration: 0.5
      preset: 1
      move_mode: ContinuousMove

1 post - 1 participant

Read full topic


Check if power is below 2W and send notification automation

$
0
0

Hello there,

What I am trying to achieve: I have a blitzwolf shp13 zigbee plug, which has 3 different entities. One is for on/off, other is for total consumption in kWh, last one is current consumption (Watts). I need it to send me notification if it drops below 2W, indicating that the device I was charging is fully charged. I am trying to create a sensor that check if its below 2W (that being the TRUE state) or if not below 2W (FALSE state).
The sensor I created appears fine and I get no errors in config, but it always stays at TRUE, no matter if it is at 0 watts or 100 watts or anywhere in between. What am I doing wrong? Code and picture of device sensor and my created sensor below.

  - platform: template
    sensors:
      charging_done:
        friendly_name: 'Charging done'
        entity_id: 
          - sensor.charging_station_wattage
        value_template: "{{ states('charging_station_wattage') | float < 2 }}"

If 0 watts


If anything more than 2 watts

2 posts - 2 participants

Read full topic

Button card configuration on Firefox/iOS mobile app issues - help?

$
0
0

I spent some time trying to mimic the tado tiles, on macOS/Firefox it looks good:

However, on the iOS mobile app, the humidity and CO2 values are not showing and the icon is not correctly positioned:

Code for one tile is:

type: 'custom:button-card'
entity: sensor.tado_cloud_heating_temperature
name: Living
show_state: true
show_icon: false
aspect_ratio: 6/4
styles:
  grid:
    - grid-template-areas: '"i" "n" "s" "set" "hum"'
    - grid-template-columns: 1fr
    - grid-template-rows: 1fr min-content min-content min-content min-content min-content
  state:
    - justify-self: start
    - padding-left: 10px
    - font-size: 150%
    - font-weight: bold
    - color: white
  name:
    - justify-self: start
    - padding-left: 10px
    - font-size: 70%
    - font-weight: bold
    - color: white
  custom_fields:
    set:
      - justify-self: start
      - padding-left: 10px
      - font-size: 70%
      - font-weight: bold
      - color: 'rgba(255,255,255,0.7)'
    hum:
      - justify-self: start
      - padding-top: 10px
      - padding-left: 8px
      - font-size: 60%
      - font-weight: bold
      - color: white
custom_fields:
  set: |
    [[[
      return `<span>Set to ${states['climate.tado_cloud_heating'].attributes.temperature}°</span>`
    ]]]
  hum: |
    [[[
      if (states['climate.tado_cloud_heating'].attributes.current_humidity > 65)
        var icon_color = 'rgb(255,128,102)';
      if (states['climate.tado_cloud_heating'].attributes.current_humidity <= 65)
        var icon_color = 'rgb(255, 222, 0, 40)';
      if (states['climate.tado_cloud_heating'].attributes.current_humidity < 35)
        var icon_color = 'rgb(18,136,194)';
      if (states['sensor.co2_living_median'].state > 2000)
        var icon_color_co2 = 'rgb(255,128,102)';
      if (states['sensor.co2_living_median'].state <= 2000)
        var icon_color_co2 = 'rgb(255, 222, 0, 40)';
      if (states['sensor.co2_living_median'].state < 1000)
        var icon_color_co2 = 'rgb(154,205,50)';
      return `<span><ha-icon
          icon="mdi:water"
          style="width: px; height: 12px; color: ${icon_color};">
          </ha-icon>` + `${states['climate.tado_cloud_heating'].attributes.current_humidity}%
          </span>
          <span><ha-icon
          icon="mdi:tailwind"
          style="width: px; height: 12px; color: ${icon_color_co2};">
          </ha-icon>` + Math.round(states['sensor.co2_living_median'].state) + ` ppm`
    ]]]
state:
  - styles:
      card:
        - background-color: 'rgb(18,136,194)'
    operator: <
    value: 19
  - styles:
      card:
        - background-color: 'rgb(255,128,102)'
    operator: '>='
    value: 25
  - value: 25
    styles:
      card:
        - background-color: 'rgb(255, 203, 0, 40)'
    operator: <

Not sure what is wrong, I was thinking either the grid template row setting, I have no clue what it should be, just messed around until it looked OK on Firefox. That or either perhaps the javascript is not run since the values are not showing either.

Anyone who has enough knowledge to spot the issue(s)?

1 post - 1 participant

Read full topic

Weird MQTT behaviour

$
0
0

Hi,

I have added my solar charger to HA using MQTT, I can see the messages coming in on MQTTfx and via the HA MQTT integration by listening on the topic. The strange think is that only one of the entries appears in entities, the others are not detected?

I have created an MQTT sensor config which is being read OK as I used to use it with a different MQTT schema and all the entities were detected?

I have no errors coming up on the configuration check to indicate a code issue.

The only entity which is detected is the EPSolar Charger Temperature which shows up as sensor.epsolar_charger_temperature.

Any ideas what is wrong? I could know where to start if I had a code error warning or non of the entities were detected and added, but the fact that one is confuses me!

My MQTT file is as follows:

#####################################

EPEver Solar Charger MQTT Section

#####################################

##########################

EPEver Solar

##########################

  • platform: mqtt
    name: “High Voltage Disconnect”
    state_topic: “EPSolar/1/highdisc”
    unit_of_measurement: ‘V’
  • platform: mqtt
    name: “Battery Capacity”
    state_topic: “EPSolar/1/batt_cap”
    unit_of_measurement: ‘A’
  • platform: mqtt
    name: “Battery Charging Limit”
    state_topic: “EPSolar/1/batt_chargelimit”
    unit_of_measurement: ‘A’
  • platform: mqtt
    name: “Over Voltage Reconnect”
    state_topic: “EPSolar/1/batt_overvoltrecon”
    unit_of_measurement: ‘V’
  • platform: mqtt
    name: “Battery Equalisation Voltage”
    state_topic: “EPSolar/1/batt_equalvolt”
    unit_of_measurement: ‘V’
  • platform: mqtt
    name: “Battery Boost Voltage”
    state_topic: “EPSolar/1/batt_boostvolt”
    unit_of_measurement: ‘V’
  • platform: mqtt
    name: “Battery Float Voltaget”
    state_topic: “EPSolar/1/floatvolt”
    unit_of_measurement: ‘V’
  • platform: mqtt
    name: “Battery Boost Reconnect”
    state_topic: “EPSolar/1/batt_boostrecon”
    unit_of_measurement: ‘V’
  • platform: mqtt
    name: “Low Voltage Reconnect”
    state_topic: “EPSolar/1/batt_lowvoltrecon”
    unit_of_measurement: ‘V’
  • platform: mqtt
    name: “Battery Under Voltage Reconnect”
    state_topic: “EPSolar/1/batt_undervoltrecon”
    unit_of_measurement: ‘V’
  • platform: mqtt
    name: “Battery Under Voltage Warning”
    state_topic: “EPSolar/1/batt_undervoltwarn”
    unit_of_measurement: ‘V’
  • platform: mqtt
    name: “Low Voltage Disconnect”
    state_topic: “EPSolar/1/batt_lowvoltdisc”
    unit_of_measurement: ‘V’
  • platform: mqtt
    name: “EPSolar Charger Temperature”
    state_topic: “EPSolar/1/ctemp”
    unit_of_measurement: ‘°C’
  • platform: mqtt
    name: “Battery Temperature”
    state_topic: “EPSolar/1/btemp”
    unit_of_measurement: ‘°C’
  • platform: mqtt
    name: “Solar Panel Voltage”
    state_topic: “EPSolar/1/pvvoltage”
    unit_of_measurement: ‘V’
  • platform: mqtt
    name: “Solar Panel Current”
    state_topic: “EPSolar/1/Ipvcurrent”
    unit_of_measurement: ‘A’
  • platform: mqtt
    name: “Solar Panel Watts”
    state_topic: “EPSolar/1/pvpower”
    unit_of_measurement: ‘W’
  • platform: mqtt
    name: “Solar Battery Remaining”
    state_topic: “EPSolar/1/bremaining”
    unit_of_measurement: ‘%’
  • platform: mqtt
    name: “Solar Battery Voltage”
    state_topic: “EPSolar/1/bvoltage”
    unit_of_measurement: ‘V’
  • platform: mqtt
    name: “Solar Battery Current”
    state_topic: “EPSolar/1/battChargeCurrent”
    unit_of_measurement: ‘A’
  • platform: mqtt
    name: “Solar Battery Watts”
    state_topic: “solar/battery/P”
    unit_of_measurement: ‘W’
  • platform: mqtt
    name: “Solar Load Current”
    state_topic: “EPSolar/1/lcurrent”
    unit_of_measurement: ‘A’
  • platform: mqtt
    name: “Solar Load Watts”
    state_topic: “EPSolar/1/lpower”
    unit_of_measurement: ‘W’

Steph

1 post - 1 participant

Read full topic

Configure zigbee reporting

$
0
0

Hi there,

i am looking for a way to configure the reporting of zigbee devices. Especially, set reporting for a cluster attribute that is not set to reporting by default on a device.

Thanks for any pointers :slight_smile:

1 post - 1 participant

Read full topic

Monitoring Sensor Status (i.e. Online / Offline)

$
0
0

Are others monitoring the availability / online status of their sensors? I’d like to be alerted when any of my zwave or zigbee sensors stop reporting so that I can investigate and fix ASAP. I imagine some automation that checks a list of sensors at some interval for a timestamp of the last known report and alerts if it’s longer than, say, 12 hours (bonus: configurable by device). By “report” I mean some heartbeat signal, NOT the last open/close/motion event. I have some sensors that may not be triggered for months, but I still need to know that they are online and reporting.

Currently using zwave2qtt and the Home Assistant MQTT integration which works great, but I’m not seeing any “last report” info. I know z-wave devices have some concept of a heartbeat signal (i.e. wake from sleep). Any idea how I can obtain that? Same for zigbee. I have a bunch of Aqara sensors that I’ll probably pair w/ conbee/deConz. Any idea how I can obtain device report data via that?

I’m attempting to build a highly secure and reliable security system and I see this as a requirement. I’d be interested to hear any other thoughts you might have about building a security system using Home Assistant. I know lots of people will say “don’t do that. integrate a 3rd party alarm system instead”. I’m not opposed to that and may well do that, but right now I’m giving this custom solution a shot. So, please only constructive replies/ :slight_smile:

1 post - 1 participant

Read full topic

What can I really do with temperature sensors?

$
0
0

Hi guys, I’m new to this “world” and I’d like to automate my house more and more. The first thing I’d like to do is to automate my heating system. What I’d like to do is put a wifi thermometer (like Xiaomi Mijia or Shelly H&T) and an electric switch (Shelly 1 or Sonoff). I want my automation to read the temperature only at different time of day depending by the day, then if the temperature is low turn on the switch to heat the room, if the temperature is too high turn off the heating.


this is a sketch of what I’d like to do. Is it possible in HA? What hardware do i need to make it work best? Do i need to use automations, scenes or something like that? Sorry if this may seems elementar but I can’t really understand of HA works and how to make something if some other thing happens, and there’s no detailed guide I could find. Thanks.

3 posts - 3 participants

Read full topic

No User option under Configuration

$
0
0

Hi all,

I am totally new to Home Assistant. I have installed HA on a Raspberry Pi using the image (hassos_rpi3-4.14.img.gz) and this worked fine. I created a user account as ask to do during the setup. I then installed Mosquitto Broker from the Add-in-Store. The Mosquitto documentation says to create a user by go Configuration->Users, but when I go to Configuration I cannot find the User option. I have tried Googling the problem and I have seen people having the same problem but never a solution. The configuration section does have an option called ‘People’ but I am not sure this is same thing.

Can anyone suggest what my problem is?

Thanks

Ernie

2 posts - 2 participants

Read full topic


Configuring Presence Sensors in Lovelace (color change on state and hiding a toggle)

$
0
0

So, I’ve got a set of presence sensors. The first is within Home Assistant itself. The second two are SmartThings and using the Integration for that. The last one (Family) is a simple switch which is on when someone is home and off when no one is home. (I use a Node-Red flow to make that work and inform me when any status changes)
However, I’d really like my HA presence sensor to be yellow when I’m home and blue when I’m not. (All the others do that.) I can’t quite figure out how to write a template that would do that.
Second, I wonder if there is some way to hide the on/off toggle on the Family collective sensor. Any time the status changes it’s recomputed but I’d like to prevent the possibility of accidentally toggling it off or on and confusing the system. (My intent to to code some interactions with motion sensors and the like to use this collective sensor so they only report to me if no one is at home.)
Any suggestions on coding the templates to make one or both of these things happen?

1 post - 1 participant

Read full topic

Pause media_player when a phone call is received

$
0
0

When receiving a phone call, I would like to pause any media that is currently played on the television (if possible) and show a notification an the TV. Ideally the notification should be shown for as long as the phone is ringing. If the phone call is ended I would like to resume the media_player that was paused to resume playing.

My issue is that multiple media_players control the TV. It could be:

  1. the Samsung TV itself integrated via the HACS integration - media_player.samsung_q85_tv
  2. Plex Client running on the Samsung TV - media_player.plex_plex_for_samsung_tv_gq65q85rgtxzg
  3. the Shield TV settop box - media_player.shield_tv
  4. Plex Client running on the Shield TV - media_player.plex_plex_for_android_tv_shield_android_tv
  5. Chromecast on the Shield TV - media_player.shield_tv_cast

From the first I cannot retrieve information about whether or not a video is currently played via Plex, Netflix and co. It can only tell if the TV is 'on'/'off' and which source is selcted (including Apps selected). So it will show that Plex, or Netflix is opened, but does not know, if a video is currently playing in those apps. But the Plex Client on the Samsung TV can be controlled.
The fourth and the fifth do not need to be considered in my opinion, as the Android TV integration already covers everything. It gives a statement about which app is currently running and can pause/resume.

I have started to create a simple automation, which works:

- alias: Media - Pause Plex when Call is Received
  id: 'media_pause_plex_on_call'
  trigger:
    - platform: state
      entity_id: 
        - sensor.phone
      to: 'ringing'

  action:
    - service: media_player.media_pause
      entity_id: media_player.shield_tv
    - service: notify.shield_tv
      data:
        title: "Phone"
        message: "Incoming call from {{ state_attr('sensor.phone', 'from_name') }} ({{ state_attr('sensor.phone', 'from') }})"
        data:
          transparency: 85%
          duration: 5

The notification is send via Notifications for Android TV integration.
To introduce further media_players, I would some how need to evaluate, which of the once is currently playing media, remember that entity, pause media on this entity and later on resume media on the remembered entity (plus idealy show the notification not static for 5 seconds, but for the duration the phone is ringing).

Any suggestions how to realize this in Home Assistant?

1 post - 1 participant

Read full topic

Locker light sensors - how to make it working in esphome

$
0
0

Hello,
I have lot of spare Wemos D1 mini china boards.
So, in a free time I would like to automate my lockers to catch opening doors and switch the light relay.
When the lockers were installed months ago, I have prepared installation - so I have LED strips and sensor switches builded into furniture.

I have tried to do it with binary_sensor esphome component but I have 2 problems:

  1. Here I am writing about one sensor - sensor/small switch with 2 cables (wires) and I suppose that I have to connect one wire to any voltage source - for example 3,3v on Wemos D1 mini board and the second wire to any GPIO input? Or maybe should each wire to separate GPIO input?
    Or, maybe, one sensor will need 2 GPIO ports, and should it work this way?

  2. When I made a prototype it tooks very long to change state - and sometimes, when I have connected wires fastly - there won’t be any entry in log - about changing state.

That is board which I have: https://alselectro.files.wordpress.com/2018/04/d1_pinout.jpg?w=640

Thank you for any ideas in advance
regards

1 post - 1 participant

Read full topic

HA wont load, CLI error and cant connect to server

$
0
0

Hi All,

I’ve just had a power cut and it messed up my HA ( so I thought) so after several hours of searching I decided to format and start again… but now I still cant get it to load up. When I connect my PI 3B+ to a monitor and keyboard, log in as root I get a list of messages the last sayin that it could not connect to some server and that there was an issue with CLI ( whatever that is) …

Can anyone help me? or point me in the direction of help? ive had a look on this forum and found one that says they have a similar issue which turned out to be either a faulty eithernet cable or a time error so it couldn’t connect to HA servers to get the most recient version but I cant see how they solved the problem and it was an old post

thank you for your help and time.

Robin

1 post - 1 participant

Read full topic

.Bat Remote Control and Basic integration

$
0
0

Hello Community!

I’m a brand new user, I discovered the solution 2 days ago. I went throught a lot of videos and tutorials but I still need help to figure it out how to configure HassOS 4.15 0.116.4 in the most efficient way.

For a project, I need to play 2 different music files (they can be triggered independently), mixed them together and stream them over HTTP.
To do that, I’m using 3 different instances of VLC running on a windows machine, 2 for independent playback outputting to a virtual output. Then the virtual output is routed to a virtual input used by the 3rd instance to transcode and stream over HTTP. That part is working like a charm except for the 2 seconds delay to transcode the stream.

So far, I managed to control the 2 different playback instances of VLC remotely under Home Assistant using the vlc_telnet platform.

First thing that I’m trying to do is to be able to launch remotely a batch file, to run the VLC instances, using a switch. I’m struggling to find a proper solution. The documentation nor examples on the Internet are not really user friendly and self-explanatory but if you can give me some clues, I’ll be grateful.
Second thing, less important, would be to go further in the playback management. I would love to manage to lower the volume of the first media file for few seconds while playing the second. I’m looking for the events and scripts but I’m not at this step yet.

Looking for your inputs!

Thanks.

1 post - 1 participant

Read full topic

Viewing all 105921 articles
Browse latest View live


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