That’s my script, which I have in things.
Bridge modbus:tcp:sunnyisland [ host="##ipv4##", port=502, id=3, connectMaxTries=3] {
// SMA battery loading in percent
Bridge poller ISLAND_load_bat_percent [ start=30845, length=4, refresh=5000, type=“input” ] {
Thing data lISLAND_load_bat_percent [ readStart="30845", readValueType="uint32" ]
}
// actual_bat_current
Bridge poller ISLAND_actual_bat_current [ start=30843, length=4, refresh=5000, type=“input” ] {
Thing data ISLAND_actual_bat_current [ readStart="30843", readValueType="int32", readTransform="JS(divide1000.js)" ]
}
// bat_temp
Bridge poller ISLAND_actual_bat_temp [ start=30849, length=4, refresh=5000, type=“input” ]
{
Thing data ISLAND_actual_bat_temp [ readStart="30849", readValueType="int32",readTransform="JS(divide10.js)" ]
}
// today charge energy
Bridge poller ISLAND_today_charge_energy [ start=30595, length=4, refresh=5000, type=“input” ]
{
Thing data ISLAND_today_charge_energy [ readStart="30595", readValueType="uint32" ]
}
// today discharge energy
Bridge poller ISLAND_today_discharge_energy [ start=30597, length=4, refresh=5000, type=“input” ]
{
Thing data ISLAND_today_discharge_energy [ readStart="30597", readValueType="uint32" ]
}
// battery charge status
Bridge poller ISLAND_bat_charge_status [ start=31057, length=4, refresh=5000, type=“input” ]
{
Thing data ISLAND_bat_charge_status [ readStart="31057", readValueType="uint32" ]
}
// battery charge count
Bridge poller ISLAND_battery_charge_count [ start=30857, length=4, refresh=5000, type=“input” ]
{
Thing data ISLAND_battery_charge_count [ readStart="30857", readValueType="int32" ]
}
// actual battery charge in Watt
Bridge poller ISLAND_actual_bat_charge [ start=31393, length=4, refresh=5000, type="input" ]
{
Thing data ISLAND_actual_bat_charge [ readStart="31393", readValueType="int32" ]
}
// actual battery discharge – funktioniert nicht
// Bridge poller ISLAND_actual_battery_discharge [ start=31395, length=4, refresh=5000, type=“input” ]
// {
// Thing data ISLAND_actual_battery_discharge [ readStart="31395", readValueType="uint32" ]
// }
// actual power island grid / Wirkleistung ISLAND in W
Bridge poller ISLAND_actual_power [ start=30775, length=4, refresh=5000, type="input" ]
{
Thing data ISLAND_actual_power [ readStart="30775", readValueType="int32" ]
}
// actual Absorptionsphase ja/nein
Bridge poller ISLAND_Absorptionsphase [ start=31059, length=4, refresh=5000, type="input" ]
{
Thing data ISLAND_Absorptionsphase [ readStart="31059", readValueType="uint32" ]
}
}