Hi,
I think the line
$val = decode ('UTF-8', $val); # convert nbsp from fhemweb
https://github.com/fhem/fhem-mirror/blob/master/fhem/FHEM/98_Modbus.pm#L4986
is not needed, as with it I get the following error:
MapConvert called from Set did not find Větrání s cirkulací in reversed map Vypnuto:0, Automat:1, VÄtránÃ:2, VÄtránà s cirkulacÃ:3, Cirkulace:4, NoÄnà pÅedchlazenÃ:5, RozváženÃ:6, PÅetlakové vÄtránÃ:7,
Removing it fixes the problem.
I have a Modbus device with
attr Atrea dev-type-mode-map 0:Vypnuto, 1:Automat, 2:Větrání, 3:Větrání s cirkulací, 4:Cirkulace, 5:Noční předchlazení, 6:Rozvážení, 7:Přetlakové větrání
attr Atrea obj-h10709-reading mode-set
attr Atrea obj-h10709-set 1
attr Atrea obj-h10709-type mode
And I call it with
set Atrea mode-set Větrání s cirkulací
Thanks for reporting this.
It will be fixed in the next release of the Modbus module.
Regards,
Stefan