I don’t use Loxone, but from my underatanding it should work with the following automation with the loxone integration:
trigger:
platform: state
entity_id: water_heater.my_lay_z_spa
attribute: current_temperature
action:
service: loxone.event_websocket_command
data:
uuid: "152ecfaa-03ac-f715-ffff403fb0c34b9e"
value: "{{ state_attr('water_heater.my_lay_z_spa', 'current_temp')|float }}"
Replace UUID with the value (I suppose you had to do this already to get the Loxone sensor into HA)
This will trigger every time the water_heater entity’s attribute current_temperature
changes and sends the new value to Loxone via Webhook.