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

Can a numeric state trigger trigger off above and below values from another sensor?

$
0
0

@dwkoeller wrote:

Hi,

I am trying to setup a numeric state automation that triggers relative to a fixed offset on another numeric state sensor. I currently have a ventilation duct in my bedroom closet that draws hot air from a small rack of computer gear and dumps the excess heat into another closet where the AC air handler is located as to not bleed excessive heat into our bedroom over time. I want to trigger an automation for the power to the inline duct fan for this ventilation to kick on when the temperature in the closet exceeds 3 degrees above the temperature monitored near the cold cold air return in the hall and shuts off when the temperature achieves 1 degree above the return temperature in the hall as at that point the there is roughly an equilibrium relative to the current house temperature.

All the examples I see using the above and below directives are comparing to a fixed number. Is it possible to compare above and/or below to a variable numeric state value supplied by another sensor so the trigger points are relative to a variable set point?

Current hardcoded value automation

  alias: Ventilation On
  description: ''
  trigger:
  - above: '76.5'          # goal is to use (sensor.hall_temp + 3) instead of fixed value
    entity_id: sensor.master_closet_temp
    platform: numeric_state
  condition: []
  action:
  - service: switch.turn_on
    entity_id:
    - switch.ventilation_receptacle

-David

Posts: 2

Participants: 2

Read full topic


Homeatic Thermostat and aqara Temp sensor

$
0
0

@SpecialT wrote:

Hello,

I have installed my Homeatic thermostats today and I have also installed the Aqara sensors in the apartment. Now my question is how I can assign the temperature of the sensor to the HomeaticIP thermostat current temp? For the thermostats I use my own Raspberry with Raspberrymatic as bridge.
If I see this correctly in Homeassistant, generics are automatically generated for the thermostats.
Or do I have to create my own generic thermostats for the thermostats again?

Posts: 1

Participants: 1

Read full topic

HomeAssistant SSL error filling up logs

$
0
0

@ha_time wrote:

My home assistant logs are filling up with the following error:

Feb 29 09:56:59 hassbian hass[19211]: 2020-02-29 09:56:59 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error in data received
Feb 29 09:56:59 hassbian hass[19211]: Traceback (most recent call last):
Feb 29 09:56:59 hassbian hass[19211]:   File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
Feb 29 09:56:59 hassbian hass[19211]:     ssldata, appdata = self._sslpipe.feed_ssldata(data)
Feb 29 09:56:59 hassbian hass[19211]:   File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
Feb 29 09:56:59 hassbian hass[19211]:     self._sslobj.do_handshake()
Feb 29 09:56:59 hassbian hass[19211]:   File "/usr/lib/python3.7/ssl.py", line 763, in do_handshake
Feb 29 09:56:59 hassbian hass[19211]:     self._sslobj.do_handshake()
Feb 29 09:56:59 hassbian hass[19211]: ssl.SSLError: [SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert certificate unknown (_ssl.c:1056)

I am using the following in my configuration.yaml file:

http:
  ssl_certificate: /home/homeassistant/.homeassistant/cert.pem
  ssl_key: /home/homeassistant/.homeassistant/privatekey.pem

I have tried:

  • Recreating my cert and privkey, even though the cert was not expired
  • Chown and chmod on cert and privkey to make sure permissions are correct
  • Deleting all old refresh tokens on Web Interface…I noticed there were several
  • Adding ssl_profile: intermediate under http:
  • Updated from 0.103.2 to 0.106.2

I am not sure what else could be the issue. Is anyone else seeing this issue or know how to fix it?

Posts: 1

Participants: 1

Read full topic

MQTT Switch - value_template

$
0
0

@rak wrote:

Hi,

digging into MQTT and a switch.

switch:
  - platform: mqtt
    name: "Venus GX Relay 0"
    state_topic: "N/xxx/system/0/Relay/0/State"
    value_template: "{{ value_json.value == 1 }}"
    command_topic: "W/xxx/system/0/Relay/0/State"
    payload_on: '{"value": 1}'
    payload_off: '{"value": 0}'

The MQTT state is a json object. See Payload on/off.

I cant get the state extracted with the value template. Any help appreatiated.

Regards
Ralf

Posts: 9

Participants: 3

Read full topic

Automation for led to follow state of light

$
0
0

@beireken wrote:

I’m trying to use an LED (light.led1) to follow the state of a certain switch (switch.relay3) .
I can do this using two automations. One triggered by the switch coming on and setting the led on.
And a second one doing the inverse.

I do feel like this should be possible using only one automation, but i have no idea how.
It should basically monitor the change in state of the relay and set the led accordinly.

This would probably need templates? Well i’m no good at that so any help to start would be greatly appreciated!

Posts: 3

Participants: 3

Read full topic

MQTT auto discovery not working

$
0
0

@flipper999 wrote:

Hi,

I’m trying to get MQTT auto discovery working. I have the MQTT Mosquitto add-on and the MQTT integration installed. MQTT integration has “add new devices” switch turned on.
MQTT integration is configured to enable anonymous connections. I can connect with MQTT explorer on Windows. When I add the example in the documentation nothing happens.
(Example: Topic: homeassistant/binary_sensor/garden/config and payload: {“name”: “garden1”, “device_class”: “motion”, “state_topic”: “homeassistant/binary_sensor/garden/state”}

I have Home Assistant (hassio) running in docker on Ubuntu.

Logging config to see debug for mqtt:

logger:
  default: warning
  logs:
    homeassistant.components.mqtt: debug
    custom_components.my_integration: debug

I see this in the log:
2020-02-29 19:08:03 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to homeassistant/#
2020-02-29 19:08:04 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to homeassistant/#

But nothing more when publishing example to the mqtt add-on.

Documentation mentions adding this:

mqtt:
    discovery: true
    discovery_prefix: homeassistant

But that shouldn’t be needed when using the integration.
I couldn’t find the discovery_prefix the integration uses, but the log seems to indicate “homeassistant”. (Also i’m getting port in use messages when I do try to add this to configuration.)

Version Home Assistant (Core?): 0.106.1

Anybody got any idea what I am missing?

Regards, flipper.

Posts: 1

Participants: 1

Read full topic

Daily average temperature of a sensor

$
0
0

@not_a_coder wrote:

Is there a way to get a report of the average temperature in a day based on the temperature readings of a sensor and then to get daily historical data of that average? For instance, if the sensor reported 10 different temperature readings within 24 hours I would like to be able to get the total of the 10 readings from within a days period then divide that by 10 to get the average. Then I would like to be able to get daily historical data of that average.

I just implemented this platform: sql example and the Average Sensor Since 24 hours haven’t passed I don’t know what they will do after the 24 hours have passed. Does anyone know if I can use either of those to then get a daily record of the daily average or do I need yet a different solution to get what I need?

The Min/Max integration only does an average of two sensors and not an individual sensor which is why I never used that one.

Posts: 5

Participants: 4

Read full topic

Theme issue with tables display

$
0
0

@chemelli wrote:

Hi,

I use a theme that has a issue I would like to fix.

When natigating from home -> configuration -> integrations -> select a integration with devices (like Smartthings) -> search and rows are all white. Cannot see data, but of course those are there.

Which is the key in the theme yaml file to be changed to fix the issue ?
Thank you in advance,

Simone

Posts: 1

Participants: 1

Read full topic


Configuration validation hangs if there are capital letters in entities names

$
0
0

@IgorAntarov wrote:

It would be great to add a proper error message if there are capital letters in entities names in the config files.

As now config validation just hangs silently if there are something like “group.LivingLights:” in the scene files. The reboot button stops to work after that too.

I’ve updated my HA to v106.2 after long time, and you won’t believe how long it took to figure out the issue.

Posts: 2

Participants: 2

Read full topic

HACS (Home Assistant Community Store)

$
0
0

@Barak_Michaeli wrote:

Hi,
just want an explanation on this store, why its deferents from the official one?
are the integration there will sometime move to the official store? how thing works?
its complicate, there is a plan to migrate everything to the same store accessible without GitHub account and more straight forward approach ?

Posts: 5

Participants: 4

Read full topic

Updater still not functional on 106.2

Why do all the nodes come up as unkown?

$
0
0

@pullb0x wrote:

This is related to Zwave2MQTT if posted in the wrong forum I apologize.

When I setup Zwave2MQTT originally all the nodes showed up correctly with the actual names etc.
After a power outage and restart of the server the USB ports got switched.
After I figured that out Zwave and MQTT connected again.

What troubles me is why do all the nodes come up as unkown now? See picture
Is there somewhere a file/config I have to clear or update?

I appreciate any help/advice.

Additional Info.
I also noticed that in Node-Red the home-assistant node entities do not receive the updates now…
I assume that is related to the nodes not having any names anymore. Not sure.

From the Zwave2MQTT log:

2020-02-29 17:54:03.416 Warning, NotificationCCTypes::GetAlarmNotificationTypes - Unknown Alarm Type 7
2020-02-29 17:54:03.416 Warning, NotificationCCTypes::GetEventForAlarmType - Unknown AlarmType/Event 7/d
2020-02-29 17:54:03.416 Warning, NotificationCCTypes::GetAlarmType - Unknown AlarmType 7
2020-02-29 17:54:03.417 Info, Node007, Received Notification report (>v1): Type: Unknown (7) Event: Unknown (0) Status: true, Param Length: 0
2020-02-29 17:54:03.417 Detail, Node007, Refreshed Value: old value=1, new value=0, type=list
2020-02-29 17:54:03.417 Detail, Node007, Changes to this value are not verified
2020-02-29 17:54:03.417 Detail, Node007, Notification: ValueChanged
2020-02-29T22:54:03.417Z z2m:Zwave zwave node 7: changed: 113-1-7:Unknown:Unknown -> Unknown

Posts: 1

Participants: 1

Read full topic

Good article or doc about configuring logging?

$
0
0

@Alderete wrote:

Is there a good article about how to configure appropriate levels of logging for Home Assistant?

I’ve read through the doc topics on logger:, history:, recorder:, and so on, and I confess I still have a lot of questions. I’m not finding the information I need to create a sensible logging configuration.

Before I spend a lot of time on research and experimentation, is there already a good resource available? Maybe not official doc, but something elsewhere?

Questions I still have:

  • What is written where?
  • What is viewable where?
  • logger: vs. recorder: vs. history: vs. logbook:
  • Logbook vs. History vs. Log Viewer vs. Developer Tools > Logs vs. Supervisor > System > System log
  • What’s useful to save, vs. what’s not?
  • What are all of these different back ends, and why would I choose one over the others? Why would I change from the default?
  • If I’ve installed InfluxDB, and set it up with HA, how does that relate to the other logging?

And so on. There’s a lot to understand here, and I’m just not finding the details I (think I) need to make sensible configuration decisions. Thanks!

Posts: 2

Participants: 2

Read full topic

Unable to find referenced entities

$
0
0

@fabnavigator wrote:

Hi, I see a couple of warnings in my log after “Starting Z-Wave network…”

WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.master_bathroom_lights
WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.living_room_plant_plugin_outlet

I see both of these entities listed under configuration entities, and they working properly in Lovelace.

Any ideas why these two are generating a warning, and all of my others are fine?

Thanks,

Bill

Posts: 3

Participants: 2

Read full topic

A "list" based on certain events

$
0
0

@sh00t2kill wrote:

Hi all.

Im trying to display a list of “things” in HA, and take things in and out of that last based on a HA event.

I can see the events getting triggered for things i want to add to the list and remove from the list, I am just not sure of the best way to go about it.

A real world example might be:
Show me a list of all the people that are home, and curate that based on the status change from away -> home or home -> away

Thats not exactly what im trying to do, but its similar (and might actually be a cool thing to do as well!)

Thanks

Posts: 3

Participants: 2

Read full topic


Tasmota Telegram Arduino flashing

$
0
0

@oldsap wrote:

is there a video or step by step way to flash Sonoff basic with Tasmota and include the Universal Arduino Telegram Bot? i only need to have my Tasmotized Sonoff basic send a message through Telegram when it turns on/off without using HA

Thank you.

Posts: 2

Participants: 2

Read full topic

Ikea Symphonisk dimming lights

$
0
0

@probus wrote:

First of all thanks to who ever wrote ikea rotary encoder integration mentioned in the blog. Ever since I saw it I’ve wanted to test how it would work as a light dimmer.

So I bought the Ikea dimmer, connected it with zha and tried to control hue lights connected to a hue bridge. The setup was easy (thanks!) but the actual behaviour is not bery useful.
Anything beyond controlling a single light seems pretty much unusable.

Trying to dim a hue group sets all the bulbs to the same brightness instead of increasing or decreasing the individual bulbs brightnesses. The response is also quite slow.
When controlling individual bulbs the commands don’t stay in sync at all and the response is even slower. I’m guessing the bridge gets flooded with too may requests and starts dropping them.

Also the actual adjustment from the ikea dimmer behaves oddly. It doesn’t matter how fast or how long you spin the disc, the adjustment is always the same. I can keep spinning it like grazy for a minute and it adjusts a little. That combined with the slow response just doesn’t work at all.

Has anyone actually used this and gotten it to work? Would it help to move the lights to zha instead of hue bridge?

Posts: 2

Participants: 2

Read full topic

REST - xml support

Old Paradox Alarm System - control with "Service Keypad" control

$
0
0

@qntris wrote:

Hello guys,

I have an old Paradox Spectra 1727 alarm system and wanted to add it to my HomeAssistant setup so that I can arm/disarm it via the app/automation instead of using the physical keyboard.
The board lacks special serial I/O ports as in SP4000, SP5500, SP6000 and other models. However, I wondered whether I could use the “Service Keypad” serial pins (check the picture below), to control it:


My assumption is that if one can hook a keyboard to these pins, why shouldn’t an ESP8266 WiFi module mimic the same? Anyone knows whether these pins can actually be used for passing commands to the board or only serve logs collection purposes?
I have checked the following projects but they require newer board and I would like to first check whether I could use the current one (which may eventually require tweaking the sketch a bit):

Let me know if you think that the this board and the “Service Keypad” pins will work? Has anyone tried it?

Thank you in advance for your help!

Posts: 1

Participants: 1

Read full topic

Cant get humidity from tellstick sensor

$
0
0

@Mattie wrote:

I have these sensors in my ha when I list sensors from core_tellstick:

TellStick list-sensors success -> 
type=sensor	protocol=mandolyn	model=temperaturehumidity	id=11	temperature=19.1	humidity=36	time=2020-03-01 10:42:13	age=47
type=sensor	protocol=mandolyn	model=temperaturehumidity	id=12	temperature=6.5	humidity=43	time=2020-03-01 10:42:16	age=44
type=sensor	protocol=fineoffset	model=temperature	id=119	temperature=20.2	time=2020-03-01 10:42:50	age=10
type=sensor	protocol=fineoffset	model=temperature	id=238	temperature=23.1	time=2020-03-01 10:42:18	age=42
type=sensor	protocol=mandolyn	model=temperaturehumidity	id=13	temperature=10.9	humidity=49	time=2020-03-01 10:42:02	age=58
type=sensor	protocol=oregon	model=1A2D	id=39	temperature=20.5	humidity=36	time=2020-03-01 10:42:42	age=18
type=sensor	protocol=fineoffset	model=temperature	id=228	temperature=23.0	time=2020-03-01 10:41:25	age=95

In my configuration I have the config below, everything shows up except the humidity for id 13… What am I missing here? :frowning:

sensor:
  - platform: tellstick
    temperature_scale: "°C"
    datatype_mask: 1
    only_named:
      - id: 12
        name: Utomhus
      - id: 228
        name: Vardagsrum
      - id: 119
        name: Sovrum 1
      - id: 39
        name: Sovrum 2
      - id: 11
        name: Overvaning
      - id: 13
        name: Krypgrund
        protocol: mandolyn
        model: temperaturehumidity

Posts: 2

Participants: 1

Read full topic

Viewing all 108527 articles
Browse latest View live


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