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

Octopus Energy Monitoring via Zigbee

$
0
0

Hi there,

I’ve recently had a Octopus smart energy meter installed, with a small screen display (potentially an Octopus Home Mini). The chap installing it has said that it supports zigbee and I should be able to connect to it locally, rather than having to get data via an external Octopus API for instance.

However, when I search on here and elswhere, I’m not sure if that’s actually the case?! Has anyone used Home Assistant installed on a raspberry pi (with a zigbee dongle of course), to connect to an Octopus smart meter and been able to retrieve data from the meter rather than via an API??

If so, is there a tutorial on how this might be done?

Any help would be very much appreciated!

Cheers, Matt K

1 post - 1 participant

Read full topic


How to edit settings dashboard

$
0
0

Is there anyway to remove items from the settings screen?
For example, assist or tags

1 post - 1 participant

Read full topic

Best way to setup a state machine via automations?

$
0
0

Hey folks - I’ve setup HA after a year or two away when I moved. I’m using HA Core + Docker (so I don’t have the easiest access to integrations, but I’m open to shifting if there is a good case to do so).

I know the team made a ton of progress on automation. What’s the current best practice for creating a simple state machine who’s state is displayed in the interface? I know Home-Red but dearly hoping I don’t need to spin it up given all the progress we’ve had on HA.

I’m chasing the old hobbyhorse of “dishwasher state” with a simple vibration sensor (it has good sensitivity and resets “Detected” to “Clear” every ~5 seconds):

  • 10+ minutes of vibration triggered = “Running” state
  • No vibration for 10 min after Running state = “Done” state
  • First short vibration after Done state= “Opened/Unloaded” state
  • Any vibrations atleast 4 hours after Opened/Unloaded state = “To be run” state

15 posts - 4 participants

Read full topic

Cant Remove Z wane Device from NetworkOAOS 12.4

$
0
0

I have a Nortek model HUSBZB-1 dongle on my HA VM running HA OS 12.4 Core 2024.6.4

I have tred several times to exclude my YRL210 / YRL220 after it became non responsive several days ago. I t had been working as well as he does and then died… This is a recurring event every couple of months. I try to exclude I using the device from tteh z wave network screen

Any thoughts on hoe I can force esckusion?

2 posts - 2 participants

Read full topic

Tailscale enable proxy crashes the add-on

$
0
0

Hi there. I was following this tutorial: Video: Remotely access Home Assistant via Tailscale for free for getting an https to access home assistant. However, when I arrive to the part that says “enable tailscale proxy”, I enable it, and for a reason tailscale just wont boot (it says 502 bad gateway) and here is the log:

s6-rc: info: service nginx successfully started
2024/06/30 18:42:14 dns: using *dns.directManager
2024/06/30 18:42:14 wgengine.NewUserspaceEngine(tun "userspace-networking") ...
2024/06/30 18:42:14 dns: using dns.noopManager
2024/06/30 18:42:14 link state: interfaces.State{defaultRoute=eth0 ifs={docker0:[172.17.0.1/16 llu6] eth0:[192.168.51.177/22 llu6] hassio:[172.30.32.1/23 llu6]} v4=true v6=false}
2024/06/30 18:42:14 onPortUpdate(port=36413, network=udp6)
2024/06/30 18:42:14 onPortUpdate(port=47451, network=udp4)
2024/06/30 18:42:14 magicsock: disco key = d:fbee062dd4b62b1d
2024/06/30 18:42:14 Creating WireGuard device...
2024/06/30 18:42:14 Bringing WireGuard device up...
2024/06/30 18:42:14 Bringing router up...
2024/06/30 18:42:14 Clearing router settings...
2024/06/30 18:42:14 Starting network monitor...
2024/06/30 18:42:14 Engine created.
2024/06/30 18:42:14 pm: using backend prefs for "profile-fba7": Prefs{ra=true dns=true want=true routes=[0.0.0.0/0 ::/0 192.168.48.0/22] snat=true statefulFiltering=false nf=on host="raspberrymain" update=check appconnector=advertise Persist{lm=, o=, n=[Qb03M] u="toadayala07@gmail.com"}}
2024/06/30 18:42:14 envknob: TS_NO_LOGS_NO_SUPPORT="true"
2024/06/30 18:42:14 logpolicy: using system state directory "/var/lib/tailscale"
2024/06/30 18:42:14 got LocalBackend in 29ms
2024/06/30 18:42:14 Start
2024/06/30 18:42:15 timeout waiting for initial portlist
2024/06/30 18:42:15 Backend: logs: be:670da9f5dc169f7c1d122d47c09def1857c116d1bc4e4179184da2684fda3db8 fe:
2024/06/30 18:42:15 control: client.Login(false, 0)
2024/06/30 18:42:15 control: doLogin(regen=false, hasUrl=false)
2024/06/30 18:42:15 web server running on: http://127.0.0.1:25899
[18:42:15] INFO: Starting NGinx...
2024/06/30 18:42:15 health("overall"): error: not in map poll
2024/06/30 18:42:16 control: control server key from https://controlplane.tailscale.com: ts2021=[fSeS+], legacy=[nlFWp]
2024/06/30 18:42:16 control: RegisterReq: onode= node=[Qb03M] fup=false nks=false
2024/06/30 18:42:16 control: RegisterReq: got response; nodeKeyExpired=false, machineAuthorized=true; authURL=false
2024/06/30 18:42:17 control: netmap: got new dial plan from control
2024/06/30 18:42:17 using tailnet default auto-update setting: true
2024/06/30 18:42:17 EditPrefs check error: Auto-updates are not supported on this platform.
2024/06/30 18:42:17 failed to apply tailnet-wide default for auto-updates (true): Auto-updates are not supported on this platform.
2024/06/30 18:42:17 active login: toadayala07@gmail.com
2024/06/30 18:42:17 Switching ipn state NoState -> Starting (WantRunning=true, nm=true)
2024/06/30 18:42:17 appc: handling domains: [] and wildcards: []
2024/06/30 18:42:17 magicsock: SetPrivateKey called (init)
2024/06/30 18:42:17 wgengine: Reconfig: configuring userspace WireGuard config (with 0/2 peers)
2024/06/30 18:42:17 wgengine: Reconfig: configuring router
2024/06/30 18:42:17 wgengine: Reconfig: configuring DNS
2024/06/30 18:42:17 dns: Set: {DefaultResolvers:[] Routes:{serengeti-chimaera.ts.net.:[] ts.net.:[199.247.155.53 2620:111:8007::53]}+65arpa SearchDomains:[serengeti-chimaera.ts.net.] Hosts:3}
2024/06/30 18:42:17 peerapi: serving on http://100.66.174.31:39982
2024/06/30 18:42:17 peerapi: serving on http://[fd7a:115c:a1e0::b901:ae1f]:39982
2024/06/30 18:42:17 health("dns"): error: getting OS base config is not supported
2024/06/30 18:42:17 monitor: gateway and self IP changed: gw=192.168.50.1 self=192.168.51.177
2024/06/30 18:42:17 health("dns-os"): error: getting OS base config is not supported
2024/06/30 18:42:17 appc: handling domains: [] and wildcards: []
2024/06/30 18:42:17 portmapper: UPnP discovery response from 192.168.48.75, but gateway IP is 192.168.50.1
2024/06/30 18:42:17 portmapper: UPnP discovery response from 192.168.48.75, but gateway IP is 192.168.50.1
2024/06/30 18:42:17 portmapper: UPnP meta changed: [{Location:http://192.168.48.75:1901/gatedesc.xml Server:Linux/2.6.36, UPnP/1.0, Portable SDK for UPnP devices/1.6.19 USN:uuid:9f0865b3-f5da-4ad5-85b7-7404637fdf37::urn:schemas-upnp-org:device:InternetGatewayDevice:1} {Location:http://192.168.50.1:42777/rootDesc.xml Server:AsusWRT/388 UPnP/1.1 MiniUPnPd/2.2.0 USN:uuid:3ddcd1d3-2380-45f5-b069-08bfb80e3cd8::urn:schemas-upnp-org:device:InternetGatewayDevice:1}]
2024/06/30 18:42:18 magicsock: home is now derp-16 (mia)
2024/06/30 18:42:18 magicsock: adding connection to derp-16 for home-keep-alive
2024/06/30 18:42:18 magicsock: 1 active derp conns: derp-16=cr0s,wr0s
2024/06/30 18:42:18 control: NetInfo: NetInfo{varies=false hairpin=false ipv6=false ipv6os=true udp=true icmpv4=false derp=#16 portmap=active-UMC link="" firewallmode=""}
2024/06/30 18:42:18 Switching ipn state Starting -> Running (WantRunning=true, nm=true)
2024/06/30 18:42:18 derphttp.Client.Connect: connecting to derp-16 (mia)
2024/06/30 18:42:18 magicsock: endpoints changed: 192.168.0.3:47451 (portmap), 186.155.16.196:36662 (stun), 172.17.0.1:47451 (local), 172.30.32.1:47451 (local), 192.168.51.177:47451 (local)
[18:42:19] INFO: Tailscale is running
[18:42:19] NOTICE: The add-on uses userspace networking mode.
[18:42:19] NOTICE: If you need to access other clients on your tailnet from your Home Assistant instance,
[18:42:19] NOTICE: disable userspace networking mode, that will create a "tailscale0" network interface on your host.
[18:42:19] NOTICE: Please check your configuration based on the add-on's documentation under "Option: userspace_networking"
s6-rc: info: service post-tailscaled successfully started
s6-rc: info: service taildrop: starting
s6-rc: info: service serve: starting
s6-rc: info: service taildrop successfully started
s6-rc: info: service serve successfully started
s6-rc: info: service legacy-services: starting
[18:42:20] ERROR: Tailscale's HTTPS support is disabled
s6-rc: info: service legacy-services successfully started
[18:42:20] INFO: Service serve exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service taildrop: stopping
s6-rc: info: service serve: stopping
s6-rc: info: service nginx: stopping
s6-rc: info: service serve successfully stopped
[18:42:20] INFO: Service taildrop exited with code 256 (by signal 15)
s6-rc: info: service taildrop successfully stopped
s6-rc: info: service post-tailscaled: stopping
s6-rc: info: service post-tailscaled successfully stopped
s6-rc: info: service tailscaled: stopping
[18:42:20] INFO: Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service init-nginx: stopping
s6-rc: info: service web: stopping
s6-rc: info: service init-nginx successfully stopped
[18:42:20] INFO: Service tailscaled exited with code 256 (by signal 15)
s6-rc: info: service tailscaled successfully stopped
[18:42:20] INFO: Service Tailscale web exited with code 256 (by signal 15)
s6-rc: info: service web successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Any idea why does it happens?

Config:
Raspberry pi 4 4GB
home assistant supervised
internet over the rj45 raspberry pi port

5 posts - 3 participants

Read full topic

Rollease Acmdea Automate

$
0
0

This integration (Rollease Acme Automate) recently stopped working on my Home Assistant (I think after an upgrade). As part of trying to figure out what happened I deleted the integration. If I now try to add the integration again I get the error “Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble”. Any thoughts on how to resolve this? Thanks.

3 posts - 2 participants

Read full topic

Configurator not showing in left menu

$
0
0

Hi,
I have Homeassistant set up on a Vbox virtual machine running on Ubuntu 20.22.

  • Core2024.6.4
  • Supervisor2024.06.2
  • Operating System12.4
  • Frontend20240610.1
    I installed File Editor and started it.
    However I don’t have any idea how to actually use it. There is no “configurator” icon in the left menu. Could someone kindly tell me how to actually use the File Editor to edit YAML files? Thanks, Phil

1 post - 1 participant

Read full topic

Need help with my first ever automation

$
0
0

I new here. I just recently installed HAOS on an x86 machine and had a bit of a play with things.
Just yesterday I managed to connect up a few devices and had a go at my first automation. It is just a sensor that detects someone who is about to go up or down the stairs (at night time) and then switch an LED strip on. Then when there has been no motion for a period of say 15-30 seconds to turn off the LED Strip.
I’ve managed to get the automation to work, however I cant figure out how to change/adjust the time for how long the light should be on after it stops detecting motion.

In summary, the motion sensor is a Sonof SNZB-03, and it triggers an Ikea Tradfri smart wall outlet that is connected to the LED strip. Both the wall outlet and the motion sensor are connected to an SMLight SLZB-06M zigbee coordinator.

The automation to turn the light on is:

and the YAML:

alias: Stair LED on
description: “”
trigger:

  • type: motion
    platform: device
    device_id: 4c99e1ea873e41594704c1d64b4f998a
    entity_id: e2d02ec63d9dbf635532a01830787b1d
    domain: binary_sensor
    condition:
  • condition: sun
    before: sunrise
    after: sunset
    action:
  • type: turn_on
    device_id: 2cdb74f49a478c19bb8cee99d1f87a9b
    entity_id: ac48663507481be64319939094a54600
    domain: switch
    mode: single

To turn the LED strip off, I did this:

And its YAML:

ias: LED Stairs Off
description: “”
trigger:

  • type: no_motion
    platform: device
    device_id: 4c99e1ea873e41594704c1d64b4f998a
    entity_id: e2d02ec63d9dbf635532a01830787b1d
    domain: binary_sensor
    for:
    hours: 0
    minutes: 0
    seconds: 5
    condition:
    action:
  • type: turn_off
    device_id: 2cdb74f49a478c19bb8cee99d1f87a9b
    entity_id: ac48663507481be64319939094a54600
    domain: switch
    mode: single

However, when I alter the duration time, it makes no difference in the amount of time from no motion to the time the light switches off.

Can someone please let me know what I am doing wrong here. Also, if theres a better way to do this, then it would be appreciated if you could let me know.

Thank you

2 posts - 1 participant

Read full topic


Limiting sensor output to 2 decimal places

$
0
0

ive tried multiple solutions from a search on here but nothing seems to be working

i am using the ‘proximity’ integration and i have set it to 2 decimal places in the integration but on my person card it takes up the whole thing with 7+ digits as soon as i leave the ‘home’ zone

  proximity: |
    [[[
      return `<ha-icon
        icon="mdi:map-marker-distance"
        style="width: 30px; height: 30px; color: var(--icon-color)">
        </ha-icon> <span>\<span>${states['sensor.home_abbie_distance'].state} Miles </span></span>`
    ]]]

i have tried doing ${states[‘sensor.home_abbie_distance’].state| round(2)}
ive tried , rounded=true) , which both error as round/rounded is not defined
ive tried other things too over the last few days but i cant rememeber exactly what i have done and what i havnt now

ive tried using var and putting the state into a float and use.tofixed(2)

	  var i = states['mdi:map-marker-distance'];
	  var r = parseFloat(states['sensor.home_abbie_distance'].state).toFixed(2);
      return `<ha-icon icon='${i}' style="width: 20px; height: 20px; color: var(--icon-color);'></ha-icon> ${r}`

which does not error but it also does not show anything, the output disappears completely

i have no idea what i am doing, wrong or right, im not a developer or have any experiance with code, i just copied and pasted and added my own entities

can someone help, what i am doing wrong?

Screenshot 2024-07-01 084204

added full code below incase it helps

type: custom:button-card
entity: person.abbie
aspect_ratio: 1/1
show_entity_picture: true
show_name: true
state:
  - value: not_home
    styles:
      card:
        - background-color: '#404040'
      custom_fields:
        icon:
          - border-color: '#B0B0B0'
          - opacity: 30%
styles:
  card:
    - border-radius: 5%
    - padding: 5%
    - color: lightgray
    - font-size: 25px
  grid:
    - grid-template-areas: '"icon status" "n network" "battery proximity"'
    - grid-template-columns: 1fr 1fr
    - grid-template-rows: 1fr min-content min-content min-content min-content
  name:
    - font-size: 20px
    - justify-self: left
    - padding-bottom: 0px
    - justify-self: left
  custom_fields:
    icon:
      - width: 120%
      - pointer-events: none
      - display: grid
      - border: 10px inset
      - border-color: |
          [[[
            var stav=states['person.abbie'].state;
            if (stav=='home') { 
            return `#77c66e`;
            } 
            if ((stav=='abbie_s_mums')|(stav=='mattwork')) { 
            return `darkorange`;
            } 
            if ((stav=='away')|(stav=='yyy')|(stav=='sss')|(stav=='ddd')) { 
            return `deepskyblue`;
            } 
          ]]] 
      - border-radius: 100px
      - margin: 0 0 0 0
      - justify-self: left
      - opacity: 1
    status:
      - align-self: start
      - justify-self: end
      - text-transform: capitalize
      - color: lightgray
    battery:
      - justify-self: left
      - font-size: 25px
      - color: lightgray
      - '--icon-color': |
          [[[ var l = states['sensor.abbie_s_phone_battery_level'].state;
            if (l < 10) return "#e45649";
            if (l < 20) return "#ff9050";
            if (l < 30) return "#ffb040";
          else return "#77c66e"
          ]]]
    network:
      - justify-self: end
      - font-size: 11px
      - color: lightgray
      - '--icon-color': |
          [[[ var n = states['sensor.abbie_s_phone_network_type'].state;
            if ((n=='cellular')|(n=='wifi')) return "#77c66e";
          else return "grey"
          ]]]
    proximity:
      - justify-self: end
      - font-size: 15px
      - color: lightgray
      - '--icon-color': |
          [[[ var p = states['sensor.home_abbie_distance'].state;
            if (p > 1) return "#ffb040";
            if (p > 20) return "#ff9050";
            if (p > 100) return "#e45649";
          else return "#77c66e"
          ]]]
custom_fields:
  icon: >
    [[[ return entity === undefined ? null : `<img
    src="${states['person.abbie'].attributes.entity_picture}" width="100%">`;
    ]]]
  status: |
    [[[ var stav = states['person.abbie'].state;
        var doma = `<ha-icon icon="mdi:home-heart" style="color: #77c66e;`
        var produkce = `<ha-icon icon="mdi:briefcase-outline" style="color: deepskyblue;`
        var volno = `<ha-icon icon="mdi:home-export-outline" style="color: deepskyblue;`
        var nasi = `<ha-icon icon="mdi:home-outline" style="color: darkorange;`
        var pryc = `<ha-icon icon="mdi:home-export-outline" style="color: lightgray;width: 20px; height: 20px;"></ha-icon><span> Away </span>`
        var solid = ` width: 45px; height: 45px;"></ha-icon><span> </span>`
      if (stav=='home') { 
        return doma+solid
      }
      if ((stav=='home_2')|(stav=='mattwork')|(stav=='zzz')) { 
        return produkce+solid
      } 
      if ((stav=='away')|(stav=='sss')) { 
        return volno+solid
      } 
      if ((stav=='yyy')|(stav=='uuu')) { 
        return nasi+solid
      } else {
        return pryc
      }
    ]]]
  battery: |
    [[[
      var i = states['sensor.abbie_s_phone_battery_level'].attributes.icon;
      var b = states['sensor.abbie_s_phone_battery_level'].state;
      return `<ha-icon icon='${i}' style='width:30px; height: 30px; vertical-align:2px; color: var(--icon-color);'></ha-icon>${b}%`
    ]]] 
  network: |
    [[[
      var i = states['sensor.abbie_s_phone_network_type'].attributes.icon;
      return `<ha-icon icon='${i}' style='width:40px; height: 40px; vertical-align:2px; padding-right: 0px ;color: var(--icon-color);'></ha-icon>`]]] 
  proximity: |
    [[[
      return `<ha-icon
        icon="mdi:map-marker-distance"
        style="width: 30px; height: 30px; color: var(--icon-color)">
        </ha-icon> <span>\<span>${states['sensor.home_abbie_distance'].state} Miles </span></span>`
    ]]]

3 posts - 2 participants

Read full topic

Lilygo-T-Relay S3 - Relays triggering on boot

$
0
0

Apologies if this is better off in the hardware section. I was hoping to find a software solution to the problem.

So I’ve got a Lilygo-T-Relay S3. All the relays trigger for about 100ms on boot. I vaguely remember hearing that most of the GPIO pins going high on boot is standard behavior on ESP’s.

I’m pretty sure these relays are controlled over SPI through a shift register so it doesn’t really make sense to me why the relays would go high on boot.

Is there any way to stop this behavior for all the relays? If unavoidable I would at least like to have the relay controlling my garage door on a pin that maybe doesn’t exhibit this behavior?

Pinout:


Github documentation:

Thanks heaps

edit: There seems to be discussion of this behavior here:

1 post - 1 participant

Read full topic

Validate all entity names used - scripts, automations, lovelace,

$
0
0

Sometime the entity names of integrations may change which may have an unexpected effect on many scripts, automations, frontend lovelace configs etc.

Is there a way to validate all these files to see if any non-existing entity name is used in order to be able to fix them?

Maybe by fetching all existing known entity names and comparing it with all entity names used in any script/automation/lovelace?

3 posts - 2 participants

Read full topic

For loop in template? Calculating a mean using a certain threshold

$
0
0

I want to create a template to get the mean temperature of certain sensors, but only include sensors that are above a certain reference threshold.
Here’s what i’ve come up with, but it always returns ‘0’.

          {% set total_temp = 0 %}
          {% set num_sensors = 0 %}
          {% set reference_sensor = states('sensor.house_actual_setpoint') %} 
          {% for sensor_id in ['sensor.28_42faa80d0000_temperature', 'sensor.28_d124a80d0000_temperature', 'sensor.28_2c3949f6293c_temperature', 'sensor.28_f98b49f6b23c_temperature', 'sensor.28_477649f63e3c_temperature', 'sensor.28_1d2449f6d33c_temperature'] %}
            {% if states(sensor_id) | float > reference_sensor | float %}
              {% set total_temp = total_temp + states(sensor_id) | float %}
              {% set num_sensors = num_sensors + 1 %}
            {% endif %}
          {% endfor %}
          {% if num_sensors < 1 %}
            {% set num_sensors = 1 %}
          {% endif %}
          {{ (total_temp / num_sensors)  | round(1) }}

2 posts - 2 participants

Read full topic

Arlec Motion sensor issues

$
0
0

Hi guys,

I have been tinkering to with my pendant lights in my kitchen.

I would like them to turn them selves off after my motion sensor does not detect motion after 5 minutes.

Do I have the below automation correct?

I am finding the still want to randomly turn off even with a presence in the area.

1 post - 1 participant

Read full topic

Entities and Text (Markdown) in a Table Card

$
0
0

Hi All,

I’m trying to build a card that is like a table with column and row names and shows different entities. An example is that:

Table

I’ve searched a lot and tried several ways (like vertical-stack-in-card) but didn’t really succeed. Can anyone give me a hint how I could build that?

Regards,
Jogi

1 post - 1 participant

Read full topic

Aqara temp/humidity sensor no longer updating some sensors

$
0
0

i’ve recently discovered that both of my aqara temp/humidity sensors have stopped sending updates reliably and isnt (/doesnt) appear related to any changes.

pictures are worth a thousand words:

last reliable update was at 1:26:51 AM so this is far outside of any changes or maintenance which i’d typically do on a weekend morning.
Temperature is still being updated as expected, but all other entities from these sensors stopped at this time.

Batteries have been changed, and pressing the ‘update now’ button on the side of the sensor has no effect on the entity value.

if it was one sensor, i’d go with hardware fault but since they both failed at the same time, then appears to be HA side.

the fact that temp seems to be updated implies that zigbee is working ok so i havent gone with repairing . I’m currently using ZHA but will migrate to Z2M once my 2nd zigbee POE co-ordinator arrives over the next few weeks, so i can migrate these problem sensors first to see if it fixes them.

any ideas on how to fix this one?

1 post - 1 participant

Read full topic


How to program a cycle for counting solar power

$
0
0

I like to program a count method starting with a value which already has been imported by our solar panels. Then adding the daily or weekly import kwh and at every 1.000kwh HA has to send a message to me.

1 post - 1 participant

Read full topic

HA + zb2mqtt + tasmota

$
0
0

I have HA + zb2mqtt running fine for quite a while.
I’m trying to add a sonoff zb bridge with tasmota (not in TCP mode) so that I can track some sensors in different location.

tasmota connects successfully to the mqtt server, HA auto detects the tamsota device and suggest to install the tasmota integration (done), however in HA I don’t see the temperature sensors that I have paired with the tasmota bridge.

IDK if this is connected, but in the tasmota web UI I see the sensors, their signal level, but don’t see their reading.

Tasmota 14.1.0.3 (2cc785b-zbbrdgpro) with ZNP v2.7.1.20220219

2 posts - 2 participants

Read full topic

ESPHome device visible in HA, but not ESPHome dashboard

$
0
0

HA can see ESPHome device LD2450

LD2450 not visible in ESPHome dashboard

Logs on the Web Tools example

image

HA can see my ESPHome device, but I can’t find/adopt/add it to the dashboard, any ideas?

5 posts - 2 participants

Read full topic

ESPHOME : simulate the activation of a GPIO (General Purpose Input/Output) pin

$
0
0

hello ,

Hello, I would like to create a button on a web interface that can simulate the activation of a GPIO (General Purpose Input/Output) pin on an ESP32 microcontroller. This would allow me to test and manipulate my pulse counter without having to physically interact with the ESP32 device, such as going outside to manually activate the GPIO pins. The goal is to have a button on the web interface that, when clicked, triggers the pulse counter as if the GPIO pin had been activated. This would provide a convenient way to test and debug the pulse counter functionality without the need for physical access to the ESP32 device.

it this a possible way in ESPHOME ?

kind regards

sensor:
 - platform: pulse_counter
   id : tippingbucket
   pin:
     number: GPIO12  
     inverted: True
     mode: INPUT_PULLUP    
   
   name: 'Rainfallflips'
   update_interval : 10s
   accuracy_decimals: 0



   total:
    name: "rainWater Meter Total" 
    unit_of_measurement: "L"
    id: rainwater_meter_total_esp
    accuracy_decimals: 3
    device_class: water
    state_class: total_increasing
    filters:
      - multiply: 1
      
      
      
button:
 - platform: template
   name: puuls
   id: my_drukknop

   # Optional variables:
   icon: "mdi:emoticon-outline"
   on_press:
     - logger.log: "create event so i can create a software puls to tippingbucket "  


1 post - 1 participant

Read full topic

Help understanding how to create a prompt for Home-LLM

$
0
0

Hi, I was wondering if anyone out there, who’s been playing with, or has good experience with prompting could help me understand how it works, and how I can create a prompt, which will allow me to control, and enquire entities within my set up?

After a couple of months of tinkering, I’ve slowly started to get a local LLM working in a docker container, powered by a PGU, which can control HA. I’ve used the following guide (I’m using the mistral:instruct model at the moment).

I have managed to get it to control some devices, however I can’t enquire about the state of anything, and there are still some devices I can’t get it to control (smart plugs, for example).

I’m sure it’s got something to do with the prompt, hence I’m seeking a bit of help.

Here’s my prompt, which so far will only control some devices (all devices I want to control, or entities I want to enquire about are exposed to Assist).

You are 'Al', a helpful AI Assistant that controls the devices in a house. Complete the following task as instructed with the information provided only.
The current time and date is {{ (as_timestamp(now()) | timestamp_custom("%I:%M %p on %A %B %d, %Y")) }}
Tools: {{ tools | to_json }}
Devices:
light.table 'Table' = off
Set the brightness for light.table to 0.47
Setting the brightness now.
<functioncall> {"name":"HassLightSet","arguments":{"name":"light.table","brightness":0.47}}
When you are asked to control a garage door use cover.open_cover and cover.close_cover.
When you are asked to control a blind use cover.open_cover and cover.close_cover.
Answer any quesions the user has, regardless if is specific to the smart home or not, as the user also likes general knowledge.
When asked about the state of windows and doors, assume on = open, and off = closed. Do not tell the user a window is 'on' or 'off', always use 'open' or closed'.
Keep your answers brief, don't use symbols or bullet points, and don't apologize.

I think what I’m struggling with right now, is an understanding of what exactly I need to put in the prompt. As can be seen, I have some specific lines for controlling lights, which seems to work for controlling most lights I have exposed, but not all. I tried adding something similar for smart plugs, but the only response I get so far is either an error, or that it says it’s turned it on / off, but it hasn’t.

switch.living_room_smart_plug 'Living room smart plug' = on

I’d also like to enquire about the state of some entities. For example, the battery level of the car. If I add the following…

sensor.ariya_battery_level 'Car battery level'

the response I get is 'The car battery level is ‘sensor.car_battery_level’ (doesn’t give me the value. I tried adding an example value to the prompt, then it just gives the value I’ve provided, not the actual value).

Anyway, I was just wondering if anyone would be willing to share their prompt, or any tips on how I can create a good working prompt, which is as short as possible.

Thanks in advance.

1 post - 1 participant

Read full topic

Viewing all 109418 articles
Browse latest View live


Latest Images

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