-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi team
@royvandongen @cyberjunky @bduijnhouwer @Dinges28 My colleagues and I running HASSIO in a VM, there fore we need a separate PI to run the great RTL-SDR P2000 decoder. It seems a bit overkill if everyone is running a separate Pi for decoding.
Could we request a feature request to add multiple HA instances to post messages to, from one Pi as source? Is it as simple to duplicate home-assistent to home-assistant2?
Thanks for your time.
self.use_hass2 = self.config.getboolean("home-assistant2", "enabled")
self.baseurl2 = self.config.get("home-assistant2", "baseurl")
self.token2 = self.config.get("home-assistant2", "token")
if self.use_hass2:
try:
self.logger.debug(
f"Posting to Home Assistant - {self.sensorname}"
)
headers = {
"Authorization": "Bearer " + self.token,
"content-type": "application/json",
}
response = requests.post(
self.baseurl + "/api/states/sensor." + self.sensorname,
headers=headers,
data=json.dumps(
data,
default=lambda o: o.__dict__,
sort_keys=True,
indent=4,
),
Metadata
Metadata
Assignees
Labels
No labels