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

Philips Hue sml002 sensor occupancy?

$
0
0

@Ambidexter wrote:

Hi,

I’m happy with the Phillips SML002 outdoor motion sensor, with temp, alarm, and lux. But when use an automation, I test the entity which shows up in Lovelace as “clear” (no motion) or “detected” (motion), what do I use for a trigger?

I try to use the following, it never triggers:
trigger:

  • entity_id: binary_sensor.philips_sml002_0656b03a_2_1030
    platform: state
    to: ‘on’

Should I be using the “clear” and “detected”, true or false, or what?

I know I can see the current state of a binary sensor, but can I see all states that any entity accepts?

Thanks,
Ambi

Posts: 2

Participants: 2

Read full topic


Problems with sensor statistics

$
0
0

@Jon_Miles wrote:

Up until recently, I was able to display the mean temperature in a history graph to smooth out any variations in temperature.

However, i am now getting: Entity not available: sensor.xxxxxx with all the entities I am using the Statistics Sensor on a gauge card.

also nothing shows in the history graphs

Posts: 2

Participants: 2

Read full topic

Nordpool component not updating

$
0
0

@bonterra wrote:

Is anyone else having trouble with the Nordpool custom component found here?

It worked fine until a few weeks ago, I updated HASS and at the same time cloned the most recent version from github. Since then it hasn’t been working at all. According to the log the component loads and initializes but then it says
INFO (MainThread) [custom_components.nordpool.sensor] api returned junk infinity None
It then goes on to update the sensor for today and tomorrow but the sensor doesn’t show up in HASS.

Posts: 2

Participants: 2

Read full topic

Help Needed - Hassio json templating with jinja - processing incoming data

$
0
0

@Cloolalang wrote:

Hassio configuration
json templating with jinja - processing incoming data.
How to loop through a json values array to trigger a sensor.
value_template syntax:

Hassio: 0.100.2
R Pi.

Device: NodeMCU with WIFI Sniffer:

https://github.com/SensorsIot/Wi-Fi-Sniffer-as-a-Human-detector/tree/master/WiFi_Sniffer

Hey all,

Im wondering if anyone smarter than me (most of you) can help me quickly;

I want an alternative device tracker for my HA setup, sniffing all probe requests in my location.

My sniffer is up and running but now I need to extract the MAC address data for my sensor.

I need help with the json value template:

The Sniffer sends the following json over MQTT

{
    "MAC": [
        "b8:69:f4:0c:3a:7b",
        "ba:69:f4:0c:3a:7b",
        "80:7d:3a:42:d4:1b",
        "3c:15:c2:e9:16:08",
        "4c:17:44:04:ed:d4",
        "d8:0f:99:82:08:14"
    ]
}

I need to extract these MAC address out to trigger a sensor if a particular MAC address is anywhere in the array, Im not sure how to write the syntax so it loops through the array

something like this:

- platform: mqtt
    name: "My mother-in-law in in the area!"
    state_topic: "Sniffer"

    value_template: >-
    {%for i = 0; i < MAC.length; i++; x += MAC[i]%}
    {%- endfor %}

    payload_on: "b8:69:f4:0c:3a:7b"
    payload_off: 
    qos: 1   

Cheers
P

Posts: 3

Participants: 2

Read full topic

HC-SR04 in Postbox

$
0
0

@knorian wrote:

I am a newbie in HA. short to the project. I would like to install a HC-SR04, on a d1 mini with tasmota, in a post box, so that I get an info if it is full. Values in HA ​​are already shown to me. I do not, however, realize that the correct status is displayed to me. it is always displayed fully

#postkasten
  - platform: template
    sensors:
      postkasten:
        friendly_name: "Postkasten"
        value_template: >-
          {% if is_state('sensor.sonoff_sr04_distance', '> 10') %}
            leer
          {% else %}
            voll
          {% endif %}
        icon_template: >-
          {% if is_state('sensor.sonoff_sr04_distance', '> 10') %}
            mdi:email
          {% else %}
            mdi:email-check
          {% endif %}

Thanks!

Posts: 2

Participants: 2

Read full topic

History and Logs Lagging by 6 Days

$
0
0

@cmjennnings21 wrote:

I seem to have lost history and log files in real time. I’ve tried removing the db and restarting and then suddenly found some history from 6 days ago, but is showing todays events? Does anyone have an idea of what I have done?

.I’m currently running Hass.io on raspberry PI3B and Home Assistant 0.100.3. relative newbie too

Posts: 2

Participants: 2

Read full topic

Generic Thermostat + Automation

$
0
0

@smi wrote:

Hi!

I’m using generic thermostat (with Sonoff Mini) to control the temperature.

My config looks like this:

climate:
  - platform: generic_thermostat
    name: Zentralheizung
    heater: switch.main_heater_relay
    target_sensor: sensor.motion_lf_livingroom_temperature
#    target_temp: 23
    min_cycle_duration:
      seconds: 900
    cold_tolerance: 0.5
    away_temp: 18
    hot_tolerance: 0.3
    precision: 0.1

I had to comment out the target_temp as it sometimes overwrote my automation.

The automation sets a target_temp at a specific time and also sets the preset mode to home and none (when not at home).

After I commented out the target temp in the config, the thermostat didn’t switch to away_temp which it did when I had a target temp set in the climate config.

Is this really necessary?
I just want the target temp set by the automation and also only at specific times (not from - to) so I can still edit these manually in the UI.

Thanks

Posts: 1

Participants: 1

Read full topic

Questions about yeelight bulb

$
0
0

@maurizio53 wrote:

Actually i have the yeelight lights component not automatically discovered and put for every bulb a static IP in my router and in configuration.yaml.
If i change the config to discover them automatically, am i still forced to put the static IP for all those lights or not?

Posts: 1

Participants: 1

Read full topic


Access point doesnt show up with nmcli wifi rescan

$
0
0

@Mike_H wrote:

Hi

I wanted to move my homeassistant box which is a PI3+ running Hass.io. At the moment it’s connected to a BT Smart Hub and has connected to 2.4Ghz. The new BT Smart Hub has 2.4GHz and 5GHz under a single SSID, its not possible to split them with the latest hub, but it doesn’t seem to be an issue, all works fine.

I want to relocate the PI to another property which has a Unifi Access point, supporting 2.4GHz and 5GHz under a single SSID. But when I carry out the nmcli Wifi Rescan and list the available access points, all the neighbouring access points show up but not my Unifii Access point.
The access point is working fine, its SSID is not hidden, it already has multiple devices attached to it including another PI3+.

When I’m at the new property I connect to the PI3+ using Lan0 to allow me to get the SSH Console to execute the nmcli commands.

Anyone got a clue to what I’m missing.

Cheers

Mike

Posts: 1

Participants: 1

Read full topic

Play Spotify on old speaker

$
0
0

@Vinz87 wrote:

I have an old speaker with a Nobsound amplifier which adds Bluetooth functionality, I can use it for example to play Spotify from my iPhone or from Spotify on my LG smart tv.

I would like to use it as a media player in Home Assistant (e.g. for automatically start playing Spotify at wake up in the morning).

I’m doing a little research and it seems to me that is currently not possible to use a Bluetooth speaker to play music from Home Assistant.

What are my options? Should I convert it into an Alexa/Google enabled smart speaker? With which additional devices?
Is it confirmed that bluetooth is not an option for music in Home Assistant?

Thanks

Posts: 8

Participants: 3

Read full topic

Lovelace Card Mod deprecated - how to reconfigure?

$
0
0

@fribse wrote:

Hi All

I have set up all the Youtube guys I follow in a card.
Each has a config like this:

  - color_type: icon
    entity_picture: |
      [[[ return states['sensor.repairguydk'].attributes.entity_picture ]]]
    label: |
      [[[ return states['sensor.repairguydk'].state ]]]
    layout: icon_name_state2nd
    name: |
      [[[ return states['sensor.repairguydk'].attributes.friendly_name ]]]
    show_entity_picture: true
    show_label: true
    show_name: true
    tap_action:
      action: url
      url: |
        [[[ return states['sensor.repairguydk'].attributes.url ]]]
    type: 'custom:button-card'

This almost works.
I get the name, and the entity picture shown, and the label set.
But the URL stopped working?
I went to the lovelace card mod repository, and found out that it was deprecated, and “all functions are integrated into lovelace now”.

But what is wrong with the config as is?

Posts: 4

Participants: 4

Read full topic

Heating season starting date in template/History Statistics Sensor

$
0
0

@Dimster wrote:

I would like to count heater running hours starting every 01 August. Currently I set up the following code for the sensor:

- platform: history_stats
    name: Heater running hours
    entity_id: sensor.input3_state
    state: '1'
    type: time
    start: '{{ now().replace(year=(now().year-1)).replace(month=8).replace(day=1).replace(hour=0).replace(minute=0).replace(second=0) }}'
    end: '{{ now() }}'

I understand that it counts now not only this season but also takes last year. I would like to find solution for excluding last year if the current date is in between August-December.

Need your help!

Posts: 2

Participants: 2

Read full topic

Transmission component not working in 0.100.3

$
0
0

@wormoworm wrote:

Hi
I’m having trouble getting the transmission component to work in v0.100.3.
Here’s my yaml:

transmission:
  host: 10.0.1.1
  port: 9091
  name: Transmission
  username: [u/n]
  password: [p/w]
  scan_interval: 10

When I restart HA, I see that setup of Tranmission is successful:

2019-10-25 11:31:59 INFO (MainThread) [homeassistant.setup] Setting up transmission
2019-10-25 11:31:59 INFO (MainThread) [homeassistant.setup] Setup of domain transmission took 0.0 seconds.

But, later on, the connection times out:

2019-10-25 11:32:30 ERROR (MainThread) [homeassistant.components.transmission] Request failed. Original exception: HTTPHandlerError, "HTTPHandlerError 600: urllib2.URLError: timed out"

I am able to connect to Transmission using the Transmission Remote GUI Windows application using the same host, port, username and password combination, so I know that Transmission is working, reachable at that address and authenticating connections with those credentials.

Any ideas what might be the problem?

Thanks,
Tom

Posts: 1

Participants: 1

Read full topic

"Entity not available" forced rediscovery

$
0
0

@Winni wrote:

Hi,

I’ve got TP-Link HS110 power switch in my HA setup. When it is available it basically works fine. Problem is, that the power switch is in a corner of my apartment, which has very bad Wifi reception due to lots of eletronic devices near it. So sometimes HA simply loses the connection and disables the switch in my HA setup. That, to me is a minor problem, as HA rediscovers it after some time automagically.

The problem is, when I restart HA and the power switch is not reachable during the startup of HA, which causes a “Entity not available” and basically stays this way until I restart HA again and it is able to reach the switch again.

Is there a way to perform a rediscovery of a specific entity, without rebooting the whole HA instance and even if the entity wasn’t reachable during startup of the HA system?

Any advise is highly appreciated.
Thanks!
Winni

Posts: 1

Participants: 1

Read full topic

Xiaomi sensors over GW in connection with Z-Wave

$
0
0

@ir0fl wrote:

Hi there,

I started with hassio and I like it in general.
The integration of the Xiaomi Gateway (v3 I guess) worked.

I got some sensors here which I would like to use together with Z-Wave components and in general I would like to get an idea, how to set up automated progresses.
For e.g.: lm <200, motion detected -> do this or that.
Or I have a door sensor on the garage door and if there is a timeframe reached while it is opened without any movement inside, then the Z-Wave component should be activated to close the door.
I hope you got a picture of what I am trying to achieve and give me a hint or two.:wink:

Thank you very much in advance.

Posts: 2

Participants: 2

Read full topic


Set BT speaker on Google Home

$
0
0

@Strixx wrote:

I have connected my Google Home Mini to a BT-speaker. But sometimes it drops the speaker, and I need to go to the app and set the BT-speaker as my default speaker again. It is still paired.

Any one now if I can make an automation in HA to check if the default speaker is the BT-speaker and if not select it as the default speaker?

Posts: 1

Participants: 1

Read full topic

Nest thermostats no longer being recognized

$
0
0

@FutureTense wrote:

A couple of days ago my thermostats stopped showing in HA. I deleted them and attempted to read them with Integrations and am getting the following message from nest

Oops! We’ve encountered an error. Please try again.

I removed 2FA and am getting the same message. I’m hesitant to change to google authentication yet (even though I’m using google for assistant, etc)

Is there a procedure for adding my thermostats again?

Posts: 1

Participants: 1

Read full topic

Influxdb sensor - simplejson.errors.JSONDecodeError: Expecting value

$
0
0

@daxm wrote:

I’m trying to set up a influxdb sensor, but no matter how I do the configuration, I get this error in home assistant:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 442, in wait_for
return fut.result()
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/influxdb/sensor.py”, line 85, in setup_platform
sensor = InfluxSensor(hass, influx_conf, query)
File “/usr/src/homeassistant/homeassistant/components/influxdb/sensor.py”, line 124, in init
influx.query(“SHOW SERIES LIMIT 1;”)
File “/usr/local/lib/python3.7/site-packages/influxdb/client.py”, line 456, in query
data = response.json()
File “/usr/local/lib/python3.7/site-packages/requests/models.py”, line 897, in json
return complexjson.loads(self.text, **kwargs)
File “/usr/local/lib/python3.7/site-packages/simplejson/init.py”, line 518, in loads
return _default_decoder.decode(s)
File “/usr/local/lib/python3.7/site-packages/simplejson/decoder.py”, line 370, in decode
obj, end = self.raw_decode(s)
File “/usr/local/lib/python3.7/site-packages/simplejson/decoder.py”, line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

The config is:

- platform: influxdb
    host: 192.168.2.56
    port: 443
    ssl: true
    verify_ssl: false
    username: dario
    password: !secret influxdb_password_2
    queries:
      - name: power usage it systems
        unit_of_measurement: W
        value_template: '{{ value | round(1) }}'
        group_function: last
        where: '"host" = ''srv-ubn-services-1'''
        measurement: '"ups"'
        field: ups_load_perc
        database: telegraf_data

Any idea what I’m doing wrong?

Posts: 1

Participants: 1

Read full topic

Track any Device_tracker in NodeRed

$
0
0

@jhavens12 wrote:

Hi All -

I’m tried of adding individual device_trackers to my nodered workflow to get notifications of state changes. Does anyone have any clever workflows that would take any device tracker from the group.all_devices and give a notification on state change?

This would prevent me from having to open up nodered every time I want to add a new device to get notifications for.

Thanks

Posts: 1

Participants: 1

Read full topic

Unable to Access HA

$
0
0

@altf4 wrote:

Hello everyone,

Thank you for taking the time to read this and giving me a hand, I just started and I’m bummed by what just happened. I’ll try to keep it clear and simple.

What I’m trying to do:
Access my HA via http://hassio.local:8123 (or any other address).

What I get:
I’ve tried on different machines and browsers but the result is either an error or infinite loading with usually the following error displayed:


I once got the HA logo and an error message that it was not able to access with a retry button (I apologize the message was displayed shortly I didn’t have time to take a screenshot).

What I’ve tried:

My Configuration:

  • Raspberry Pi 3 B+
  • Hass.io (installed following the “getting started” instructions
  • Aeotec Z-Stick Gen5
  • The installation worked fine and I did not change anything in my config file. I actually did not change anything, I got everything working and setup, did not touch anything, tried to reconnect a few weeks later and got this error.
  • I did not check the exact version of Hass.io but I did a fresh install on 10/16/19 and did not change anything since.

Posts: 10

Participants: 4

Read full topic

Viewing all 95314 articles
Browse latest View live


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