Quantcast
Channel: Configuration - Home Assistant Community
Viewing all 106043 articles
Browse latest View live

RESTful sensor and attributes

$
0
0

I am working on an accuweather api call to get a 12hr forecast.
I am struggling to retrieve the data and get it into the sensors with the attributes.
I understand the RESTful sensor attributes, but they are usually used in a cascaded view. Meaning the attributes are one layer down in the array. However my attributes are the hourly for each of the sensors.

Here is the response:

[
    {
        "DateTime": "2024-02-17T00:00:00-06:00",
        "EpochDateTime": 1708149600,
        "WeatherIcon": 7,
        "IconPhrase": "Cloudy",
        "HasPrecipitation": false,
        "IsDaylight": false,
        "Temperature": {
            "Value": 50.0,
            "Unit": "F",
            "UnitType": 18
        },
        "RealFeelTemperature": {
            "Value": 42.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Chilly"
        },
        "RealFeelTemperatureShade": {
            "Value": 42.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Chilly"
        },
        "WetBulbTemperature": {
            "Value": 46.0,
            "Unit": "F",
            "UnitType": 18
        },
        "WetBulbGlobeTemperature": {
            "Value": 47.0,
            "Unit": "F",
            "UnitType": 18
        },
        "DewPoint": {
            "Value": 40.0,
            "Unit": "F",
            "UnitType": 18
        },
        "Wind": {
            "Speed": {
                "Value": 13.8,
                "Unit": "mi/h",
                "UnitType": 9
            },
            "Direction": {
                "Degrees": 6,
                "Localized": "N",
                "English": "N"
            }
        },
        "WindGust": {
            "Speed": {
                "Value": 25.3,
                "Unit": "mi/h",
                "UnitType": 9
            }
        },
        "RelativeHumidity": 68,
        "IndoorRelativeHumidity": 36,
        "Visibility": {
            "Value": 10.0,
            "Unit": "mi",
            "UnitType": 2
        },
        "Ceiling": {
            "Value": 30000.0,
            "Unit": "ft",
            "UnitType": 0
        },
        "UVIndex": 0,
        "UVIndexText": "Low",
        "PrecipitationProbability": 5,
        "ThunderstormProbability": 0,
        "RainProbability": 5,
        "SnowProbability": 0,
        "IceProbability": 0,
        "TotalLiquid": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Rain": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Snow": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Ice": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "CloudCover": 95,
        "Evapotranspiration": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "SolarIrradiance": {
            "Value": 0.0,
            "Unit": "W/m²",
            "UnitType": 33
        },
        "MobileLink": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=0&lang=en-us",
        "Link": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=0&lang=en-us"
    },
    {
        "DateTime": "2024-02-17T01:00:00-06:00",
        "EpochDateTime": 1708153200,
        "WeatherIcon": 7,
        "IconPhrase": "Cloudy",
        "HasPrecipitation": false,
        "IsDaylight": false,
        "Temperature": {
            "Value": 48.0,
            "Unit": "F",
            "UnitType": 18
        },
        "RealFeelTemperature": {
            "Value": 39.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "RealFeelTemperatureShade": {
            "Value": 39.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "WetBulbTemperature": {
            "Value": 44.0,
            "Unit": "F",
            "UnitType": 18
        },
        "WetBulbGlobeTemperature": {
            "Value": 48.0,
            "Unit": "F",
            "UnitType": 18
        },
        "DewPoint": {
            "Value": 38.0,
            "Unit": "F",
            "UnitType": 18
        },
        "Wind": {
            "Speed": {
                "Value": 15.0,
                "Unit": "mi/h",
                "UnitType": 9
            },
            "Direction": {
                "Degrees": 5,
                "Localized": "N",
                "English": "N"
            }
        },
        "WindGust": {
            "Speed": {
                "Value": 28.8,
                "Unit": "mi/h",
                "UnitType": 9
            }
        },
        "RelativeHumidity": 68,
        "IndoorRelativeHumidity": 33,
        "Visibility": {
            "Value": 10.0,
            "Unit": "mi",
            "UnitType": 2
        },
        "Ceiling": {
            "Value": 30000.0,
            "Unit": "ft",
            "UnitType": 0
        },
        "UVIndex": 0,
        "UVIndexText": "Low",
        "PrecipitationProbability": 0,
        "ThunderstormProbability": 0,
        "RainProbability": 0,
        "SnowProbability": 0,
        "IceProbability": 0,
        "TotalLiquid": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Rain": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Snow": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Ice": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "CloudCover": 95,
        "Evapotranspiration": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "SolarIrradiance": {
            "Value": 0.0,
            "Unit": "W/m²",
            "UnitType": 33
        },
        "MobileLink": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=1&lang=en-us",
        "Link": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=1&lang=en-us"
    },
    {
        "DateTime": "2024-02-17T02:00:00-06:00",
        "EpochDateTime": 1708156800,
        "WeatherIcon": 7,
        "IconPhrase": "Cloudy",
        "HasPrecipitation": false,
        "IsDaylight": false,
        "Temperature": {
            "Value": 47.0,
            "Unit": "F",
            "UnitType": 18
        },
        "RealFeelTemperature": {
            "Value": 37.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "RealFeelTemperatureShade": {
            "Value": 37.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "WetBulbTemperature": {
            "Value": 42.0,
            "Unit": "F",
            "UnitType": 18
        },
        "WetBulbGlobeTemperature": {
            "Value": 47.0,
            "Unit": "F",
            "UnitType": 18
        },
        "DewPoint": {
            "Value": 36.0,
            "Unit": "F",
            "UnitType": 18
        },
        "Wind": {
            "Speed": {
                "Value": 16.1,
                "Unit": "mi/h",
                "UnitType": 9
            },
            "Direction": {
                "Degrees": 6,
                "Localized": "N",
                "English": "N"
            }
        },
        "WindGust": {
            "Speed": {
                "Value": 27.6,
                "Unit": "mi/h",
                "UnitType": 9
            }
        },
        "RelativeHumidity": 68,
        "IndoorRelativeHumidity": 31,
        "Visibility": {
            "Value": 10.0,
            "Unit": "mi",
            "UnitType": 2
        },
        "Ceiling": {
            "Value": 30000.0,
            "Unit": "ft",
            "UnitType": 0
        },
        "UVIndex": 0,
        "UVIndexText": "Low",
        "PrecipitationProbability": 0,
        "ThunderstormProbability": 0,
        "RainProbability": 0,
        "SnowProbability": 0,
        "IceProbability": 0,
        "TotalLiquid": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Rain": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Snow": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Ice": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "CloudCover": 95,
        "Evapotranspiration": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "SolarIrradiance": {
            "Value": 0.0,
            "Unit": "W/m²",
            "UnitType": 33
        },
        "MobileLink": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=2&lang=en-us",
        "Link": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=2&lang=en-us"
    },
    {
        "DateTime": "2024-02-17T03:00:00-06:00",
        "EpochDateTime": 1708160400,
        "WeatherIcon": 7,
        "IconPhrase": "Cloudy",
        "HasPrecipitation": false,
        "IsDaylight": false,
        "Temperature": {
            "Value": 45.0,
            "Unit": "F",
            "UnitType": 18
        },
        "RealFeelTemperature": {
            "Value": 35.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "RealFeelTemperatureShade": {
            "Value": 35.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "WetBulbTemperature": {
            "Value": 40.0,
            "Unit": "F",
            "UnitType": 18
        },
        "WetBulbGlobeTemperature": {
            "Value": 45.0,
            "Unit": "F",
            "UnitType": 18
        },
        "DewPoint": {
            "Value": 34.0,
            "Unit": "F",
            "UnitType": 18
        },
        "Wind": {
            "Speed": {
                "Value": 16.1,
                "Unit": "mi/h",
                "UnitType": 9
            },
            "Direction": {
                "Degrees": 7,
                "Localized": "N",
                "English": "N"
            }
        },
        "WindGust": {
            "Speed": {
                "Value": 28.8,
                "Unit": "mi/h",
                "UnitType": 9
            }
        },
        "RelativeHumidity": 67,
        "IndoorRelativeHumidity": 43,
        "Visibility": {
            "Value": 10.0,
            "Unit": "mi",
            "UnitType": 2
        },
        "Ceiling": {
            "Value": 30000.0,
            "Unit": "ft",
            "UnitType": 0
        },
        "UVIndex": 0,
        "UVIndexText": "Low",
        "PrecipitationProbability": 0,
        "ThunderstormProbability": 0,
        "RainProbability": 0,
        "SnowProbability": 0,
        "IceProbability": 0,
        "TotalLiquid": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Rain": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Snow": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Ice": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "CloudCover": 95,
        "Evapotranspiration": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "SolarIrradiance": {
            "Value": 0.0,
            "Unit": "W/m²",
            "UnitType": 33
        },
        "MobileLink": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=3&lang=en-us",
        "Link": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=3&lang=en-us"
    },
    {
        "DateTime": "2024-02-17T04:00:00-06:00",
        "EpochDateTime": 1708164000,
        "WeatherIcon": 7,
        "IconPhrase": "Cloudy",
        "HasPrecipitation": false,
        "IsDaylight": false,
        "Temperature": {
            "Value": 43.0,
            "Unit": "F",
            "UnitType": 18
        },
        "RealFeelTemperature": {
            "Value": 33.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "RealFeelTemperatureShade": {
            "Value": 33.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "WetBulbTemperature": {
            "Value": 39.0,
            "Unit": "F",
            "UnitType": 18
        },
        "WetBulbGlobeTemperature": {
            "Value": 43.0,
            "Unit": "F",
            "UnitType": 18
        },
        "DewPoint": {
            "Value": 33.0,
            "Unit": "F",
            "UnitType": 18
        },
        "Wind": {
            "Speed": {
                "Value": 16.1,
                "Unit": "mi/h",
                "UnitType": 9
            },
            "Direction": {
                "Degrees": 8,
                "Localized": "N",
                "English": "N"
            }
        },
        "WindGust": {
            "Speed": {
                "Value": 27.6,
                "Unit": "mi/h",
                "UnitType": 9
            }
        },
        "RelativeHumidity": 66,
        "IndoorRelativeHumidity": 41,
        "Visibility": {
            "Value": 10.0,
            "Unit": "mi",
            "UnitType": 2
        },
        "Ceiling": {
            "Value": 30000.0,
            "Unit": "ft",
            "UnitType": 0
        },
        "UVIndex": 0,
        "UVIndexText": "Low",
        "PrecipitationProbability": 0,
        "ThunderstormProbability": 0,
        "RainProbability": 0,
        "SnowProbability": 0,
        "IceProbability": 0,
        "TotalLiquid": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Rain": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Snow": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Ice": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "CloudCover": 95,
        "Evapotranspiration": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "SolarIrradiance": {
            "Value": 0.0,
            "Unit": "W/m²",
            "UnitType": 33
        },
        "MobileLink": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=4&lang=en-us",
        "Link": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=4&lang=en-us"
    },
    {
        "DateTime": "2024-02-17T05:00:00-06:00",
        "EpochDateTime": 1708167600,
        "WeatherIcon": 7,
        "IconPhrase": "Cloudy",
        "HasPrecipitation": false,
        "IsDaylight": false,
        "Temperature": {
            "Value": 42.0,
            "Unit": "F",
            "UnitType": 18
        },
        "RealFeelTemperature": {
            "Value": 31.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "RealFeelTemperatureShade": {
            "Value": 31.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "WetBulbTemperature": {
            "Value": 38.0,
            "Unit": "F",
            "UnitType": 18
        },
        "WetBulbGlobeTemperature": {
            "Value": 42.0,
            "Unit": "F",
            "UnitType": 18
        },
        "DewPoint": {
            "Value": 32.0,
            "Unit": "F",
            "UnitType": 18
        },
        "Wind": {
            "Speed": {
                "Value": 16.1,
                "Unit": "mi/h",
                "UnitType": 9
            },
            "Direction": {
                "Degrees": 10,
                "Localized": "N",
                "English": "N"
            }
        },
        "WindGust": {
            "Speed": {
                "Value": 27.6,
                "Unit": "mi/h",
                "UnitType": 9
            }
        },
        "RelativeHumidity": 67,
        "IndoorRelativeHumidity": 40,
        "Visibility": {
            "Value": 10.0,
            "Unit": "mi",
            "UnitType": 2
        },
        "Ceiling": {
            "Value": 30000.0,
            "Unit": "ft",
            "UnitType": 0
        },
        "UVIndex": 0,
        "UVIndexText": "Low",
        "PrecipitationProbability": 0,
        "ThunderstormProbability": 0,
        "RainProbability": 0,
        "SnowProbability": 0,
        "IceProbability": 0,
        "TotalLiquid": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Rain": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Snow": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Ice": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "CloudCover": 95,
        "Evapotranspiration": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "SolarIrradiance": {
            "Value": 0.0,
            "Unit": "W/m²",
            "UnitType": 33
        },
        "MobileLink": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=5&lang=en-us",
        "Link": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=5&lang=en-us"
    },
    {
        "DateTime": "2024-02-17T06:00:00-06:00",
        "EpochDateTime": 1708171200,
        "WeatherIcon": 7,
        "IconPhrase": "Cloudy",
        "HasPrecipitation": false,
        "IsDaylight": false,
        "Temperature": {
            "Value": 40.0,
            "Unit": "F",
            "UnitType": 18
        },
        "RealFeelTemperature": {
            "Value": 29.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "RealFeelTemperatureShade": {
            "Value": 29.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "WetBulbTemperature": {
            "Value": 36.0,
            "Unit": "F",
            "UnitType": 18
        },
        "WetBulbGlobeTemperature": {
            "Value": 40.0,
            "Unit": "F",
            "UnitType": 18
        },
        "DewPoint": {
            "Value": 30.0,
            "Unit": "F",
            "UnitType": 18
        },
        "Wind": {
            "Speed": {
                "Value": 16.1,
                "Unit": "mi/h",
                "UnitType": 9
            },
            "Direction": {
                "Degrees": 11,
                "Localized": "N",
                "English": "N"
            }
        },
        "WindGust": {
            "Speed": {
                "Value": 26.5,
                "Unit": "mi/h",
                "UnitType": 9
            }
        },
        "RelativeHumidity": 68,
        "IndoorRelativeHumidity": 39,
        "Visibility": {
            "Value": 10.0,
            "Unit": "mi",
            "UnitType": 2
        },
        "Ceiling": {
            "Value": 30000.0,
            "Unit": "ft",
            "UnitType": 0
        },
        "UVIndex": 0,
        "UVIndexText": "Low",
        "PrecipitationProbability": 0,
        "ThunderstormProbability": 0,
        "RainProbability": 0,
        "SnowProbability": 0,
        "IceProbability": 0,
        "TotalLiquid": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Rain": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Snow": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Ice": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "CloudCover": 95,
        "Evapotranspiration": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "SolarIrradiance": {
            "Value": 0.0,
            "Unit": "W/m²",
            "UnitType": 33
        },
        "MobileLink": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=6&lang=en-us",
        "Link": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=6&lang=en-us"
    },
    {
        "DateTime": "2024-02-17T07:00:00-06:00",
        "EpochDateTime": 1708174800,
        "WeatherIcon": 35,
        "IconPhrase": "Partly cloudy",
        "HasPrecipitation": false,
        "IsDaylight": false,
        "Temperature": {
            "Value": 40.0,
            "Unit": "F",
            "UnitType": 18
        },
        "RealFeelTemperature": {
            "Value": 30.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "RealFeelTemperatureShade": {
            "Value": 30.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "WetBulbTemperature": {
            "Value": 36.0,
            "Unit": "F",
            "UnitType": 18
        },
        "WetBulbGlobeTemperature": {
            "Value": 40.0,
            "Unit": "F",
            "UnitType": 18
        },
        "DewPoint": {
            "Value": 30.0,
            "Unit": "F",
            "UnitType": 18
        },
        "Wind": {
            "Speed": {
                "Value": 15.0,
                "Unit": "mi/h",
                "UnitType": 9
            },
            "Direction": {
                "Degrees": 11,
                "Localized": "N",
                "English": "N"
            }
        },
        "WindGust": {
            "Speed": {
                "Value": 25.3,
                "Unit": "mi/h",
                "UnitType": 9
            }
        },
        "RelativeHumidity": 66,
        "IndoorRelativeHumidity": 38,
        "Visibility": {
            "Value": 10.0,
            "Unit": "mi",
            "UnitType": 2
        },
        "Ceiling": {
            "Value": 28000.0,
            "Unit": "ft",
            "UnitType": 0
        },
        "UVIndex": 1,
        "UVIndexText": "Low",
        "PrecipitationProbability": 0,
        "ThunderstormProbability": 0,
        "RainProbability": 0,
        "SnowProbability": 0,
        "IceProbability": 0,
        "TotalLiquid": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Rain": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Snow": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Ice": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "CloudCover": 45,
        "Evapotranspiration": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "SolarIrradiance": {
            "Value": 109.6,
            "Unit": "W/m²",
            "UnitType": 33
        },
        "MobileLink": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=7&lang=en-us",
        "Link": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=7&lang=en-us"
    },
    {
        "DateTime": "2024-02-17T08:00:00-06:00",
        "EpochDateTime": 1708178400,
        "WeatherIcon": 3,
        "IconPhrase": "Partly sunny",
        "HasPrecipitation": false,
        "IsDaylight": true,
        "Temperature": {
            "Value": 39.0,
            "Unit": "F",
            "UnitType": 18
        },
        "RealFeelTemperature": {
            "Value": 30.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "RealFeelTemperatureShade": {
            "Value": 28.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "WetBulbTemperature": {
            "Value": 35.0,
            "Unit": "F",
            "UnitType": 18
        },
        "WetBulbGlobeTemperature": {
            "Value": 39.0,
            "Unit": "F",
            "UnitType": 18
        },
        "DewPoint": {
            "Value": 29.0,
            "Unit": "F",
            "UnitType": 18
        },
        "Wind": {
            "Speed": {
                "Value": 15.0,
                "Unit": "mi/h",
                "UnitType": 9
            },
            "Direction": {
                "Degrees": 11,
                "Localized": "N",
                "English": "N"
            }
        },
        "WindGust": {
            "Speed": {
                "Value": 25.3,
                "Unit": "mi/h",
                "UnitType": 9
            }
        },
        "RelativeHumidity": 66,
        "IndoorRelativeHumidity": 38,
        "Visibility": {
            "Value": 10.0,
            "Unit": "mi",
            "UnitType": 2
        },
        "Ceiling": {
            "Value": 30000.0,
            "Unit": "ft",
            "UnitType": 0
        },
        "UVIndex": 2,
        "UVIndexText": "Low",
        "PrecipitationProbability": 0,
        "ThunderstormProbability": 0,
        "RainProbability": 0,
        "SnowProbability": 0,
        "IceProbability": 0,
        "TotalLiquid": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Rain": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Snow": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Ice": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "CloudCover": 45,
        "Evapotranspiration": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "SolarIrradiance": {
            "Value": 317.8,
            "Unit": "W/m²",
            "UnitType": 33
        },
        "MobileLink": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=8&lang=en-us",
        "Link": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=8&lang=en-us"
    },
    {
        "DateTime": "2024-02-17T09:00:00-06:00",
        "EpochDateTime": 1708182000,
        "WeatherIcon": 3,
        "IconPhrase": "Partly sunny",
        "HasPrecipitation": false,
        "IsDaylight": true,
        "Temperature": {
            "Value": 39.0,
            "Unit": "F",
            "UnitType": 18
        },
        "RealFeelTemperature": {
            "Value": 30.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "RealFeelTemperatureShade": {
            "Value": 27.0,
            "Unit": "F",
            "UnitType": 18,
            "Phrase": "Cold"
        },
        "WetBulbTemperature": {
            "Value": 35.0,
            "Unit": "F",
            "UnitType": 18
        },
        "WetBulbGlobeTemperature": {
            "Value": 39.0,
            "Unit": "F",
            "UnitType": 18
        },
        "DewPoint": {
            "Value": 29.0,
            "Unit": "F",
            "UnitType": 18
        },
        "Wind": {
            "Speed": {
                "Value": 15.0,
                "Unit": "mi/h",
                "UnitType": 9
            },
            "Direction": {
                "Degrees": 11,
                "Localized": "N",
                "English": "N"
            }
        },
        "WindGust": {
            "Speed": {
                "Value": 25.3,
                "Unit": "mi/h",
                "UnitType": 9
            }
        },
        "RelativeHumidity": 67,
        "IndoorRelativeHumidity": 38,
        "Visibility": {
            "Value": 10.0,
            "Unit": "mi",
            "UnitType": 2
        },
        "Ceiling": {
            "Value": 30000.0,
            "Unit": "ft",
            "UnitType": 0
        },
        "UVIndex": 2,
        "UVIndexText": "Low",
        "PrecipitationProbability": 0,
        "ThunderstormProbability": 0,
        "RainProbability": 0,
        "SnowProbability": 0,
        "IceProbability": 0,
        "TotalLiquid": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Rain": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Snow": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "Ice": {
            "Value": 0.0,
            "Unit": "in",
            "UnitType": 1
        },
        "CloudCover": 45,
        "Evapotranspiration": {
            "Value": 0.01,
            "Unit": "in",
            "UnitType": 1
        },
        "SolarIrradiance": {
            "Value": 496.6,
            "Unit": "W/m²",
            "UnitType": 33
        },
        "MobileLink": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=9&lang=en-us",
        "Link": "http://www.accuweather.com/en/us/austin-tx/78701/hourly-weather-forecast/34486_pc?day=2&hbhhour=9&lang=en-us"
    },
]

So what I am wanting to do is to get for example the Temperature, and the attributes are hour 0, hour 1, etc.
So the parsing is not by day with the attributes being the values.
I need it that way so I can plot it on a chart as an array of temperatures over the x axis being the dates.

name: Accuweather - Detailed Hourly Forecast
resource: !secret accuweather_api
scan_interval: 3600
sensor:

  - unique_id: accuweather_condition_hourly
    name: Accuweather - Condition - Detailed Hourly Forecast
    value_template: '{{ value_json[0].IconPhrase }}'
    icon: mdi:weather-windy
    attributes:
      - name: 0h
        value_template: '{{ value_json[0].IconPhrase }}'
      - name: 1h
        value_template: '{{ value_json[1].IconPhrase }}'
      - name: 2h
        value_template: '{{ value_json[2].IconPhrase }}'
      - name: 3h
        value_template: '{{ value_json[3].IconPhrase }}'
      - name: 4h
        value_template: '{{ value_json[4].IconPhrase }}'
      - name: 5h
        value_template: '{{ value_json[5].IconPhrase }}'
      - name: 6h
        value_template: '{{ value_json[6].IconPhrase }}'
      - name: 7h
        value_template: '{{ value_json[7].IconPhrase }}'
      - name: 8h
        value_template: '{{ value_json[8].IconPhrase }}'
      - name: 9h
        value_template: '{{ value_json[9].IconPhrase }}'
      - name: 10h
        value_template: '{{ value_json[10].IconPhrase }}'
      - name: 11h
        value_template: '{{ value_json[11].IconPhrase }}'

Make sense?

So you can see the attributes are the high level value_json…where x is the hour.

Any idea how to go about that? What I understoor from the docs is that I can do the json_attributes but only at a high level, so IconPhrase, RealFeelTemperature, etc.

as a reference, I am trying to adapt the code from here

1 post - 1 participant

Read full topic


Z-wave unable to connect

$
0
0

I flipped a breaker in the house to work with electrical and now my z-wave is completely non functional. I have tried restores, reboots, restarting the modem and router. I have no idea what is causing this.

image

Logger: homeassistant.components.hassio.handler
Source: components/hassio/handler.py:596
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 12:32:02 AM (1 occurrences)
Last logged: 12:32:02 AM

Timeout on /addons/core_zwave_js/start request
Logger: homeassistant.components.zwave_js
Source: components/hassio/addon_manager.py:380
Integration: Z-Wave (documentation, issues)
First occurred: 12:32:02 AM (1 occurrences)
Last logged: 12:32:02 AM

Failed to start the Z-Wave JS add-on:
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/config.sh
[00:43:42] INFO: No 'network_key' detected, setting it to 's0_legacy_key' for backwards compatibility

[00:43:44] INFO: Flushing config to disk due to creation of new key(s)...
[00:43:45] INFO: Soft-reset set to automatic
[00:43:45] INFO: Virtual Machine not detected, enabling soft-reset
cont-init: info: /etc/cont-init.d/config.sh exited 0
cont-init: info: running /etc/cont-init.d/structure.sh
cont-init: info: /etc/cont-init.d/structure.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun zwave_js (no readiness notification)
s6-rc: info: service legacy-services successfully started
[00:43:48] INFO: Successfully send discovery information to Home Assistant.
SyntaxError: /usr/src/node_modules/mime-db/db.json: Unexpected token  in JSON at position 65
    at parse (<anonymous>)
    at Object.Module._extensions..json (node:internal/modules/cjs/loader:1324:39)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Function.Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/usr/src/node_modules/mime-db/index.js:12:18)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
[05:43:50] WARNING: Halt add-on
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Any idea on what can be causing this?

1 post - 1 participant

Read full topic

Automation Modes for options within automations

$
0
0

Hi,
I think the automation modes do not completely cover the needs when we use trigger ID and multiple option to choose from within the automation.

In my case, I use one simple automation for my post box. It is a German one with two doors, one for filling and one for emptying.
The automation is triggered by two door sensors. One for filling one for emptying.
I added a wait to the filling option of my automation to get the notification only once if the postman is fiddling around with the filling door.
Unfortunately while emptying the post box I have to check the filling door as well. So the wait in the filling option prevents the emptying option to run.
The automation modes do not help in this case because I would again get a notification for each time the filling door is touched.
In my case I would need the options to run parallel, but only a single instance of each option should be able to run.
It’s this something for a feature request or am I thinking the wrong way?
I know I could make a new automation for the notification, but I would like to do it in one.

What do you guys think about that?

1 post - 1 participant

Read full topic

Homeassistant not showing inside iFrame

$
0
0

I have a Pi that is running an nginx server that shows two web pages in iframes: one is Dakboard (calendar, weather, etc) and the other is a custom lovelace “kiosk” type small banner showing HA info (see Show dashboard on Dakboard - #6 by braham).

Since the last HA update however, that page is not showing HA info anymore. The page is stuck on the HA logo and doesn’t do anything anymore.

When I run the same page directly in the Chromium browser (http://homeassistant.local:8123/lovelace/board?kiosk=) and not in an iFrame, it works just fine.

Any ideas where to start troubleshooting ?

1 post - 1 participant

Read full topic

Mushroom icons don't always load

$
0
0

Any having issues with the mushroom icons not loading? Since about 2 updates ago, sometimes the icons just do not load.

5 posts - 2 participants

Read full topic

If then else statements with input_booleans working errratically

$
0
0

I use 3 input_booleans as follows. There are 3 tile cards positioned horizontally and when I click on any of the three, it toggles an input_boolean and if it is turning on, turns off the other two, if they are on. (if one is on, a conditional card appears, which is why I want only one on at the time.)

My code reliably toggles the clicked one, but the others are sometimes turned off, sometimes not. It is quite erratic. I can reproduce it by clicking rapidly and generally if I wait more than 10 seconds between clicks, the problem never arises. My system (HA green) doesn’t seem stressed: processor <6% and memory at 30% during these operations.

Is there something wrong with the way I’m doing this? Here is the code for input_boolean r1:

alias: SR1
sequence:
  - if:
      - condition: state
        entity_id: input_boolean.r1
        state: "on"
    then:
      - service: input_boolean.turn_off
        metadata: {}
        data: {}
        target:
          entity_id: input_boolean.r1
    else:
      - service: input_boolean.turn_off
        metadata: {}
        data: {}
        target:
          entity_id:
            - input_boolean.r2
            - input_boolean.rmb
      - service: input_boolean.turn_on
        metadata: {}
        data: {}
        target:
          entity_id: input_boolean.r1
mode: single
icon: mdi:home-floor-1

There are two other similar scripts, one for input_boolean.r2 and one for input_boolean.rmb. Again, they work some of the time as expected.

The way the script is accessed is through cards like

          - type: tile
            entity: input_boolean.r1
            name: Lights
            hide_state: true
            tap_action:
              action: call-service
              service: script.sr1

2 posts - 2 participants

Read full topic

Energy distribution for today on my own dashboard

$
0
0

Hello,

i love the energy dashboard and the energy distribution graphic. But i want to integrate the distribution graphic to my home dashboard. How is this possible?
On my home dashboard there should only the distribution for today be visible.
Thanks.

1 post - 1 participant

Read full topic

Radio Setup

$
0
0

Hi, I love the Radio in Home Assistant but can’t find a way of putting A button to a radio station on the fromt end, also how to remove the option to choose language and just use one.

Thanks

1 post - 1 participant

Read full topic


The variable 'this'. (The state object of the automation)

$
0
0

(ref: Automation trigger variables - Home Assistant (home-assistant.io))

I’m considering passing the whole this variable from an automation to a script. I am having trouble using it in a script though because the ‘format’ of the this variable doesn’t seem to be (usefully) ‘portable’.

For example, an automation with a state trigger generates the following:

{
'entity_id': 'automation.my_automation', 
'state': 'on', 
'attributes': {
  'id': 'my_automation', 
  'last_triggered': datetime.datetime(2024, 2, 17, 10, 41, 27, 507745, tzinfo=datetime.timezone.utc), 
  'mode': 'queued', 
  'current': 0, 
  'max': 50, 
  'friendly_name': 'My Automation'
  }, 
'last_changed': '2024-02-17T08:56:11.505558+00:00', 
'last_updated': '2024-02-17T10:41:28.521367+00:00', 
'context': {
  'id': '01HPVAG7EKVW9HW9X', 
  'parent_id': 
  '01HPVAG7EJTGQRGVR', 
  'user_id': None
  }
}

I have an issue I can’t solve:

It doesn’t like the item last_triggered

'last_triggered': datetime.datetime(2024, 2, 17, 10, 41, 27, 507745, tzinfo=datetime.timezone.utc)

Is the state variable valid JSON? If so am just doing something wrong or can HA templating just not parse it correctly? (I’ve tried other tools with the same problems e.g. JSON Path Finder)


1 post - 1 participant

Read full topic

Embedded web page popup

$
0
0

Hi,

I have embedded a web page in the front end but the page keeps popping up a privacy policy which I have to accept, how can I stop this?

1 post - 1 participant

Read full topic

Help with custom templates

$
0
0

Hi, I seem to be having issues with UI cards and custom templates.

For decluttering, I am adding the templates in lovelace\decluttering_templates

For Lovelace Minimalist, I am adding the templates in ui_lovelace_minimalst\custom_cards.

What am I missing here?

Thanks

1 post - 1 participant

Read full topic

Automation deleted but still running

$
0
0

Hey there.

I got a simple automation running which lights up a bulb when my photovoltaic system creates overspill.
But now it gets weird. The automation was running fine with bulb A. Yesterday I replaced bulb A with bulb B. I changed the automation that bulb B should light up but it doesn’t work. Still bulb A (now at a different place) lights up. Then I deleted the whole automation (GUI and also searched for it in developer/states and automation.yaml) but it’s still running.
Both bulbs are controllable via GUI and working fine. There are not binded to other automations.

Can anyone help me to stop the automation or reconfigure it?

Home Assistant running on Proxmox as VM HAOS
Phillips Hue Bridge connected to HA

1 post - 1 participant

Read full topic

Nmap auto enable entity

$
0
0

hello, is it possible to auto enablement of the newly discovered devices in nmap integration?

do you have any automations?

1 post - 1 participant

Read full topic

How to turn on light and set brightness

$
0
0

I have a Wiz SHRGBC spotlight that I’d like to set the brightness for when it is turned on. However, when I call light.turn_on and give brightness_pct: 50, the light does turn on, but comes on at the last brightness level that was set. I’ve tested a couple of times using the Developer>Services page. I set the light to 26%, turn it off, then use the developer page to call light.turn_on with brightness_pct: 1, and the light comes back on at 26%.

I just (yesterday) updated to 2024.2.1. The automation I have for this was working before the upgrade. But, right after the upgrade I started making some modifications to the automation to set different brightness levels at different times. That’s when I noticed the odd behaviour.

Thinking I screwed up the automation, I started testing with the developer page, and was when I noticed the brightness not matching what the service called for.

Any thoughts of what to try next?

Thanks

1 post - 1 participant

Read full topic

How to get rid of lines in stack-in-card?

$
0
0

Hello all!

I tried to get rid of borders which are seen on Pic.1 using different styles but I’ doesn’t change anything. Is there any possibility to delete them?

My code:

cards:
  - cards:
      - cards:
          - entity: sensor.drukarka_3d_print_status
            name: CR-6 SE
            type: entity
            icon: None
          - entity: switch.gniazdko_drukarka3d_pietro
            hold_action:
              action: more-info
            show_icon: true
            show_name: false
            tap_action:
              action: toggle
            type: button
        type: horizontal-stack
      - entities:
          - entity: switch.drukarka_3d_led
        show_header_toggle: false
        type: entities
    mode: vertical
    type: custom:stack-in-card
    style: |
      ha-card {
      border: none;
      }
  - card:
      cards:
        - entity: sensor.drukarka_3d_print_progress
          type: custom:bar-card
          color: null
          positions:
            icon: 'off'
            indicator: inside
        - entities:
            - entity: sensor.drukarka_3d_print_time_left
            - entity: sensor.drukarka_3d_print_time
            - entity: sensor.drukarka_3d_print_file
            - entity: sensor.drukarka_3d_current_z
            - entity: sensor.drukarka_3d_tool_0_target
            - entity: sensor.drukarka_3d_bed_target
          show_header_toggle: false
          type: entities
        - cards:
            - entity: switch.drukarka_3d_emergency_stop
              hold_action:
                action: more-info
              name: Stop
              show_icon: true
              show_name: true
              type: button
            - entity: switch.drukarka_3d_cancel_print
              hold_action:
                action: more-info
              name: Anuluj
              show_icon: true
              show_name: true
              type: button
            - entity: switch.drukarka_3d_pause_print
              hold_action:
                action: more-info
              name: Pauza
              show_icon: true
              show_name: true
              type: button
            - entity: switch.drukarka_3d_shutdown_system
              hold_action:
                action: more-info
              name: Wyłączenie
              show_icon: true
              show_name: true
              type: button
          type: horizontal-stack
      mode: vertical
      type: custom:stack-in-card
      style: |
        ha-card {
        border: none;
        }
    conditions:
      - entity: binary_sensor.drukarka_3d_printing
        state_not: 'off'
    type: conditional
  - card:
      decimals: 1
      entities:
        - entity: sensor.drukarka_3d_tool_0_temperature
          name: Dysza
          show_state: true
        - entity: sensor.drukarka_3d_bed_temperature
          name: Stół
          show_state: true
      hours_to_show: 1
      name: Temperatura dyszy/ stołu
      points_per_hour: 120
      type: custom:mini-graph-card
    conditions:
      - entity: binary_sensor.drukarka_3d_printing
        state_not: 'off'
    type: conditional
  - entities:
      - entities:
          - entity: sensor.filament_temperatura
            name: false
        entity: sensor.filament_wilgotnosc
        icon: mdi:thermometer
        name: Temperatura/ wilgotność filamentu
        secondary_info: last-changed
        type: custom:multiple-entity-row
    show_header_toggle: false
    type: entities
type: vertical-stack

1 post - 1 participant

Read full topic


Automation: Close blinds when forecast rain

$
0
0

G’day,

I’d like to create an automation rule when e.g. 3 hours weather forcast is rain, then close blinds. I did install openweathermap and did found out, that there are many weather conditions possible: Weather Conditions - OpenWeatherMap from thunderstorm , drizzle, rain, snow and so on.

How do I create an automation to be sure, that my blinds wil not get wet?
Is that possible?

Many thanks
chris

1 post - 1 participant

Read full topic

Mushroom card icons not showing on mobile view?

$
0
0

Some mushroom cards, entity card, vacuum card, not showing mdi icons on mobile, but they do show on desktop.

Anybody know why? is there a way to fix this? If I can’t fix it, I’m gonna have to ditch the whole mushroom card thing, this is a bummer because it looks so much better than the default UI.

1 post - 1 participant

Read full topic

Zigbee2mqtt suddenly not working properly

$
0
0

I have been using a Sonoff dongle (ZBDongle-P) for about a year now without any problems. But all of a sudden my devices won’t work anymore. My remotes etc are still being detected, but when pressed nothing is being detected. I haven’t changed anything lately either.

I’ve tried plugging in a new dongle but then none of my devices are detected. How do I fix this?

2 posts - 2 participants

Read full topic

Input_boolean into binary sensor template as motion sensor

$
0
0

I have Zigbee motion detectors in the house, but if my kids or wife are watching TV they move so little that the motion detectors miss them. So I’m trying to add the TV as a binary sensor motion detector, that when it’s on it’s considered motion.

The motion detectors work fine and I’ve added them in a group. I have an input_boolean that is on or off depending on whether the TV is on or off, but I can’t seem to get the right configuration in the template binary sensor to get the binary sensor to change depending on the input_boolean. The binary sensor stays off, whatever the state of the TV / input_boolean is.

I followed the configuration from this topic, but that doesn’t seem to work: Is it possible to include an input_boolean in a binary_sensor group? - #6 by Didgeridrew

The template options are:
state: “{{ is_state(‘input_boolean.lg_tv_power_state’, ‘On’) }}”

What am I getting wrong? Thanks a lot!

2 posts - 2 participants

Read full topic

Generic Hygrostat and Aqara sensor too slow

$
0
0

So I’m starting playing with the Generic Hygrostat integration by Bas Schippers as used by many here.

But one thing I just can’t figure out is the speed. I have configured to measure every 30 seconds but in practice the rise in humidity will be after around 5 minutes reported to HA.

I use this integration with the Aqara humidity sensor so that also can be the culprit.

Anybody who can guide me to fix this last annoying bit?

1 post - 1 participant

Read full topic

Viewing all 106043 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>