a line of the examples given in the sketches for the use of RS485 can be a source of problem
(it's my case, I use Pin2 or3 for a long time )
...
// Define this to enables DE-pin management on defined pin
#define MY_RS485_DE_PIN 2
(2 or 3 is an interrupt pin for a Uno)
...
avoided interrupt pins.
the pin 10 is a good thing
I mean the ESP framework version, selected by the board version
https://arduino.esp8266.com/Arduino/versions/2.0.0/doc/installing.html#:~:text=Open Boards Manager from Tools,from a drop-down box.
I finally got this to work. Unlike what the description here says, this is how to update the value:
In Home Assistant, go to Developer->Service->YAML mode:
service: text.set_value
data:
value: "967067"
target:
entity_id: text.water_meter_100_2
(change 967067 with the value you want to add to the current counter)
The service "notify.mysensors" seems to be deprecated by Home Assistant.