Skip to content
  • 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
  1. Home
  2. Controllers
  3. OpenHAB
  4. SmartSleep and multiple messages on HVAC sensor
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

SmartSleep and multiple messages on HVAC sensor

Scheduled Pinned Locked Moved OpenHAB
messagingopenhab2smartsleepqueueopenhab
3 Posts 2 Posters 1.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    ogghst
    wrote on last edited by
    #1

    Hello to all and thanks for this incredible library!

    I have a sensor that is controlling my climate system through an IR led.
    I have Openhab2.2 as controller with mysensors 2.3 addon, a mysensors 2.1.1 serial gateway, and a mysensors 2.1.1 NRF24 node presenting an S_HVAC sensor:

      present(CHILD_ID_HVAC,  S_HVAC, "Controllo Climatizzatore");
    

    it implements all the functionalities of an HVAC system by receiving and sending back several message types:

    MyMessage msgSmHvacTemp(CHILD_ID_HVAC, V_TEMP);                         //mapped to temperature
    MyMessage msgSmHvacFlowState(CHILD_ID_HVAC, V_HVAC_FLOW_STATE);           //mapped to HvacMode
    MyMessage msgSmHvacSpeed(CHILD_ID_HVAC, V_HVAC_SPEED);               //mapped to HvacFanMode
    MyMessage msgSmHvacFlowMode(CHILD_ID_HVAC, V_HVAC_FLOW_MODE);          //mapped to HvacVanneMode
    MyMessage msgSmHvacSetPointCool(CHILD_ID_HVAC, V_HVAC_SETPOINT_COOL); //mapped to temperature
    MyMessage msgSmHvacSetPointHeat(CHILD_ID_HVAC, V_HVAC_SETPOINT_HEAT); //mapped to temperature
    

    the sensor goes in smartsleep mode every 30 seconds.

    everything works fine if I adjust one parameter per sleep cycle on my controller, but if I set more than one parameter (e.g. temperature and fan speed) only one message is sent from openhab:

    2018-04-28 15:53:40.906 [DEBUG] [otocol.MySensorsAbstractConnection$MySensorsReader] - Message from gateway received: 0;255;3;0;9;TSF:MSG:READ,9-9-0,s=255,c=3,t=22,pt=5,l=4,sg=0:3098
    2018-04-28 15:53:40.907 [DEBUG] [otocol.MySensorsAbstractConnection$MySensorsReader] - Message from gateway received: 9;255;3;0;22;3098
    2018-04-28 15:53:40.908 [DEBUG] [otocol.MySensorsAbstractConnection$MySensorsWriter] - Sending to MySensors: 9;0;1;1;22;3
    2018-04-28 15:53:40.908 [DEBUG] [otocol.MySensorsAbstractConnection$MySensorsWriter] - Message for nodeId: 9 in queue needs to be send immediately!
    2018-04-28 15:53:40.962 [DEBUG] [otocol.MySensorsAbstractConnection$MySensorsReader] - Message from gateway received: 0;255;3;0;9;TSF:MSG:SEND,0-0-9-9,s=0,c=1,t=22,pt=0,l=1,sg=0,ft=0,st=OK:3
    2018-04-28 15:53:40.963 [DEBUG] [otocol.MySensorsAbstractConnection$MySensorsReader] - Message from gateway received: 0;255;3;0;9;TSF:MSG:READ,9-9-0,s=0,c=1,t=22,pt=0,l=1,sg=0:3
    2018-04-28 15:53:40.964 [DEBUG] [otocol.MySensorsAbstractConnection$MySensorsReader] - Message from gateway received: 0;255;3;0;9;TSF:MSG:ACK
    2018-04-28 15:53:40.965 [DEBUG] [otocol.MySensorsAbstractConnection$MySensorsReader] - Message from gateway received: 9;0;1;1;22;3
    

    is this a bug or I misunderstood the queue system of smartsleep? there a workaround for this?

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      I can't help you on the openhab side, but I can tell you that you may consider also other options https://forum.mysensors.org/topic/8018/mqtt-ir-remote or Broadlink RM devices

      O 1 Reply Last reply
      0
      • gohanG gohan

        I can't help you on the openhab side, but I can tell you that you may consider also other options https://forum.mysensors.org/topic/8018/mqtt-ir-remote or Broadlink RM devices

        O Offline
        O Offline
        ogghst
        wrote on last edited by
        #3

        @gohan thanks, however the issue i'm having is not in the HVAC implementation, but in the messaging..

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        15

        Online

        11.7k

        Users

        11.2k

        Topics

        113.0k

        Posts


        Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

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