diff --git a/homeassistant/components/rainmachine/__init__.py b/homeassistant/components/rainmachine/__init__.py index 65648b8d44f..2727e877bfe 100644 --- a/homeassistant/components/rainmachine/__init__.py +++ b/homeassistant/components/rainmachine/__init__.py @@ -54,8 +54,11 @@ from .const import ( ) from .coordinator import RainMachineDataUpdateCoordinator -DEFAULT_SSL = True +API_URL_REFERENCE = ( + "https://rainmachine.docs.apiary.io/#reference/weather-services/parserdata/post" +) +DEFAULT_SSL = True PLATFORMS = [ Platform.BINARY_SENSOR, @@ -455,7 +458,15 @@ async def async_setup_entry( # noqa: C901 ): if hass.services.has_service(DOMAIN, service_name): continue - hass.services.async_register(DOMAIN, service_name, method, schema=schema) + hass.services.async_register( + DOMAIN, + service_name, + method, + schema=schema, + description_placeholders={ + "api_url": API_URL_REFERENCE, + }, + ) return True diff --git a/homeassistant/components/rainmachine/strings.json b/homeassistant/components/rainmachine/strings.json index a18d487df2c..778d8ebb16f 100644 --- a/homeassistant/components/rainmachine/strings.json +++ b/homeassistant/components/rainmachine/strings.json @@ -128,7 +128,7 @@ "name": "Push flow meter data" }, "push_weather_data": { - "description": "Sends weather data from Home Assistant to the RainMachine device.\nLocal Weather Push service should be enabled from Settings > Weather > Developer tab for RainMachine to consider the values being sent. Units must be sent in metric; no conversions are performed by the integration.\nSee details of RainMachine API here: https://rainmachine.docs.apiary.io/#reference/weather-services/parserdata/post.", + "description": "Sends weather data from Home Assistant to the RainMachine device.\nLocal Weather Push service should be enabled from Settings > Weather > Developer tab for RainMachine to consider the values being sent. Units must be sent in metric; no conversions are performed by the integration.\nSee details of RainMachine API here: {api_url}", "fields": { "condition": { "description": "Current weather condition code (WNUM).",