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/47The 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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login