MyMessage with bool value from relay state to controller (fhem)?



  • I have a 4 channel relay in my node (version 2.11).
    It can be controlled by FHEM. Working fine so far 🙂

    Additionally I have a RCSwitch (https://github.com/sui77/rc-switch) receiver connected to the same node to switch the same 4 channel relay via a remote control (one of those cheep 433Mhz remote controls / seems to be stupid, but is necessary as backup)

    When I receive the messages from the remote control via RCSwitch I want to send a MyMessage to the controller and front-end to visualize the status.

    send(msgRelay.setSensor(CHILD_ID_RELAY1+id).set((bool)bValue));
    

    The UI doesn't seem to receive these messages, instead the log shows
    MYSENSORS_DEVICE MYSENSOR_1: ignoring C_SET-message no reading-mapping for childId 1, type tripped

    I define the message like: MyMessage msgRelay(CHILD_ID_RELAY1, V_TRIPPED);

    Any idea? Thanks in advance


    Log in to reply
     

  • Mod

    are you sure v_tripped is the right type?



  • @gohan I don't know. I also tried V_STATUS, doesn't work either ...

    edit: V_STATUS works, was a wrong configuration in FHEM


Log in to reply
 

3 out of 3

Suggested Topics


  • Announcements •   29 Mar 2014, 17:08

    1

  • Development •   13 days ago

    1

  • Development •   15 Jan 2025, 08:51

    6

  • Development •   14 Jan 2025, 22:07

    3

  • Development •   14 Dec 2024, 20:23

    3

  • Development •   17 days ago

    11

0
Online

11.5k
Users

11.1k
Topics

112.8k
Posts