Skip to content

Home Assistant

246 Topics 1.8k Posts
  • 0 Votes
    5 Posts
    3k Views
    mfalkviddM
    @towme great that you found the problem. Thanks for reporting back. I could easily have done the same thing, now I know that I shouldn't :-)
  • Gateway type

    9
    0 Votes
    9 Posts
    2k Views
    K
    i thinked it worked with ./configure --my-transport=nrf24 i will try to configure home assistant tomorrow thanks..
  • Does HA ignore repeat sensor values?

    7
    0 Votes
    7 Posts
    3k Views
    martinhjelmareM
    @Cravecode I think you can set force_update to true under customize for the entity in question. It seems it's not possible to customize that property.
  • Cannot connect mysensors to Home Assistant

    11
    0 Votes
    11 Posts
    3k Views
    S
    @martinhjelmare Good eye! I can't believe I missed this. Thank you. This solved my problem. I look forward to using this in my home automation setup :)
  • smertsleep

    3
    0 Votes
    3 Posts
    1k Views
    S
    ah ok, now it's clear. Thank you very much
  • i need help...

    2
    0 Votes
    2 Posts
    1k Views
    gohanG
    Maybe node-red? You could try to see if there are any nodes already made for the hardware you already have installed.
  • [SOLVED] I_version spamming from GW

    Moved
    2
    0 Votes
    2 Posts
    1k Views
    martinhjelmareM
    It's normal. Home assistant requests the gateway version every 10 seconds as a test that the connection to the gateway is still OK.
  • Home Assistant doesn't connect to MySensors on Arduino MEGA

    3
    0 Votes
    3 Posts
    2k Views
    martinhjelmareM
    @mrlele My guess is that the arduino gateway reboots every two seconds, either due to a bug in the core arduino library or due to low power availability when sending from the radio. See similar topic: https://forum.mysensors.org/topic/7187/problem-adding-nodes-to-ha/2
  • Home Assistant HVAC/climate configuration

    2
    0 Votes
    2 Posts
    3k Views
    martinhjelmareM
    https://community.home-assistant.io/t/mysensors-hvac-not-showing-up/22540/13
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • First time sending message from HA to MySensors

    2
    0 Votes
    2 Posts
    2k Views
    martinhjelmareM
    @adamp237 It sounds as you currently only have one arduino that acts both as a gateway and motion sensor and you don't have any other devices talking to the gateway via nrf radio. If so it's OK to have the gateway sleeping as long as you don't plan to send messages to it. But if you plan to send messages to the arduino via mqtt from home assistant and/or connect other arduino via radio to the gateway, the gateway is not allowed to sleep. You can use wait instead to suspend execution. This is the most basic switch example controlling a relay: #include <MySensor.h> #include <SPI.h> #define SN "Relay" #define SV "1.0" #define CHILD_ID 1 #define RELAY_PIN 3 bool initialValueSent = false; MyMessage msgRelay(CHILD_ID, V_STATUS); void setup() { digitalWrite(RELAY_PIN, 0); // Initialize the digital pin as an output. pinMode(RELAY_PIN, OUTPUT); } void presentation() { sendSketchInfo(SN, SV); present(CHILD_ID, S_BINARY); } void loop() { if (!initialValueSent) { Serial.println("Sending initial value"); send(msgRelay.set(0)); Serial.println("Requesting initial value from controller"); request(CHILD_ID, V_STATUS); wait(2000, C_SET, V_STATUS); } } void receive(const MyMessage &message) { if (message.type == V_STATUS) { if (!initialValueSent) { Serial.println("Receiving initial value from controller"); initialValueSent = true; } // Change relay state. digitalWrite(RELAY_PIN, message.getInt() ? 1 : 0); send(msgRelay.set(message.getInt() ? 1 : 0)); } } Are you using the mysensors component in home assistant or are you defining your sensor yourself directly using the mqtt component and mqtt sensor platform? If you're using the mysensors component you don't need to change anything in the home assistant configuration, you just need to present the mysensors switch properly to home assistant and home assistant will add it as a switch entity automatically.
  • 0 Votes
    2 Posts
    969 Views
    martinhjelmareM
    @simbic Could be a baudrate mismatch or something interfering with the serial port.
  • Problem adding nodes to HA

    2
    0 Votes
    2 Posts
    2k Views
    martinhjelmareM
    @mardah Hi! Home assistant sends a request for gateway version every 10 seconds and if the gateway doesn't respond with version within another 10 seconds, home assistant disconnects from the gateway and tries to reconnect. Have you monitored your gateway serial port during these tests? Seeing that side of the conversation would be interesting. The gateway not responding to the version request is a sign that something is not working properly with the gateway, or that it is unstable. Once I had this issue when I had built the gateway sketch with an avr version that had a bug, and caused the gateway to reboot when starting the communication. This post describes what version of avr had the bug: https://forum.mysensors.org/topic/6257/ethernet-gateway-home-assitant/4
  • 0 Votes
    7 Posts
    7k Views
    MadhiasM
    @martinhjelmare OK, It was not an update, since when booting the gateway device from my backup drive I have the same radio problem. So I'll have a look onto that. The gateway is installed on a Raspberry Pi 3, powered by the 'normal' micro USB adapter. I could exchange the capacitor on the radio there as a start. [EDIT] Solved, just 'touched' the capacitor and wobbled around on the gateways radio, and radio communication works again. Sorry for the confusion...
  • Multiple gateways with HASS?

    11
    0 Votes
    11 Posts
    5k Views
    archiijsA
    Hi, well issue resolved and unsurprisingly it was me :D So the first I got home and took a look at logs again and saw that node two has rejected connection and indeed, it not responded from any UI and even from the light switch, restart fixed it, but now I wonder if it will happen again. After that, I used light switches on the third node manualy and they imidietly appeared in HA, but still nothing from DHT sensor. So I took a look at my code and found my error I got mixed some things around. I got code like this before #define CHILD_TEMP 2 // Id of sensor dht #define CHILD_HUM 3 // Id of sensor dht MyMessage msgHum(CHILD_TEMP, V_HUM); MyMessage msgTemp(CHILD_HUM, V_TEMP); So I fixed this like this #define CHILD_TEMP 2 // Id of sensor dht #define CHILD_HUM 3 // Id of sensor dht MyMessage msgHum(CHILD_HUM, V_HUM); MyMessage msgTemp(CHILD_TEMP, V_TEMP); After that, all started to work as expected. Thanks for your input. [image: 1499406983513-ha-resized.png]
  • RGB(W) lights with Home Assistant

    3
    0 Votes
    3 Posts
    2k Views
    L
    Ah perfect! Nice to hear that. I'll give home assistant a try then.
  • 1 Votes
    2 Posts
    2k Views
    martinhjelmareM
    @Mr6510 Hi! This is a known issue on the home assistant side. I have a fix in progress but it's not ready yet. You should be able to work around it by not sending values too frequently until the entity is added to home assistant, if you only have one value type. https://github.com/home-assistant/home-assistant/issues/8243
  • Hassbian and MySensors Gateway on RPi not working

    10
    0 Votes
    10 Posts
    3k Views
    gohanG
    A service listening on a port it is implicit that is a server waiting for a connection, otherwise is would not need to be listening for anyone calling 😀
  • Customize and reference mysensor sensors in configuration

    8
    0 Votes
    8 Posts
    4k Views
    martinhjelmareM
    Hi! All the answers that you've already found yourself should be available on these two pages, except the structure of entity_ids for mysensors devices. The latter is something we should add to the docs. https://home-assistant.io/docs/configuration/devices/ https://home-assistant.io/docs/configuration/customizing-devices/
  • HA 0.42.2 'Sensor has no attribute _battery_level' error

    3
    0 Votes
    3 Posts
    1k Views
    proddyP
    Yes, I'm using the persistence & pickle file. The PR fixes the problem. Just tested with latest HA dev branch. Thanks for the quick answer Martin.

20

Online

11.7k

Users

11.2k

Topics

113.0k

Posts