### PROBLEM DESCRIPTION
Inverted shutter behaves not like expected.
### RE…QUESTED INFORMATION
- [x] Read the [Contributing Guide and Policy](https://github.com/arendst/Tasmota/blob/development/CONTRIBUTING.md) and [the Code of Conduct](https://github.com/arendst/Tasmota/blob/development/CODE_OF_CONDUCT.md)
- [x] Searched the problem in [issues](https://github.com/arendst/Tasmota/issues)
- [x] Searched the problem in [discussions](https://github.com/arendst/Tasmota/discussions)
- [x] Searched the problem in the [docs](https://tasmota.github.io/docs/FAQ)
- [ ] Searched the problem in the [chat](https://discord.gg/Ks2Kzd4)
- [x] Device used (e.g., Sonoff Basic): Designator3 and other ESP 8266 devices
- [x] Tasmota binary firmware version number used: 13.0.0
- [x] Pre-compiled
- [ ] Self-compiled
- [ ] Flashing tools used: _____
- [x] Provide the output of command: `Backlog Template; Module; GPIO 255`:
```lua
{"NAME":"Designator3","GPIO":[0,0,0,0,225,0,0,0,32,224,33,0,544,0],"FLAG":0,"BASE":18}
{"Module":{"0":"Designator3"}}
{"GPIO0":{"0":"None"},"GPIO1":{"0":"None"},"GPIO2":{"0":"None"},"GPIO3":{"0":"None"},"GPIO4":{"225":"Relay2"},"GPIO5":{"0":"None"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO12":{"32":"Button1"},"GPIO13":{"224":"Relay1"},"GPIO14":{"33":"Button2"},"GPIO15":{"0":"None"},"GPIO16":{"544":"LedLink"},"GPIO17":{"0":"None"}}
```
- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
No rules
```
- [x] Provide the output of this command: `Status 0`:
```lua
STATUS = {"Status":{"Module":0,"DeviceName":"Tasmota","FriendlyName":["Tasmota",""],"Topic":"Shutter2","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0,"StatusRetain":0}}
STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota-DE.bin.gz","RestartReason":"Power On","Uptime":"0T18:32:52","StartupUTC":"2023-07-13T14:14:31","Sleep":50,"CfgHolder":4617,"BootCount":20,"BCResetTime":"2023-01-17T13:07:37","SaveCount":217,"SaveAddress":"F6000"}}
STATUS2 = {"StatusFWR":{"Version":"13.0.0(tasmota)","BuildDateTime":"2023.06.26 10:58:29","Boot":31,"Core":"2_7_4_9","SDK":"2.2.2-dev(38a443e)","CpuFrequency":80,"Hardware":"ESP8266EX","CR":"354/699"}}
STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["JRF-73529421",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["0000C009","2805C80001000600003C5A0A192800000000","40000080","00006000","00004000","00000000"]}}
STATUS4 = {"StatusMEM":{"ProgramSize":635,"Free":368,"Heap":21,"ProgramFlashSize":1024,"FlashSize":2048,"FlashChipId":"1540C8","FlashFrequency":40,"FlashMode":"DOUT","Features":["00000407","8F9AC787","04368001","000000CF","010013C0","C000F981","00004004","00001000","54000020","00000080"],"Drivers":"1,2,3,4,5,6,7,8,9,10,12,16,18,19,20,21,22,24,26,27,29,30,35,37,45,62,68","Sensors":"1,2,3,4,5,6","I2CDriver":"7"}}
STATUS5 = {"StatusNET":{"Hostname":"Shutter2-4508","IPAddress":"10.100.200.106","Gateway":"10.100.200.1","Subnetmask":"255.255.255.0","DNSServer1":"10.100.200.1","DNSServer2":"0.0.0.0","Mac":"84:CC:A8:B7:F1:9C","Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0}}
STATUS6 = {"StatusMQT":{"MqttHost":"10.100.200.222","MqttPort":1883,"MqttClientMask":"Shutter2_%06X","MqttClient":"Shutter2_B7F19C","MqttUser":"DVES_USER","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}}
STATUS7 = {"StatusTIM":{"UTC":"2023-07-14T08:47:23","Local":"2023-07-14T10:47:23","StartDST":"2023-03-26T02:00:00","EndDST":"2023-10-29T03:00:00","Timezone":99,"Sunrise":"06:01","Sunset":"21:50"}}
STATUS10 = {"StatusSNS":{"Time":"2023-07-14T10:47:23","Shutter1":{"Position":0,"Direction":0,"Target":100,"Tilt":0}}}
STATUS11 = {"StatusSTS":{"Time":"2023-07-14T10:47:23","Uptime":"0T18:32:52","UptimeSec":66772,"Heap":21,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"JRF-73529421","BSSId":"09:ab:2F:07:76:15","Channel":6,"Mode":"11n","RSSI":70,"Signal":-65,"LinkCount":1,"Downtime":"0T00:00:05"}}}
STATUS13 = {"StatusSHT":{"SHT0":{"Relay1":1,"Relay2":2,"Open":100,"Close":100,"50perc":50,"Delay":0,"Opt":"0001","Calib":[300,500,700,900,1000],"Mode":"1"}}}
```
- [ ] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
```
### TO REPRODUCE
_Steps to reproduce the behavior:_
- setup a device as shutter
- set ShutterInvert1 1
### EXPECTED BEHAVIOUR
When a shutter is used in inverted mode it behaves not like expected. In version 12 everything was OK. I tried to show it in the following table:
Test|ShutterInvert<x> 0|ShutterInvert<x> 1 (expected behavior)|ShutterInvert<x> 1 (real behavior)
---|---|---|---
Relay 1|open shutter|open shutter|close shutter
Relay 2|close shutter|close shutter|open shutter
Webbutton UP|open shutter|open shutter|closing shutter (Relay 2), slider moves to CLOSE
Webbutton DOWN|close shutter|close shutter|opening shutter (Relay 1), slider moves to OPEN
Slider OPEN|open shutter|open shutter|closing shutter (Relay 2); click on OPEN, when it is OPEN(!?); slider moves to CLOSE
Slider CLOSE|close shutter|close shutter|opening shutter (Relay 1); click on CLOSE, when it is CLOSE(!?); slider moves to OPEN
ShutterOpen<x>|open shutter|open shutter|closing shutter (Relay 2), slider moves to CLOSE
ShutterClose<x>|close shutter|close shutter|opening shutter (Relay 1), slider moves to OPEN
ShutterPosition<x> 100|open shutter|close shutter|opening shutter (Relay 1), slider moves to OPEN
ShutterPosition<x> 0|close shutter|open shutter|closing shutter (Relay 2), slider moves to CLOSE
Reported position when open|100|0|Not clear; slider OPEN -> 0; shutter open -> 100
Reported position when close|0|100|Not clear; slider CLOSE -> 100; shutter close -> 0