Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
E

esa1966

@esa1966
About
Posts
7
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Need a Guide to debug MySensor and Home Assistant
    E esa1966

    The only think I'm able to do is to enable everything to mode "DEBUG"

    fe9fb961-e9f9-4de4-9e24-bdd609483890-image.png

    I'm not able to SET specific LEVEL to DEBUG mode for MQTT, MYSENSOR, SERVICE.

    90f6b3ae-c38a-4169-b0ac-bd5f0fb0c745-image.png

    a647993f-2143-44be-a913-10749cda33a9-image.png

    Home Assistant

  • Send/update Value from HA to Node
    E esa1966

    Thank.
    This is what I do for the receive :
    31c2265b-1a7d-4f2f-8121-d96075f7335e-image.png

    So, I'm now able to SET a VALUE from HA.
    e5adb4bf-dcb8-4c64-85df-a3c28e3ef6f0-image.png

    And after a pulse it is updated
    da8e2ee9-f1af-401d-b82e-7f74e02af8aa-image.png

    My question is most about how to use HA to do it more easily as possible.
    Do you think possible to use an TEXT object which can be sent to node through the MQTT ?

    Second question : how do you send value to the node (MQTT or other ?)

    Home Assistant

  • Send/update Value from HA to Node
    E esa1966

    @OldSurferDude

    Correct, I use a node based on Arduino.
    I'm not able to sent a message using MYSENSORS
    My Node :
    031082a1-3162-43f5-9209-98c3cb7fed01-image.png
    I'm not sure how to format it :
    a919f59f-338d-4787-974c-d44eeae8badd-image.png

    But, I'm able to see it works with MQTT.

    In my code, I add this : request(CHILD_ID2, V_TEXT);
    The receive function is like :
    58da4440-5184-452e-b3c8-a85fd414ad6b-image.png

    I receive a message : Received a message: GAS TXT

    So, I’m sure the arduino sketch is working and HA send a value correctly.
    So, the problem is that I don’t know how to format and send data using MQTT ‘My Sensor’

    To understand the format, I search in LOG to see how it is formatted :

    Line 14260: 2023-01-01 19:38:44.666 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting message on mysensors-in/2/2/1/0/47: 'GAS TXT', mid: 18

    So, I use MQTT to do the same :
    599d9a20-2ec7-4756-b120-25570f23d7c4-image.png

    This is the SERIAL output on Arduino Node :
    1b66ab6f-6c5c-49ec-bbd3-f401338b8ee0-image.png

    Conclusion : I have a workarround.

    Question 1 : Do you think possible to use MYSENSORS NOTIFICATION ?
    Question 2 : Is it possible to have a OBJECT in the dashboard to send a value using the MQTT ?

    Home Assistant

  • Need a Guide to debug MySensor and Home Assistant
    E esa1966

    Dear,
    I don't know what happened, but after a lot of test, no more new sensors appeared in HA.
    I read a lot of documentation about DEBUG and enabled LOG in HA.
    But, it doesn't exist a guide and I at the end, I give up.
    I decided to :

    1. Rebuild a new Hyper V with last version of HA. No improvement.
    2. Rebuild a new MySensorGW. No improvement. I was never able to build the stable version (compilation error at the end). I'm with version 2.4.0.
    3. Restart a new arduino SENSOR
      Nothing worked until I finally get a new SENSOR in HA. I don't know why.

    My question is to have a quick guide to understand the following :

    1. Enable DEBUG LOG in HA (what is the best and quick way).
    2. Check Configuration of ADDON like Mosquitto, MySENSORS,

    Best Regards

    Home Assistant

  • Send/update Value from HA to Node
    E esa1966

    Dear JeeLet,
    I already read those topic.
    But I read it again and make several test again.
    I'm not able to receive a message from NOTIFY.
    ![alt text](2adb2a5f-913a-453c-834f-d925fbe2ba4c-image.png image url)

    I would prefer to have a TEXT box in HA to send a value to a NODE, but is seems such feature doesn't exist.
    For me, it is a standard I use in SCADA system since 30 years.
    We need to put device in AUTO/MANUAL and SET a static value (Valve).
    Or another example is to SET a Setpoint (for a thermostat).

    Maybe I miss something and I have to read a bit more.

    Home Assistant

  • Send/update Value from HA to Node
    E esa1966

    Dear,

    With receive function, I can get back information from HA :
    But, which CARD I can use in HA to enter a VALUE or TEXT which can be sent to the NODE.

    Like a SWITCH which can be controlled by HA GUI, but in place to have a ON/OFF, enter a VALUE or TEXT in a BOX ?
    I suppose we can do this but I don't find it....
    Need a bit help.

    
    void presentation()
    {
      // for (uint16_t i=0; i<EEPROM_LOCAL_CONFIG_ADDRESS; i++) {
      //       hwWriteConfig(i,0xFF);
      //   }
        
    	sendSketchInfo("GasMeter", "1.0");
      present(CHILD_ID1, S_GAS,"GAS M3");
      present(CHILD_ID2, S_INFO,"GAS SINFO");
      present(CHILD_ID3, S_CUSTOM,"GAS SCUSTOM");
      present(CHILD_ID4, S_LIGHT);
      present(CHILD_ID5, S_LIGHT_LEVEL);
    
    }
    
    void loop()
    {
      value = 12347;
      send(msgVOL.set(value));
      send(msgTXT.set("GAS TXT"));
      send(msgCUSTOM.set("GAS Custom"));
      send(msgSTATUS.set(1));
      send(msgTST.set(50));
    	wait(5000);
      
      if (!initialValueSent) {
        Serial.println("Sending initial value");
        // Send initial values.
        send(msgTXT.set("-"));
        Serial.println("Requesting initial value from controller");
        request(CHILD_ID2, V_TEXT);
        wait(2000, C_SET, V_TEXT);
      }
    
    }
    
    void receive(const MyMessage &message) {
      if (message.type == V_TEXT) 
      {
        if (!initialValueSent) {
          Serial.println("Receiving initial value from controller");
          initialValueSent = true;
        }
        // Dummy print
        Serial.print("Message: ");
        Serial.print(message.sensor);
        Serial.print(", Message: ");
        Serial.println(message.getString());
        // Send message to controller
        send(msgTXT.set(message.getString()));
      }
      if (message.isEcho()) // keep message.isAck() for older MySensors version
        {
            Serial.println("Ceci est un accusé de réception de la passerelle");
            Serial.println("Cmd TL 1.a");
            return;
        }
    
    if (message.type==V_STATUS) // V_STATUS pour MyS v2.0, annulé V_LIGHT. 
        {    
            controllerState = message.getBool();
    
            // Write some debug info
            Serial.print("Changement entrant pour le capteur:");
            Serial.print(message.sensor);
            Serial.print(", New status: ");
            Serial.println(message.getBool());
        }
    }
    
    
    Home Assistant

  • Send/update Value from HA to Node
    E esa1966

    Dear,
    I'm a new user of the MySensor Library. Thank for all your work, it is very impressive !
    I successfully installed the Rpi GW and it work with HA.
    I successfully follow example to communicate with a node with a RFM69.
    I successfully realize a Gas Meter and I convert pulse input to meter cube (M3). I transmit value to HA.
    Issue : I suppose that I can lose some pulse and after a period, I need to synchronize the Value in my node with the value on the counter.
    Question : I want to update/adjust the value (M3) in my node.
    Two possibilities :

    1. Add a keyboard + a LCD on my node to adjust the value which is send to HA. Possible for me, but seems too complicated if another solution exist.
    2. be able to send a value through HA. I see a discussion link text but I'm lost and I'm not able to understand what to do.
    Home Assistant
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular