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

Sensor vs input_number comparison

$
0
0

I keep getting an error on this line of code:

- type: "custom:button-card"
                entity: sensor.desired_probe_1
                entity_picture: '[[[ if (entity.state < (input_number.hass_probe1_slider.state|float)) return "/local/bbq/probe_off.png"; else return "/local/bbq/probe_on.png" ]]]'

input_number is not defined.

Even tried:
entity_picture: '[[[ if (entity.state < states("input_number.hass_probe1_slider")|float) return "/local/bbq/probe_off.png"; else return "/local/bbq/probe_on.png" ]]]'

1 post - 1 participant

Read full topic


Delay in automation between trigger and action

$
0
0

I have this automation:

- id: SyncDenLights
  alias: Sync Den Lights
  trigger:
  - platform: state
    entity_id: light.switchlinc_dimmer_4e_d9_db
    attribute: brightness
  action:
  - service: light.turn_on
    target:
      entity_id: light.switchlinc_dimmer_58_40_ac
    data:
      brightness: '{{ state_attr( ''light.switchlinc_dimmer_4e_d9_db'', ''brightness''
        ) | int(0) }}'

When I turn on or set the brightness of light.switchlinc_dimmer_4e_d9_db, light.switchlinc_dimmer_58_40_ac is set to the same brightness, which is what I want.

But, the target doesn’t do that operation until about 3 or 4 seconds from when the “source” light is changed. Can’t this be made to happen immediately so that they look in sync?

1 post - 1 participant

Read full topic

Venstar integration thermostat mode

$
0
0

I am pretty sure that setting the Venstar thermostat mode was previously working but today I noticed that my T7900 was in ‘Auto’ mode when I had set it to ‘off’. Playing around with it a bit this morning, I see that the state as seen in developer tools/states follows exactly the mode selected but the state will always revert to ‘Auto’ after being set to "off.’
I recreated the Venstar integrations which did not solve this problem. The time that elapses from ‘off’ selection to reverting to ‘Auto’ varies and seems to be related to a refresh of the view happening periodically.
The Venstar T7900 thermostat is reporting v9 as the firmware.

1 post - 1 participant

Read full topic

Ikea Styrbar E2001/E2002 remote control

$
0
0

Hello.
I have the Ikea Styrbar E2001/E2002 remote control.
I found several blueprints to make it work but none that allows pressing the left and right buttons to change the color spectrum (from blue to purple, …)

If someone has done it or if it’s not possible.

Thank you so much.

3 posts - 3 participants

Read full topic

UTC to local time for a sensor to tts automation

$
0
0

I recently created an automation to announce the time of an upcoming event. The upcoming time is in UTC so tts is just announcing it as such. How would I have tts read it back as my local time instead?

The script is below:

alias: Jewish calendar demo
description: ''
trigger:
  - platform: time
    at: '12:00:00'
condition: []
action:
  - service: tts.google_translate_say
    target:
      entity_id: media_player.entryway_wifi
    data:
      message: >-
        Good morning the value is {{
        states('sensor.jewish_calendar_upcoming_candle_lighting') }}
mode: single

1 post - 1 participant

Read full topic

Aeotec Multisensor report temperature suddenly of -5866.2 degrees

$
0
0

I’ve got an Aeotec multisensor hardwired which works really well in a space heater in my kids room all connected together to act as a mini heater system in their room.

I found that hardwiring gets this Aeotec sensor to report very fast temp changes which is great! It’s been running for almost a year just fine but suddenly the sensor is reporting a temp of (-5866.2F). I have power cycled with no luck. Is the only thing I can do is to entirely reset the thing adn re-add it? I always hate doing this with Zwave devices due to number of steps.

Anything else I can try?

1 post - 1 participant

Read full topic

Count Entries in Array from Rest Api

$
0
0

Hi,

i hit kind of a dead end. I get a list of Scooters from the api and i want to count them and make the value available as a sensor.
Can i do this with the Restful Integration or do i have to make a script?

This is my Request

curl "https://platform.tier-services.io/v2/vehicle?lat=53.515562&lng=10.050908&radius=2000&&isRentable=true" -H "x-api-key: bpEUTJEBTf74oGRWxaIcW7aeZMzDDODe1yBoSxi2"

This is the Array

{"data":[{"type":"vehicle","id":"02eaa7c0-e6cc-4d07-9146-e73dc572b8fe","attributes":{"state":"ACTIVE","lastLocationUpdate":"2022-04-29T21:11:47Z","lastStateChange":"2022-04-28T10:19:36Z","batteryLevel":95,"currentRangeMeters":28000,"lat":53.516048,"lng":10.022059,"maxSpeed":20,"zoneId":"HAMBURG","code":296184,"iotVendor":"okai","licencePlate":"062WKR","isRentable":true,"vehicleType":"escooter","hasHelmetBox":false,"hasHelmet":false}},{"type":"vehicle","id":"f05d8076-281e-4526-b9a1-03494c1cea91","attributes":{"state":"ACTIVE","lastLocationUpdate":"2022-04-29T21:12:00Z","lastStateChange":"2022-04-25T20:40:25Z","batteryLevel":77,"currentRangeMeters":23000,"lat":53.531587,"lng":10.050504,"maxSpeed":20,"zoneId":"HAMBURG","code":142714,"iotVendor":"okai","licencePlate":"143WLG","isRentable":true,"vehicleType":"escooter","hasHelmetBox":false,"hasHelmet":false}},{"type":"vehicle","id":"b392f9ff-b07e-4e80-b8e6-ddeb2e0c90d6","attributes":{"state":"ACTIVE","lastLocationUpdate":"2022-04-29T21:08:47Z","lastStateChange":"2022-04-26T18:05:08Z","batteryLevel":89,"currentRangeMeters":27000,"lat":53.533199,"lng":10.050453,"maxSpeed":20,"zoneId":"HAMBURG","code":146188,"iotVendor":"okai","licencePlate":"328WLF","isRentable":true,"vehicleType":"escooter","hasHelmetBox":false,"hasHelmet":false}},{"type":"vehicle","id":"01963ef8-965d-441c-8752-47c9fd560f8f","attributes":{"state":"ACTIVE","lastLocationUpdate":"2022-04-29T21:15:32Z","lastStateChange":"2022-04-22T22:29:26Z","batteryLevel":28,"currentRangeMeters":8000,"lat":53.530502,"lng":10.039966,"maxSpeed":20,"zoneId":"HAMBURG","code":292527,"iotVendor":"okai","licencePlate":"727WLL","isRentable":true,"vehicleType":"escooter","hasHelmetBox":false,"hasHelmet":false}},{"type":"vehicle","id":"2e108137-2a1f-4184-9f78-7fa34ecdc61e","attributes":{"state":"ACTIVE","lastLocationUpdate":"2022-04-29T21:16:03Z","lastStateChange":"2022-04-28T03:21:13Z","batteryLevel":89,"currentRangeMeters":27000,"lat":53.532369,"lng":10.040975,"maxSpeed":20,"zoneId":"HAMBURG","code":184791,"iotVendor":"okai","licencePlate":"852WLG","isRentable":true,"vehicleType":"escooter","hasHelmetBox":false,"hasHelmet":false}},{"type":"vehicle","id":"9dc7330c-b7e5-411a-b6f1-33616ba116dd","attributes":{"state":"ACTIVE","lastLocationUpdate":"2022-04-29T21:09:55Z","lastStateChange":"2022-04-18T03:14:59Z","batteryLevel":34,"currentRangeMeters":10000,"lat":53.533193,"lng":10.050441,"maxSpeed":20,"zoneId":"HAMBURG","code":206342,"iotVendor":"okai","licencePlate":"546WLB","isRentable":true,"vehicleType":"escooter","hasHelmetBox":false,"hasHelmet":false}},{"type":"vehicle","id":"734d3184-2716-4c09-9c16-4716e15b666b","attributes":{"state":"ACTIVE","lastLocationUpdate":"2022-04-29T21:15:37Z","lastStateChange":"2022-04-29T20:53:53Z","batteryLevel":100,"currentRangeMeters":30000,"lat":53.532794,"lng":10.049542,"maxSpeed":20,"zoneId":"HAMBURG","code":187106,"iotVendor":"okai","licencePlate":"860WKR","isRentable":true,"vehicleType":"escooter","hasHelmetBox":false,"hasHelmet":false}}]}

so i want to take this array and count the scooter and display the total Number. Alternativly displaying them in a little map in the dashboard would be nice also.

Thanks for the help

cheers pyth

1 post - 1 participant

Read full topic

Getting a couple errors I don't understand on automation blueprint creation

$
0
0

Hi,

Trying to create a few simple blueprints but not quite understanding the errors. Apologies if I have posted in the wrong area - feel free to move the topic if so.

The idea of the BP is just to turn off a light X time after it was turned on.

`Blueprint Light Power saver generated invalid automation with inputs OrderedDict([('light_target', OrderedDict([('entity_id', 'light.study')])), ('timer_wait', 5)]): Entity entity_id is neither a valid entity ID nor a valid UUID for dictionary value @ data['entity_id']. Got None`

The BP script currently looks like

blueprint:
  name: Light Power Saver
  description: Turn off light X time after it was turned on.
  domain: automation
  input:
    light_target:
      name: Light
      selector:
        target:
          entity:
            domain: light
    timer_wait:
      name: Wait time
      description: Time to leave the light before tunring off
      default: 120
      selector:
        number:
          min: 5
          max: 3600
          unit_of_measurement: seconds

## If state of light changes restart the script.
mode: single
#max_exceeded: silent

trigger:
  platform: state
  entity_id: !input light_target
  from: "off"
  to: "on"

action:
  - alias: "Wait the number of seconds that has been set"
    delay: !input timer_wait
  - alias: "Turn off the light"
    service: light.turn_off
    target: !input light_target

any pointers to where I am going wrong?

1 post - 1 participant

Read full topic


Temperature sensor automation never triggering

$
0
0

I know I’ve seen this question asked elsewhere, but I have tried all the suggestions that I could find in those threads, but I still have a non-functioning automation based on the temperature value of my Mysa AC controller.

Here is the yaml:

alias: 'Studio AC: If room temp gets above 80 turn on AC'
description: ''
trigger:
  - platform: numeric_state
    entity_id: sensor.mysa_59be2c_current_temperature_2
    above: '80'
condition:
  - condition: or
    conditions:
      - condition: state
        entity_id: climate.studio_ac
        state: 'off'
      - condition: state
        entity_id: climate.studio_ac
        state: heat
  - condition: time
    before: '23:59:59'
    after: '09:00:00'
    weekday: []
action:
  - device_id: c9fa6c66277a13dd9bec2c5f8bf85c5b
    domain: climate
    entity_id: climate.studio_ac
    type: set_hvac_mode
    hvac_mode: cool
mode: single

I have other automations that turn the unit off around 1am if left on, and two more that turn it on an hour before I enter the home studio/office where the AC unit is located based on what the forcasted high for the day is. Both those sets of automations work just fine.

But this one above, which is triggering on the numeric state of the current_temperature sensor just never triggers. I check the traces, and it’s not even like the conditions are blocking the actions, I just don’t get a trigger.

I have checked to make sure that the automation was enabled while the temp was below the “above” threshold, and every night it most certainly drops well below that temp.

Any ideas on what else I can look at to get this working reliably?

1 post - 1 participant

Read full topic

Gate lock and homekit

$
0
0

I have one gate lock similar to this one and I connected one Shelly1 to send the input to unlock the gate.

Everything works fine.

My actual integration on HomeAssistant (which works fine) on switch.yaml is:

- platform: mqtt
  name: "Gate"
  state_topic: 'shellies/Gate1/relay/0'
  command_topic: 'shellies/Gate1/relay/0/command'
  availability_topic: 'shellies/Gate1/online'
  unique_id: 'Gate1-relay-0'
  payload_on: 'on'
  payload_off: 'off'
  payload_available: 'true'
  optimistic: false

The issue is when I include it in HomeKit, the device is seen as a switch and so, using Siri, I can’t say “open the Gate” but I have to say “switch on the Gate”.

How should I setup the device in order to make it work as a gate lock on Home.app?

Should I define somehow the device class? Should I use a template? How the template would be built?

Thank you!

1 post - 1 participant

Read full topic

How to sync energy dashboard with power bill?

$
0
0

What is the best way to keep these things in sync as much as possible?

1 post - 1 participant

Read full topic

Pairing a Z-wave device

$
0
0

Im using Z-wave JS for my fibaro sensors and also a zwave.me usb stick
I was striggeling with the fibaro updating firmware, what still not worked .

Now i want to pair it in may system again but it cannot find it anymore , every time ““time out””
At Zwave JS i press on Add Device, and set also the fibaro in pairing mode . it is searching
am i doing something wrong . is my fibaro damaged ( i did already a factory reset at fibaro)

1 post - 1 participant

Read full topic

Nanoleaf Elements Integration Failed to Connect

$
0
0

I’m trying to link Nanoleaf Elements to Home Assistant 2022.4.7 running on a Raspberrry Pi. Whenever I try and add either set of Elements, I get a Failed To Connect error:

I’ve been struggling because most help posts re: nanoleaf are quite old and reference solutions not currently in the documentation (one involves manual config and tokens, but the manual config in the current documentation is about adding the integration manually)
I found a similar sounding bug here. so I added the folder from that thread to my config folder but no joy.
I can connect to the Elements using the Nanoleaf Android app fine.
It’s worth mentioning I’m not particularly competent - HA is by far the most complex IT system I’ve had to engage with for over a decade.

Logs!

Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn

conn = connection.create_connection(

File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 95, in create_connection

raise err

File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, in create_connection

sock.connect(sa)

OSError: [Errno 101] Network unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen

httplib_response = self._make_request(

File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 398, in _make_request

conn.request(method, url, **httplib_request_kw)

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 239, in request

super(HTTPConnection, self).request(method, url, body=body, headers=headers)

File "/usr/local/lib/python3.9/http/client.py", line 1285, in request

self._send_request(method, url, body, headers, encode_chunked)

File "/usr/local/lib/python3.9/http/client.py", line 1331, in _send_request

self.endheaders(body, encode_chunked=encode_chunked)

File "/usr/local/lib/python3.9/http/client.py", line 1280, in endheaders

self._send_output(message_body, encode_chunked=encode_chunked)

File "/usr/local/lib/python3.9/http/client.py", line 1040, in _send_output

self.send(msg)

File "/usr/local/lib/python3.9/http/client.py", line 980, in send

self.connect()

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 205, in connect

conn = self._new_conn()

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn

raise NewConnectionError(

urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8a59dd60>: Failed to establish a new connection: [Errno 101] Network unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 440, in send

resp = conn.urlopen(

File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 785, in urlopen

retries = retries.increment(

File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment

raise MaxRetryError(_pool, url, error or ResponseError(cause))

urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.68.107', port=80): Max retries exceeded with url: /app (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8a59dd60>: Failed to establish a new connection: [Errno 101] Network unreachable'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform

await asyncio.shield(task)

File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run

result = self.fn(*self.args, **self.kwargs)

File "/config/custom_components/tapo_p100_control/switch.py", line 44, in setup_platform

add_entities([P100Plug(p100)])

File "/config/custom_components/tapo_p100_control/switch.py", line 53, in __init__

self.update()

File "/config/custom_components/tapo_p100_control/switch.py", line 83, in update

self._p100.handshake()

File "/usr/local/lib/python3.9/site-packages/PyP100/PyP100.py", line 122, in handshake

r = self.session.post(URL, json=Payload, timeout=2)

File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 577, in post

return self.request('POST', url, data=data, json=json, **kwargs)

File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 529, in request

resp = self.send(prep, **send_kwargs)

File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 645, in send

r = adapter.send(request, **kwargs)

File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 519, in send

raise ConnectionError(e, request=request)

requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.68.107', port=80): Max retries exceeded with url: /app (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8a59dd60>: Failed to establish a new connection: [Errno 101] Network unreachable'))

2022-04-30 00:27:33 ERROR (SyncWorker_3) [custom_components.tapo_p100_control.switch] Could not connect to plug. Possibly invalid credentials

2022-04-30 00:27:33 ERROR (MainThread) [homeassistant.components.switch] Error while setting up tapo_p100_control platform for switch

Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn

conn = connection.create_connection(

File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 95, in create_connection

raise err

File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, in create_connection

sock.connect(sa)

OSError: [Errno 101] Network unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen

httplib_response = self._make_request(

File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 398, in _make_request

conn.request(method, url, **httplib_request_kw)

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 239, in request

super(HTTPConnection, self).request(method, url, body=body, headers=headers)

File "/usr/local/lib/python3.9/http/client.py", line 1285, in request

self._send_request(method, url, body, headers, encode_chunked)

File "/usr/local/lib/python3.9/http/client.py", line 1331, in _send_request

self.endheaders(body, encode_chunked=encode_chunked)

File "/usr/local/lib/python3.9/http/client.py", line 1280, in endheaders

self._send_output(message_body, encode_chunked=encode_chunked)

File "/usr/local/lib/python3.9/http/client.py", line 1040, in _send_output

self.send(msg)

File "/usr/local/lib/python3.9/http/client.py", line 980, in send

self.connect()

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 205, in connect

conn = self._new_conn()

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn

raise NewConnectionError(

urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f94f4ed60>: Failed to establish a new connection: [Errno 101] Network unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 440, in send

resp = conn.urlopen(

File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 785, in urlopen

retries = retries.increment(

File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment

raise MaxRetryError(_pool, url, error or ResponseError(cause))

urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.68.108', port=80): Max retries exceeded with url: /app (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94f4ed60>: Failed to establish a new connection: [Errno 101] Network unreachable'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform

await asyncio.shield(task)

File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run

result = self.fn(*self.args, **self.kwargs)

File "/config/custom_components/tapo_p100_control/switch.py", line 44, in setup_platform

add_entities([P100Plug(p100)])

File "/config/custom_components/tapo_p100_control/switch.py", line 53, in __init__

self.update()

File "/config/custom_components/tapo_p100_control/switch.py", line 83, in update

self._p100.handshake()

File "/usr/local/lib/python3.9/site-packages/PyP100/PyP100.py", line 122, in handshake

r = self.session.post(URL, json=Payload, timeout=2)

File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 577, in post

return self.request('POST', url, data=data, json=json, **kwargs)

File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 529, in request

resp = self.send(prep, **send_kwargs)

File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 645, in send

r = adapter.send(request, **kwargs)

File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 519, in send

raise ConnectionError(e, request=request)

requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.68.108', port=80): Max retries exceeded with url: /app (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94f4ed60>: Failed to establish a new connection: [Errno 101] Network unreachable'))

2022-04-30 00:27:39 ERROR (MainThread) [aionanoleaf.nanoleaf] You are using a test version of aionanoleaf to fix issue 67816

1 post - 1 participant

Read full topic

Grouping device_trackers for use in automation conditions

$
0
0

I have a bunch of device_trackers I use to detect presence. The vast majority of the time it is the same 8 or 10 device trackers I use over and over. For instance, if all of the following 10 device trackers show as not_home, turn off all lights. Is there a way to group these device trackers so I can reference a single entity in a condition? Groups seem to not be an option as Groups seem to have a very narrow use case. I poked at Templates a bit but they seem they may also be the wrong tool - or at least I can’t see how they will work. Any ideas on how to achieve this?

2 posts - 2 participants

Read full topic

Simple toogle switch for presence

$
0
0

(I’m 5 hour+ looking for a solution, look at a lot of webpage, including the HA input boolean page, But, their examples aren’t fully explain the content. Why their isn’t a simple solution like “if entity is on then, else”)

Hi,
I want to create a simple on/off button (and/or if possible simply passing a tag) as a detection presence switch.

My script IN + OUT work but I would like to get only a simple switch on two state.
The same could apply for my heating (off = night, on = day).

Thank you

1 post - 1 participant

Read full topic


ESP Home Integration Platform vs HA Reimann Sum Not Equal

$
0
0

Hey All,

I have a Enpress Pioneer whole home water filter that I took a wemos D1 Mini and am reading the hall effect sensor. I generated a flow curve that is accurate and created an integration sensor in ESP Home. Only issue I had is that the integration sensor data would be lost on restarts which I didn’t want as I am trying to maintain data for over a year.

Code here:

sensor:
  - platform: pulse_counter
    pin: D2
    update_interval: 1s
    unit_of_measurement: "GPM"
    icon: "mdi:water-pump"
    name: "Water Flow Rate"
    id: water_flow_rate
    count_mode:
      rising_edge: Increment
      falling_edge: Disable
    filters:
      - multiply: 0.006 
      - median:
          window_size: 4
          send_every: 3
          send_first_at: 2
    accuracy_decimals: 2

    
  - platform: integration                  #used with pulse counter
    name: "Water Usage Gallons"
    sensor: water_flow_rate
    time_unit: min
    icon: "mdi:water"
    accuracy_decimals: 2
    unit_of_measurement: "Gallons"

This is accurate and trends exactly with my softener flow (mechanical device)

In order to store it long term reliably I decided to use the RSSI helper (wish I did it in configuration but separate story).
Example setup picture:

Here is where the inherent issue lies…
Data for both over the last 24 hours.


One is not like the other. Am I missing something here as to why they are significantly different?

***PLEASE NOTE: I just noticed this the starting point, on the graphs, near the same number is purely coincidental. The ESP integration has been running a few days now. The Riemann Sum was started around 36 hours ago. ***

1 post - 1 participant

Read full topic

Jasco outlet reporting as 'light' and not, 'switch. Why?

$
0
0

All my other in-wall outlets report as switch. This one is reporting as a light.

1 post - 1 participant

Read full topic

Service_data with 2 or more values

$
0
0

Is it possible to send 2 consecutive commands in service data?

eg - for a Panasonic remote, using: Panasonic-viera I want to be able to access netflix.
My physical remote has a netflix button, but it doesnt appear in the Panasonic-viera keys, except via apps.

So this demands 2 steps I believe using: apps then netflix
The code below works but only accesses the ‘apps’ menu, then you can manually select netflix.

How can I automate command: apps + netflix?

    type: button
    tap_action:
      action: call-service
      service: remote.send_command
      service_data:
        command: apps
      target:
        entity_id: remote.55ex640_series
    entity: remote.55ex640_series
    icon: mdi:netflix
    hold_action:
      action: none
    name: Netflix
    icon_height: 40px

From Panasonic-Viera:

class Apps(Enum):
    """Contains several app product IDs."""
    netflix = '0010000200000001'
    youtube = '0070000200180001'
class Keys(Enum):
    """Contains all known keys."""
    thirty_second_skip = 'NRC_30S_SKIP-ONOFF'
    toggle_3d = 'NRC_3D-ONOFF'
    apps = 'NRC_APPS-ONOFF'

1 post - 1 participant

Read full topic

Counter For Long Running Usage Time?

$
0
0

I have a CO2 laser and I use an ESP32 running ESPHome to track coolant and ambient temperature, logging to HA as well as displaying on an OLED screen. The laser tubes are a consumable product and generally have a range of expected hours that they should last. What I would like to do is use HA+ESPHome to track the cumulative number of hours of laser time for 2+ years. Expanding the database to track 2+ years doesn’t seem like a viable option. The laser has an air assist pump that runs on 12V. I am going to use an ADC or digital sensor either with a current sensor, or just a voltage divider so the ESPHome can track when the air assist is on. I was thinking that maybe a counter with restore=true might be a good way to keep track of this total laser time over an extended period of time. What I can’t figure out is the best way to make it increment. Maybe an automation that fired once for every 10 seconds the sensor is high and either increments by 10. This seems like it would give me a pretty good estimation of total run time since the laser itself doesn’t track this.

I’ve looked but haven’t been able to find any examples of this. Would this be a good way to track this over a long period and does anyone have any examples?
Thanks

1 post - 1 participant

Read full topic

Showing multiple infos per Entity?

$
0
0

Hello, i am quite new to HA but having it installed for two years now. mea culpa
I finally started with adding all my smart things into HA and playing around. Works good so far.
I made myself a card with entities for all my window covers.

I would like to see when the last change was made, which is no problem due to:
“secondary_info: last-changed”
but i would love to see the positon too.

After searching google I found " multiple-entity-row" and thought “This is what I am looking for”
Installing went quite good.

I don’t get it to work.
In my opinion something like this from the documentation should work:

  • type: section
    • entity: sensor.bedroom_temperature
      type: custom:multiple-entity-row
      name: Customization
      icon: mdi:fire
      unit: °F
      secondary_info: last-changed
      entities:
      • entity: sensor.bedroom_max_temp
        name: custom name
        unit: temp

I just changed the “sensor.bedroom_temperature” to my “cover.buero” but I always get error “bad indentation of a mapping entry”

Any ideas?

1 post - 1 participant

Read full topic

Viewing all 100930 articles
Browse latest View live


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