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

Philips Sensor not working on deCONZ

$
0
0

Hello all.

I have a Philips Hue Sensor as well the Philips bridge. I was not happy with the latency I was getting from the sensor, it always took 1 to 3 seconds to have motion detection triggered on HA.

I read somewhere that getting the sensor setup outside of Philips bridge and use deCONZ would make things better and faster, so I got a Conbee II for that.

However, when I pair the sensor with deCONZ, it only gathers the battery level data, it does not return data for motion, temperature or light. See here: https://share.getcloudapp.com/o0uq62kB

This is the first time I try a Conbee II, so I’m a bit lost here. Although, pairing the sensor was very straightforward.

TIA

1 post - 1 participant

Read full topic


No Status Change?

$
0
0

New to HA and have things working OK, but I have no status change on lights and switched when toggled by Alexa or the physical switch? If I toggle switch via HA its all good, but if I toggle via Alexa, the state of the switch or lite never changes in HA.

1 post - 1 participant

Read full topic

File editor, Event Observer?

$
0
0

Hello,
I’m trying to catch some zwave events for my HA conf.
So I went in the file editor, try the Event Observer

By default, there is the url ws://supervisor/homeassistant/api/websocket
and many ****** in the api password field.

When I click on “connect” nothing hapen, no error… there is a “!” in upper right…

Is there something to configure for this addon to work ?

Thanks

1 post - 1 participant

Read full topic

History stats - what is wrong?

$
0
0

Hi all
I need some help in order to record for how long my water heater switch was on the last 24 hours.

I have made the following sensor

  - platform: history_stats
    name: water heater time on
    entity_id: switch.sonoff_100099b6de
    state: 'on'
    type: time
    end: '{{ now().replace(hour=0, minute=0, second=0) }}'
    duration:
      hours: 24  # Yesterday: ends today at 00:00, lasts 24 hours

I also have the following notify.yaml

  - platform: file
    name: filenotify6
    filename: /config/water heater per day.csv
    timestamp: true

and finally this automation

- id: Water Heat daily file       
  alias: Water Heat daily file
  #initial_state: 'off'
  trigger:
    platform: time
    at: '23:50:00'
      
  condition: []

  action:
    - service: notify.filenotify6
      data_template: 
        message: "{{ states.sensor.water_heater_time_on.state }}"

So my purpose is to record in a csv file each night the time that the switch was on.

Yesterday the switch was on for 38 minutes.
However in the csv file I got 0.00

This morning the in developers tool - states I see that the state of the sensor is 0.64
So now I am wondering what is wrong with the above setup and in the excel file I have 0.00 instead of 0.64.

I am not sure but I think the problem is with the history stats and how I set the time I need to expose.
Should I change it to

end: '{{ now().replace(hour=0, minute=0, second=0) }}'
duration:
  days: 1

I have one more question but right now about this, but this is the first I need to solve.

1 post - 1 participant

Read full topic

Help With a RESTful sensor please

$
0
0

I have defined a sensor like this:

 - platform: rest
   name: inverterarchive
   resource: http://192.168.1.129/solar_api/v1/GetArchiveData.cgi?Scope=System&StartDate={{ (as_timestamp(now())-300)|timestamp_custom("%Y-%d-%mT%H:%M:%S") }}+2:00&EndDate={{ as_timestamp(now())|timestamp_custom("%Y-%d-%mT%H:%M:%S") }}+2:00&Channel=Voltage_DC_String_1&Channel=Voltage_DC_String_2  

   json_attributes:
     - Body
   value_template: '{{ value_json.value }}'
   headers:
     Content-Type: application/json
   scan_interval: 120
  
 - platform: template
   sensors:
     voltage_dc_string_1:
       friendly_name: 'Voltage_DC_String_1'
       value_template: "{{state_attr('sensor.inverterarchive','Body')['Data']['inverter/1']['Data']['Voltage_DC_String_2']['Values']['130']}}"
       unit_of_measurement: 'V'
 - platform: template
   sensors:
     voltage_dc_string_2:
       friendly_name: 'Voltage_DC_String_2'
       value_template: "{{state_attr('sensor.inverterarchive','Body')['Data']['inverter/1']['Data']['Voltage_DC_String_2']['Values']['130']}}"
       unit_of_measurement: 'V'

Now when checking the resource in the developer template i get the correct path , something like:
http://192.168.3.129/solar_api/v1/GetArchiveData.cgi?Scope=System&StartDate=2020-12-12T10:20:58+2:00&EndDate=2020-12-12T10:25:58+2:00&Channel=Voltage_DC_String_1&Channel=Voltage_DC_String_2

Which in turn gives a response like:

{
	"Body" : 
	{
		"Data" : 
		{
			"inverter/1" : 
			{
				"Data" : 
				{
					"Voltage_DC_String_1" : 
					{
						"Unit" : "V",
						"Values" : 
						{
							"130" : 588.89999999999998
						},
						"_comment" : "channelId=66049"
					},
					"Voltage_DC_String_2" : 
					{
						"Unit" : "V",
						"Values" : 
						{
							"130" : 151.20000000000002
						},
						"_comment" : "channelId=131585"
					}
				},
				"DeviceType" : 232,
				"End" : "2020-12-12T09:37:49+02:00",
				"NodeType" : 97,
				"Start" : "2020-12-12T09:32:50+02:00"
			}
		}
	},
	"Head" : 
	{
		"RequestArguments" : 
		{
			"Channel" : 
			[
				"Voltage_DC_String_1",
				"Voltage_DC_String_2"
			],
			"EndDate" : "2020-12-13T09:37:49+02:00",
			"HumanReadable" : "True",
			"Scope" : "System",
			"SeriesType" : "Detail",
			"StartDate" : "2020-12-12T09:32:50+02:00"
		},
		"Status" : 
		{
			"Code" : 0,
			"ErrorDetail" : 
			{
				"Nodes" : []
			},
			"Reason" : "",
			"UserMessage" : ""
		},
		"Timestamp" : "2020-12-12T09:38:03+02:00"
	}
}

The problem is that whatever i do i can not get the Voltage_DC_String_1 and Voltage_DC_String_2 values stored under the “130”, so the 588 and 151 Volts in the above example.

The error that comes first is “UndefinedError: ‘dict object’ has no attribute ‘inverter/1’”

Also the 130 under which the Volt value is stored changes at each request and i have no ideea how to template that :frowning:

Can someone please help me to make some progress ?

Thank you !

1 post - 1 participant

Read full topic

Netatmo Indoor Siren support

$
0
0

Hi there.

Has there been any progress on implementing support for the Netatmo siren? Currently, the Indoor Camera doesn’t show up at all using the netatmo integration. Hoping to use the siren, which I find quite decent, with HA automations.

Appreciate the hellp

2 posts - 2 participants

Read full topic

MQTT Light Effects List Name

$
0
0

Hi everyone - I’ve recently purchased and flashed tasmota onto an LED light strip.

Everything is up and running as expected, however there is one slight UI detail I haven’t been able to figure out.

How do I convert the ‘Scheme’ from numbers to something more human-readable. I’ve been playing around with the effect_value_template in the config but haven’t had any luck. (Simply changing the yaml config from numbers to strings changes it in the UI but makes it so the light doesn’t respond to any selections).

This is how it currently looks in the UI:

This is my yaml config

- platform: mqtt
  name: TV LED
  availability_topic: "tele/TVLED/LWT"
  command_topic: "cmnd/TVLED/POWER1"
  state_topic: "stat/TVLED/RESULT"
  state_value_template: "{{value_json.POWER}}"
  brightness_command_topic: "cmnd/TVLED/Dimmer"
  brightness_state_topic: "stat/TVLED/RESULT"
  brightness_value_template: "{{value_json.Dimmer}}"
  brightness_scale: 100
  rgb_command_topic: "cmnd/TVLED/Color2"
  rgb_state_topic: "stat/TVLED/RESULT"
  # RGB<->RGBWW conversion
  rgb_value_template: >-
    {% set red = (value_json.Color.split(',')[0] | round(0)) %}
    {% set green = (value_json.Color.split(',')[1] | round(0)) %}
    {% set blue = (value_json.Color.split(',')[2] | round(0)) %}
    {% set white = (value_json.Color.split(',')[3] | round(0)) %}
    {{ red + white }},{{ green + white }},{{ blue + white }}
  rgb_command_template: >-
    {% if red==green and red==blue %}
      0,0,0,{{ red }}
    {% else %}
      {{ red }},{{ green }},{{ blue  }},0
    {% endif %}
  effect_command_topic: "cmnd/TVLED/Scheme"
  effect_state_topic: "tele/TVLED/STATE"
  effect_value_template: "{{value_json.Scheme}}"
  effect_list:
    - 0
    - 1
    - 2
    - 3
    - 4
  payload_on: "ON"
  payload_off: "OFF"
  payload_available: "Online"
  payload_not_available: "Offline"
  qos: 1
  retain: true

Thank you in advance!!

1 post - 1 participant

Read full topic

Zigbee sonoff Bridge reset via MQTT

$
0
0

Hi My Bridge is geting indisponible resulto for some sensor after a some time whitout a reset.
ther is a way to send a MQTT comand to reset it once a week?

1 post - 1 participant

Read full topic


Un-cropped snapshot images with Companion app notifications on Android

$
0
0

Hi,

Hopefully a quick question.

I was using www/config to store my snapshots, and in the notification parameters I included a clickAction with the full URL that is externally accessible. This works, I get the cropped thumbnail, and if i click it I get the full image in chome (can zoom and everything).

On reading the documentation again, i learned of media_source integration, and would like to use this to secure those images.

I don’t think the documentation quite covers how to click into to open up the image if using media-source integration…
Only that the ClickAction for android needs to be externally accessible - well i’m unsure how exactly the media-source integration works here. I get unathorised 401 when i try this - i think because the click action is opening the image in Chrome and not within the home companion app.

I also have iOS notifcations for my partners device, actually the way it works there would be OK for me on Android.
The key difference is on iOS if you hold press on the thumbnail you get a scaled but full view (un-cropped) of the snapshot.
on Android I have not found how to do this, in the notifications it is a scaled AND cropped thumbnail, and unfortunately for me it will always crop the part of the image which actually shows the front door - easily the most important bit.

So i don’t mind how i do it on android, so has anyone else got full snapshot image viewing using media-source integration on the home companion notifications?

please tell me how you did it,

Thanks,

1 post - 1 participant

Read full topic

Problems with Current measurement socket

$
0
0

Hello all,

I run Home assistant via Docker on my homebuilt NAS. Currently I am trying to log the consumption of my fridge with a “Blitzwolf SHP-13 (TuYa TS0121)”. Unfortunately it does not update the values correctly.

I hear that the fridge is running, but I don’t see any change or update of the values in the graph. It looks as if the SHP-13 transmits the values only unsteadily to HASS.

Is there a trick in the configuration?

1 post - 1 participant

Read full topic

Not getting SensorBinary report, why?

$
0
0

My new Neo Coolcam motion sensor (NAS-PD03Z) doesn’t seem to send SensorBinary reports upon detecting movement, or at least it’s not mentioned in the log. It does send an alarm report. Due to this, the motion binary sensor in HA doesn’t work.
The OZW log states:
Received Alarm report: type=0, level=0, sensorSrcID=0, type:Burglar event:8, status=255

The older model of the Neo Coolcam sends both the alarm report and the SensorBinary report, for these the OSW log states:
Received SensorBinary report: Sensor:12 State=Off

This is missing for my newer model, even though the manual states "Once the sensor detects a movement, it will send “NOTIFICATION_REPORT” and “SENSOR_BINARY_REPORT” to the nodes lifeline to inform there is an intrusion event. Anyone any idea how to enable/fix this?

1 post - 1 participant

Read full topic

XBee integration

$
0
0

Good morning,
I would like to use an Arduino Fio to read the values ​​of a temperature and humidity sensor (DHT22) and send the data through the serial port where I have connected an XBee module previously configured as an API router in the XCTU and in the PAN ID 22.

My intention is to receive the data by another XBee module configured as an API coordinator in the same PAN ID with the XCTU. This module will be connected to the raspberry pi where the home assistant is installed.

I tried to integrate with ZHA following all the steps and it is not possible to integrate the sensor (XBee Router) in the home assistant, I don’t know if I have to specify the PAN ID in the configurations or add something else.

I leave you the configurations made in configuration.yaml. Thank you very much!.

zha:
usb_path: /dev/ttyUSB0
database_path: /config/zigbee.db
baudrate: 9600

1 post - 1 participant

Read full topic

Hassio on raspberry pi 4 - how to add external usb drive?

$
0
0

Hello all,

I am running hassio on a raspberry pi 4 and I want to add an external USB drive to store the captured video files from motioneye and any other produced bulk data (snapshots, etc).

I need to be able to:

  1. Format the external USB Drive with ext4 FS (Linux native).
  2. Mount permanently (persist across reboots) the USB Drive to a folder.

I do not want to boot from the USB Drive.

I’ve been searching for over an hour google and the forums about this topic and could not find any straightforward solution to this very trivial task.

Any guidance would be appreciated.

1 post - 1 participant

Read full topic

Help with Motioneye backup and restore and path

$
0
0

Hi, I could really use some help with Motioneye (0.10.2).
I just reinstalled all my HA and I have all the configs for Motioneye.
I used to run HA on a docker and now I use Hassos 5.6 on a Pi4 with ssd.
So, where are the Motioneye configuration files now??? I just found a /share/motioneye with only directories, no config files??

Also, I am not able to perform any restore, even if I just hit backup and restore, I believe it has something to do with the log error “Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.1 Safari/605.1.15)
INFO: restoring config from backup file
ERROR: failed to restore configuration: tar: invalid magic
tar: short read”

No clue how to restore my old configuration and I have 10 cams, please help!

1 post - 1 participant

Read full topic

Please help with setting up automation with Hassalarm

$
0
0

Hello,

I only started using Home Assistant yesterday. I would like to ask you for help with setting up automation. I use Hassalarm (https://github.com/Johboh/hassalarm) to send information about the next alarm to HA. This works well. I need to set the light bulb to light up at the same time as the alarm is set. Then to light for 45 minutes and then to turn it off. I’ve been trying to set it for a few hours, but the light bulb doesn’t light up. I am setting the type of trigger - time - the value of the helper date and time - the action to turn on the light bulb - the action to delay 40min - the action to turn off the light bulb.

1 post - 1 participant

Read full topic


Toggle to control all entities in Horizontal Stack card?

$
0
0

kitchen

Currently added all my kitchen lights like the image above - However the main toggle only controls the 7 lights in the first grid.

Is there anyway I could get the main toggle to comtrol all 14 lights?

1 post - 1 participant

Read full topic

Fibaro smart implant with ZWAVE2MQTT & Node red

How often should I expect a Zigbee device to "call home"?

$
0
0

I have several Zigbee devices (temperature sensors, switches, light sensors, …). They are connected to HA via Zigbee2MQTT and I see them sending some information from time to time (even when the state did not change, like for a switch that has not been used for quite some time but still was last seen a few minutes ago.

This “Last seen” time is between an hour and “just now”.

Except for one - a water leak sensor. It has been seen last time a week ago.

First test: put it in “water leak” mode by short-circuiting the sensors. Nothing is reported.

After pressing its button, it reported back (with a battery level of 100%) and the water leak test was successful.

This worries me somehow, especially for a device such as this one. As a workaround, I will add to my monitoring a check on the “last seen” of these devices but as a general question: how often should a Zigbee device call home to report its state?

2 posts - 2 participants

Read full topic

Creating a source select switch

$
0
0

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

1 post - 1 participant

Read full topic

Tizen samsung, power toggle, state

$
0
0

Hi All,

I havethe samsun tv tizen customa addon which exposes a media_player entity and works using the media player love lace card.

I want to expose the ability to toggle the power on and off to Alexa and also have an on and off button on my tileboard that holds the state. I can’t seem to figure it out.

If i use a script like this it works but obviously its a script so it doesnt report state, not can i just say “Alexa turn the tv on”;

kitchen_tv_toggle:
  alias: Kitchen TV
  sequence:
  - service: media_player.toggle
    data:
      entity_id: media_player.samsung_tv_remote

Can anyone give me a nudge in the right direction?

Sam

1 post - 1 participant

Read full topic

Viewing all 105738 articles
Browse latest View live


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