Home Assistant "The notify.mysensors service will be removed"



  • OK fine (grrrrr) below you'll my implementation of an HA work around

    But I find that the data is sent to a slightly different topic
    mysensorsor-in/0/1/1/0/47
    vs
    mysensorsor-in/0/1/1/1/47

    The data is still received because the code is looking for the sensor, but what's the difference?

    MySensors device code (snippet)

    #define CHILD_ID_ZONE 1
    .
    .
    .
    void presentation(){
    	present(CHILD_ID_ZONE,S_INFO,"Zone");
    }
    .
    .
    .
    void receive(const MyMessage &message){
    	if (message.getSender() == 0 ) {  // Only listen to messages for device on gateway
    		if (message.getSensor() == 1 ) {
    			ZoneToWater = (int8_t)(message.getLong());
                   }
          }
    .
    .
    .}
    

    Home Assistant script

    alias: SendCustomToArduino
    description: >-
      notify.mysensors is deprecated
        Sends to topic mysensorsor-in/0/1/1/0/47
      How to do the same thing using text.set_value service
        Sends to topic mysensorsor-in/0/1/1/1/47
    sequence:
      - service: text.set_value
        target: 
          entity_id: text.zone
        data:
          value: "12"
      - service: notify.mysensors
        data:
          message: 13
          target: Zone
    mode: single
    

Log in to reply
 

Suggested Topics

  • 1
  • 1
  • 5
  • 8
  • 5
  • 2

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts