Code Monkey home page Code Monkey logo

Comments (19)

Gerfunky avatar Gerfunky commented on June 2, 2024 3

Ive had the same problem i narrowed it down to the setting entity_prefix:
if i remove the setting everything works i can controll the slave from the master but with the setting i get an error in the log.

from remote_homeassistant.

CasparTheBridge avatar CasparTheBridge commented on June 2, 2024 2

I still haven't found why the switch functions is not working. Getting information from the slave is working fine but writing information to the slave doesn't seem to work. Not for a dimmer, not for a switch and also not for non-Zwave related hardware.

Any suggestions in how I can see more what can probably point to the issue? Where can I increase the log-level?

from remote_homeassistant.

CasparTheBridge avatar CasparTheBridge commented on June 2, 2024 1

To run the remote HASS.io as lean as possible my configuration.yaml is like this:

# Configure a default setup of Home Assistant (frontend, api, etc)
#default_config:
config:
frontend:
system_health:
updater:

# Additional platforms for remote connecion
http:
websocket_api:

# Z-Wave platform
zwave:
  usb_path: /dev/serial/by-id/usb-0658_0200-if00

# MQTT on VlasakkerHA
mqtt:
  broker: x.x.x.x
  username: !secret mqtt_username
  password: !secret mqtt_password
  client_id: home-assistant

# Sensor platform (all combined)
sensor:
  # System Monitor raspberry Pi
  - platform: systemmonitor
    resources:
      - type: disk_free
        arg: /
      - type: disk_use_percent
        arg: /
      - type: memory_free
      - type: memory_use_percent
      - type: swap_use_percent
      - type: processor_use
      - type: last_boot
  # Track current connections via Websocket API
  - platform: websocket_api
  # DSMR or Slimme meter (P1)
  - platform: dsmr
    port: /dev/serial/by-id/usb-FTDI_TTL232R_FTUAZN1W-if00-port0

from remote_homeassistant.

mrmaceurope avatar mrmaceurope commented on June 2, 2024

Hi Casper,

Try sharing your configuration and filters for HA remote?

from remote_homeassistant.

jfrux avatar jfrux commented on June 2, 2024

@CasparTheBridge This happens to me whenever I restart the instance with the z-wave controller but do not restart the master instance.

I really do wish this could reconnect and "rediscover" / report properly that it cannot communicate with devices.

Even if it occasionally did some sort of check to verify its connection...

or even report if it cannot connect properly.

If you change the log level in hass to info or debug you will see issues thrown by home-assistant-remote component.
image

@lukas-hetzenecker Is it possible we've had a regression from (#3) in the components ability to reconnect to configured remote instances when they temporarily go offline and then return? Looking through the code, I'm not sure I saw if there is a timeframe of which it stops trying to reconnect or not. Maybe a configurable timeout setting or something is in order. And maybe an installed sensor with the component that reports the state of instances based on their configured name in the config (also a potential new feature)... just a thought.

from remote_homeassistant.

CasparTheBridge avatar CasparTheBridge commented on June 2, 2024

Hi Casper,

Try sharing your configuration and filters for HA remote?

This is what is in my config for remote homeassistant:

remote_homeassistant:
  instances:
  - host: ##.0.0.#
    port: 8123
    access_token: !secret meterhass_token
    entity_prefix: "MeterHASS_"
    exclude:
      domains:
      - automation
      - group
      - person
      entities:
      - automation.hass_restart_binary_sensor_automation_toggle
      - automation.mqtt_discovery_binary_sensor_creator
      - automation.mqtt_discovery_light_creator
      - automation.mqtt_discovery_sensor_creator
      - automation.mqtt_discovery_switch_creator
      # Same name as master instance
      - binary_sensor.updater
      - sensor.disk_free
      - sensor.disk_use_percent
      - sensor.last_boot
      - sensor.memory_free
      - sensor.memory_use_percent
      - sensor.processor_use
      - sensor.swap_use_percent
      # Not working / unused
      - sensor.long_power_failure_count
      - sensor.power_consumption_phase_l1
      - sensor.power_consumption_phase_l2
      - sensor.power_consumption_phase_l3
      - sensor.power_production_phase_l1
      - sensor.power_production_phase_l2
      - sensor.power_production_phase_l3
      - sensor.voltage_phase_l1
      - sensor.voltage_phase_l2
      - sensor.voltage_phase_l3
      - sensor.voltage_sags_phase_l1
      - sensor.voltage_sags_phase_l2
      - sensor.voltage_sags_phase_l3
      - sensor.voltage_swells_phase_l1
      - sensor.voltage_swells_phase_l2
      - sensor.voltage_swells_phase_l3

from remote_homeassistant.

mrmaceurope avatar mrmaceurope commented on June 2, 2024

You need to added :

  subscribe_events:
  - zwave.network_ready
  - zwave.node_event
  - zwave.scene_activated
  - state_changed
  - service_registered

My Configuration

instances:
- host: 192.168.x.x
  port: 8123
  secure: false
  verify_ssl: false
  access_token: 
  entity_prefix: "f38s_"
  subscribe_events:
  - zwave.network_ready
  - zwave.node_event
  - zwave.scene_activated
  - state_changed
  - service_registered
  include:
    domains:
    - light
    - sensor
    - switch
    - binary_sensor
    - device_tracker
    - zwave

from remote_homeassistant.

CasparTheBridge avatar CasparTheBridge commented on June 2, 2024

Thank you for the quick reply!

I've added the code but unfortunately it's still not working:

# Remote MeterHASS
remote_homeassistant:
  instances:
  - host: x.x.x.x
    port: 8123
    access_token: !secret meterhass_token
    entity_prefix: "MeterHASS_"
    subscribe_events:
    - zwave.network_ready
    - zwave.node_event
    - zwave.scene_activated
    - state_changed
    - service_registered
    exclude:
      domains:
      - automation
      - group
      - person
      entities:
      - automation.hass_restart_binary_sensor_automation_toggle
      - automation.mqtt_discovery_binary_sensor_creator
      - automation.mqtt_discovery_light_creator
      - automation.mqtt_discovery_sensor_creator
      - automation.mqtt_discovery_switch_creator
      # Same name as master instance
      - binary_sensor.updater
      - sensor.disk_free
      - sensor.disk_use_percent
      - sensor.last_boot
      - sensor.memory_free
      - sensor.memory_use_percent
      - sensor.processor_use
      - sensor.swap_use_percent
      # Not working / unused
      - sensor.long_power_failure_count
      - sensor.power_consumption_phase_l1
      - sensor.power_consumption_phase_l2
      - sensor.power_consumption_phase_l3
      - sensor.power_production_phase_l1
      - sensor.power_production_phase_l2
      - sensor.power_production_phase_l3
      - sensor.voltage_phase_l1
      - sensor.voltage_phase_l2
      - sensor.voltage_phase_l3
      - sensor.voltage_sags_phase_l1
      - sensor.voltage_sags_phase_l2
      - sensor.voltage_sags_phase_l3
      - sensor.voltage_swells_phase_l1
      - sensor.voltage_swells_phase_l2
      - sensor.voltage_swells_phase_l3

from remote_homeassistant.

CasparTheBridge avatar CasparTheBridge commented on June 2, 2024

@CasparTheBridge This happens to me whenever I restart the instance with the z-wave controller but do not restart the master instance.

I really do wish this could reconnect and "rediscover" / report properly that it cannot communicate with devices.

Even if it occasionally did some sort of check to verify its connection...

or even report if it cannot connect properly.

If you change the log level in hass to info or debug you will see issues thrown by home-assistant-remote component.
image

@lukas-hetzenecker Is it possible we've had a regression from (#3) in the components ability to reconnect to configured remote instances when they temporarily go offline and then return? Looking through the code, I'm not sure I saw if there is a timeframe of which it stops trying to reconnect or not. Maybe a configurable timeout setting or something is in order. And maybe an installed sensor with the component that reports the state of instances based on their configured name in the config (also a potential new feature)... just a thought.

I did a few tests but it never works, I tried all kinds of booting sequences of master and remote. But switching from master is never working. And I never see anything in the logs.

from remote_homeassistant.

jfrux avatar jfrux commented on June 2, 2024

It almost sounds as if something is wrong on your remote instance... maybe connection issues... hmm

from remote_homeassistant.

jfrux avatar jfrux commented on June 2, 2024

Stopped using Hass.io... had too many stability issues.
When I use HomeAssistant with docker-compose it's so effing fast. I don't know why Hass.io is so slow.

It's slow to boot, hard to keep stable, Tried Raspberry Pi and VirtualBox on real hardware... all of them seem to end up getting to where they don't restart quick enough and are just unwieldy.

I think it's the way it's trying to containerize things...

HomeAssistant running in a docker container by itself is so zippy.

Still going to try home-assistant-remote but in docker-compose style setup.

from remote_homeassistant.

ThePirat91 avatar ThePirat91 commented on June 2, 2024

Same problem of @CasparTheBridge here with hassio 0.109.6 and remote-homeassistant 2.1....
I can see the status of slave entities on my master instance but I cannot change anything on the slave from master....
The two instances are linked by ZeroTier

from remote_homeassistant.

ThePirat91 avatar ThePirat91 commented on June 2, 2024

Just tried @Gerfunky and....IT WORKED!!!
Thanks a lot man for your tip....

from remote_homeassistant.

postlund avatar postlund commented on June 2, 2024

Anyone with the base problem that could provide debug logs when flipping a switch when it doesn't work? If it works without entity prefix but not with, we probably don't strip the prefix properly somewhere before sending it to the remote instance. Would like to figure out where.

from remote_homeassistant.

CasparTheBridge avatar CasparTheBridge commented on June 2, 2024

Anyone with the base problem that could provide debug logs when flipping a switch when it doesn't work? If it works without entity prefix but not with, we probably don't strip the prefix properly somewhere before sending it to the remote instance. Would like to figure out where.

Which logs would you like to have and do I have to change the debug level?

from remote_homeassistant.

postlund avatar postlund commented on June 2, 2024

Anyone with the base problem that could provide debug logs when flipping a switch when it doesn't work? If it works without entity prefix but not with, we probably don't strip the prefix properly somewhere before sending it to the remote instance. Would like to figure out where.

Which logs would you like to have and do I have to change the debug level?

We can start with logs for this component:

logger:
  default: warning
  logs:
    homeassistant.components.remote_homeassistant: debug

from remote_homeassistant.

CasparTheBridge avatar CasparTheBridge commented on June 2, 2024

Wow, you won't believe it.. It is now working for me! 👍
I'll keep an eye on it for some day's/weeks. Now use it to turn on/off my christmas lights.

Thank you for the person who fixed this in the last couple of months 🥇

from remote_homeassistant.

postlund avatar postlund commented on June 2, 2024

Awesome! Leave it for a few days and please close the issue if it seems to work 👍

from remote_homeassistant.

CasparTheBridge avatar CasparTheBridge commented on June 2, 2024

It still works flawlessly! Improved my setup a lot, thanks for all created this!

from remote_homeassistant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.