projects:internetofthings:esphome

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:internetofthings:esphome [2021/02/26 06:26] – [BLE bluetooth tracker (version 1)] scipioprojects:internetofthings:esphome [2021/07/06 07:26] (current) – [ESP32 cam] scipio
Line 1: Line 1:
 ====== ESPHOME ====== ====== ESPHOME ======
  
 +===== ESP32 cam =====
 +
 +  * [[https://github.com/esphome/esphome/pull/1905|rtsp into esp32cam progress]]
 +
 +
 +
 +<code bash>
 +#!/bin/sh
 +
 +TOKEN=...
 +
 +PAYLOAD="{\"directive\": {\"header\": {\"namespace\": \"Alexa.Discovery\", \"name\": \"Discover\", \"payloadVersion\": \"3\", \"messageId\": \"8db404f7-f5a1-495e-9a30-3a8af3bf94e0\"}, \"payload\": {\"scope\": {\"type\": \"BearerToken\", \"token\": \"...\"}}}}"
 +
 +
 +curl -q -X POST \
 +  -d "$PAYLOAD" \
 +  -H "Authorization: Bearer $TOKEN" \
 +  -H "Content-Type: application/json" \
 +  http://localhost:8123/api/alexa/smart_home | jq '.event.payload.endpoints[] | select(.displayCategories[0]=="CAMERA")'
 +</code>
 +
 +in esp32 cam this section is missing in "capabilities"
 +<code javascript>
 +{
 +      "type": "AlexaInterface",
 +      "interface": "Alexa.CameraStreamController",
 +      "version": "3",
 +      "cameraStreamConfigurations": [
 +        {
 +          "protocols": [
 +            "HLS"
 +          ],
 +          "resolutions": [
 +            {
 +              "width": 1280,
 +              "height": 720
 +            }
 +          ],
 +          "authorizationTypes": [
 +            "NONE"
 +          ],
 +          "videoCodecs": [
 +            "H264"
 +          ],
 +          "audioCodecs": [
 +            "AAC"
 +          ]
 +        }
 +      ]
 +    },
 +</code>
 +
 +esp32 entry (missing some values)
 +
 +<code javascript>
 +{
 +  "displayCategories": [
 +    "CAMERA"
 +  ],
 +  "cookie": {},
 +  "endpointId": "camera#citofono",
 +  "friendlyName": "citofono",
 +  "description": "camera.citofono via Home Assistant",
 +  "manufacturerName": "Home Assistant",
 +  "additionalAttributes": {
 +    "manufacturer": "Home Assistant",
 +    "model": "camera",
 +    "softwareVersion": "2021.6.6",
 +    "customIdentifier": "-camera.citofono"
 +  },
 +  "capabilities": [
 +    {
 +      "type": "AlexaInterface",
 +      "interface": "Alexa.EndpointHealth",
 +      "version": "3",
 +      "properties": {
 +        "supported": [
 +          {
 +            "name": "connectivity"
 +          }
 +        ],
 +        "proactivelyReported": true,
 +        "retrievable": true
 +      }
 +    },
 +    {
 +      "type": "AlexaInterface",
 +      "interface": "Alexa",
 +      "version": "3"
 +    }
 +  ]
 +}
 +</code>
 +
 +
 +valid stream camera working in alexa
 +<code javascript>
 +{
 +  "displayCategories": [
 +    "CAMERA"
 +  ],
 +  "cookie": {},
 +  "endpointId": "camera#cancello",
 +  "friendlyName": "camera cancello",
 +  "description": "camera.cancello via Home Assistant",
 +  "manufacturerName": "Home Assistant",
 +  "additionalAttributes": {
 +    "manufacturer": "Home Assistant",
 +    "model": "camera",
 +    "softwareVersion": "2021.6.6",
 +    "customIdentifier": "-camera.cancello"
 +  },
 +  "capabilities": [
 +    {
 +      "type": "AlexaInterface",
 +      "interface": "Alexa.CameraStreamController",
 +      "version": "3",
 +      "cameraStreamConfigurations": [
 +        {
 +          "protocols": [
 +            "HLS"
 +          ],
 +          "resolutions": [
 +            {
 +              "width": 1280,
 +              "height": 720
 +            }
 +          ],
 +          "authorizationTypes": [
 +            "NONE"
 +          ],
 +          "videoCodecs": [
 +            "H264"
 +          ],
 +          "audioCodecs": [
 +            "AAC"
 +          ]
 +        }
 +      ]
 +    },
 +    {
 +      "type": "AlexaInterface",
 +      "interface": "Alexa.EndpointHealth",
 +      "version": "3",
 +      "properties": {
 +        "supported": [
 +          {
 +            "name": "connectivity"
 +          }
 +        ],
 +        "proactivelyReported": true,
 +        "retrievable": true
 +      }
 +    },
 +    {
 +      "type": "AlexaInterface",
 +      "interface": "Alexa",
 +      "version": "3"
 +    }
 +  ]
 +}
 +
 +</code>
 ===== BLE tracker smartband ===== ===== BLE tracker smartband =====
  
  • projects/internetofthings/esphome.1614317186.txt.gz
  • Last modified: 2021/02/26 06:26
  • by scipio